public interface Packaging
Modifier and Type | Method and Description |
---|---|
JcrPackageDefinition |
createPackageDefinition(Node defNode)
Creates a new jcr package definition based on the given node.
|
PackageManager |
getPackageManager()
Returns a non-repository based package manager.
|
JcrPackageManager |
getPackageManager(Session session)
Returns a repository based package manager.
|
JcrPackage |
open(Node node,
boolean allowInvalid)
Opens a package that is based on the given node.
|
PackageManager getPackageManager()
JcrPackageManager getPackageManager(Session session)
session
- repository sessionJcrPackageDefinition createPackageDefinition(Node defNode)
defNode
- the nodeJcrPackage open(Node node, boolean allowInvalid) throws RepositoryException
allowInvalid
is true
also invalid packages are returned, but only if the
node is file like (i.e. is nt:hierarchyNode and has a
jcr:content/jcr:data property).
This is a shortcut version of org.apache.jackrabbit.vault.packaging.JcrPackageManager#open(javax.jcr.Node, boolean)
which does not create a package manager instance.node
- the underlying nodeallowInvalid
- if true
invalid packages are opened, too.null
it the package is not
valid unless allowInvalid
is true
.javax.jcr.RepositoryException
- if an error occursRepositoryException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"