@Deprecated public class PackagingService extends Object
Constructor and Description |
---|
PackagingService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static JcrPackageDefinition |
createPackageDefinition(Node defNode)
Deprecated.
Creates a new jcr package definition based on the given node.
|
static PackageManager |
getPackageManager()
Deprecated.
Returns a non-repository based package manager.
|
static JcrPackageManager |
getPackageManager(Session session)
Deprecated.
Returns a repository based package manager.
|
static JcrPackage |
open(Node node,
boolean allowInvalid)
Deprecated.
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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"