public class PackagingService
extends java.lang.Object
Constructor and Description |
---|
PackagingService() |
Modifier and Type | Method and Description |
---|---|
static JcrPackageDefinition |
createPackageDefinition(Node defNode)
Creates a new jcr package definition based on the given node.
|
static PackageManager |
getPackageManager()
Returns a non-repository based package manager.
|
static JcrPackageManager |
getPackageManager(Session session)
Returns a repository based package manager.
|
static JcrPackage |
open(Node node,
boolean allowInvalid)
Opens a package that is based on the given node.
|
public static PackageManager getPackageManager()
public static JcrPackageManager getPackageManager(Session session)
session
- repository sessionpublic static JcrPackageDefinition createPackageDefinition(Node defNode)
defNode
- the nodepublic static JcrPackage 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 JcrPackageManager.open(Node, boolean)
which does not create a package manager instance.node
- the underlying nodeallowInvalid
- if true
invalid packages are openend, too.null
it the package is not
valid unless allowInvalid
is true
.RepositoryException
- if an error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"