@Deprecated public interface JcrPackageManager extends PackageManager
PackageManager by repository specific operations.| Modifier and Type | Method and Description |
|---|---|
void |
assemble(JcrPackageDefinition definition,
ProgressTrackerListener listener,
java.io.OutputStream out)
Deprecated.
Assembles a package directly to a output stream
|
void |
assemble(JcrPackage pack,
ProgressTrackerListener listener)
Deprecated.
Assembles a package.
|
void |
assemble(Node packNode,
JcrPackageDefinition definition,
ProgressTrackerListener listener)
Deprecated.
Assembles a package.
|
JcrPackage |
create(Node folder,
java.lang.String name)
Deprecated.
Creates a new package below the given folder.
|
JcrPackage |
create(java.lang.String group,
java.lang.String name,
java.lang.String version)
Deprecated.
Creates a new package with the new group, name and version.
|
Node |
getPackageRoot()
Deprecated.
Returns the configured package root node.
|
Node |
getPackageRoot(boolean noCreate)
Deprecated.
Returns the configured package root node.
|
java.util.List<JcrPackage> |
listPackages()
Deprecated.
Returns the list of all packages installed below the package root.
|
java.util.List<JcrPackage> |
listPackages(java.lang.String group,
boolean built)
Deprecated.
Returns the list of all packages installed below the package root that
match the given group.
|
java.util.List<JcrPackage> |
listPackages(WorkspaceFilter filter)
Deprecated.
Returns the list of all packages installed below the package root that are
included in the filter.
|
JcrPackage |
open(Node node)
Deprecated.
Opens a package that is based on the given node.
|
JcrPackage |
open(Node node,
boolean allowInvalid)
Deprecated.
Opens a package that is based on the given node.
|
JcrPackage |
open(PackageId id)
Deprecated.
Opens a package with the given package id.
|
void |
remove(JcrPackage pack)
Deprecated.
Removes a package and its snaphost if present.
|
JcrPackage |
rename(JcrPackage pack,
java.lang.String groupId,
java.lang.String name)
Deprecated.
Renames the given package with a new group id and name.
|
JcrPackage |
rename(JcrPackage pack,
java.lang.String groupId,
java.lang.String name,
java.lang.String version)
Deprecated.
Renames the given package with a new group id, name and version.
|
PackageId |
resolve(Dependency dependency,
boolean onlyInstalled)
Deprecated.
Finds the id of the package that matches the given dependency best.
|
void |
rewrap(JcrPackage pack,
ProgressTrackerListener listener)
Deprecated.
Rewraps the package in respect to its underlying definition.
|
JcrPackage |
upload(java.io.File file,
boolean isTmpFile,
boolean replace,
java.lang.String nameHint)
Deprecated.
Uploads a package.
|
JcrPackage |
upload(java.io.File file,
boolean isTmpFile,
boolean replace,
java.lang.String nameHint,
boolean strict)
Deprecated.
Uploads a package.
|
JcrPackage |
upload(java.io.InputStream in,
boolean replace)
Deprecated.
Uploads a package.
|
JcrPackage |
upload(java.io.InputStream in,
boolean replace,
boolean strict)
Deprecated.
Uploads a package.
|
assemble, assemble, rewrap, rewrapJcrPackage open(PackageId id) throws RepositoryException
id - the package id.null it the package does not exist or is not valid.RepositoryException - if an error occursJcrPackage open(Node node) throws RepositoryException
open in interface PackageManagernode - the underlying nodenull it the package is not
valid.RepositoryException - if an error occursJcrPackage 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).open in interface PackageManagernode - 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 occursPackageId resolve(Dependency dependency, boolean onlyInstalled) throws RepositoryException
onlyInstalled is true only installed packages are searched.dependency - dependency informationonlyInstalled - if true only installed packages are searched.null if not found.RepositoryException - if an error occursJcrPackage upload(java.io.File file, boolean isTmpFile, boolean replace, java.lang.String nameHint) throws RepositoryException, java.io.IOException
null is returned unless replace is true.file - package file to uploadisTmpFile - indicates if the given file is a temp file and can be
deleted when the package is closedreplace - if true existing packages are replaced.nameHint - hint for the name if package does not provide onenull if not installedRepositoryException - if an error occurrsjava.io.IOException - if an I/O error occurrsJcrPackage upload(java.io.File file, boolean isTmpFile, boolean replace, java.lang.String nameHint, boolean strict) throws RepositoryException, java.io.IOException
ItemExistsException is thrown unless replace is
true.file - package file to uploadisTmpFile - indicates if the given file is a temp file and can be
deleted when the package is closedreplace - if true existing packages are replaced.nameHint - hint for the name if package does not provide onestrict - if true import is more strict in regards to errorsRepositoryException - if an error occurrsjava.io.IOException - if an I/O error occurrsJcrPackage upload(java.io.InputStream in, boolean replace) throws RepositoryException, java.io.IOException
ItemExistsException is thrown unless replace is
true.in - input stream that provides the content of the package. note that after this method returns,
the input stream is closed in any case.replace - if true existing packages are replaced.RepositoryException - if an error occurrsjava.io.IOException - if an I/O error occurrsJcrPackage upload(java.io.InputStream in, boolean replace, boolean strict) throws RepositoryException, java.io.IOException
ItemExistsException is thrown unless replace is
true.in - input stream that provides the content of the package. note that after this method returns,
the input stream is closed in any case.replace - if true existing packages are replaced.strict - if true import is more strict in regards to errorsRepositoryException - if an error occurrsjava.io.IOException - if an I/O error occurrsJcrPackage create(Node folder, java.lang.String name) throws RepositoryException, java.io.IOException
folder - parent foldername - name of the new packageRepositoryException - if a repository error occurrsjava.io.IOException - if an I/O exception occursJcrPackage create(java.lang.String group, java.lang.String name, java.lang.String version) throws RepositoryException, java.io.IOException
group - group of the new packagename - name of the new packageversion - version of the new package; can be nullRepositoryException - if a repository error occurrsjava.io.IOException - if an I/O exception occursvoid remove(JcrPackage pack) throws RepositoryException
pack - the package to removeRepositoryException - if a repository error occurrsJcrPackage rename(JcrPackage pack, java.lang.String groupId, java.lang.String name) throws PackageException, RepositoryException
pack - the package to renamegroupId - the new group id or nullname - the new name or nullRepositoryException - if an error occursPackageException - if the package is not unwrapped.JcrPackage rename(JcrPackage pack, java.lang.String groupId, java.lang.String name, java.lang.String version) throws PackageException, RepositoryException
pack - the package to renamegroupId - the new group id or nullname - the new name or nullversion - the new version or nullRepositoryException - if an error occursPackageException - if the package is not unwrapped.void assemble(JcrPackage pack, ProgressTrackerListener listener) throws PackageException, RepositoryException, java.io.IOException
pack - the package to assemblelistener - a progress listenerPackageException - if a package error occursRepositoryException - if a repository error occursjava.io.IOException - if an I/O error occursvoid assemble(Node packNode,
JcrPackageDefinition definition,
ProgressTrackerListener listener)
throws PackageException,
RepositoryException,
java.io.IOException
packNode - the node of the packagedefinition - the definition of the packagelistener - a progress listenerPackageException - if a package error occursRepositoryException - if a repository error occursjava.io.IOException - if an I/O error occursvoid assemble(JcrPackageDefinition definition, ProgressTrackerListener listener, java.io.OutputStream out) throws java.io.IOException, RepositoryException, PackageException
definition - the definition of the packagelistener - a progress listenerout - the output stream to write toRepositoryException - if a repository error occursjava.io.IOException - if an I/O error occursPackageException - if a package error occursvoid rewrap(JcrPackage pack, ProgressTrackerListener listener) throws PackageException, RepositoryException, java.io.IOException
pack - the package to rewraplistener - the progress listenerPackageException - if a package error occursRepositoryException - if a repository error occursjava.io.IOException - if an I/O error occursNode getPackageRoot()
throws RepositoryException
RepositoryException - if an error occursNode getPackageRoot(boolean noCreate)
throws RepositoryException
noCreate - do not create missing root if truenull if not present and noCreate is true.RepositoryException - if an error occursjava.util.List<JcrPackage> listPackages() throws RepositoryException
RepositoryException - if an error occursjava.util.List<JcrPackage> listPackages(WorkspaceFilter filter) throws RepositoryException
filter - filter for packagesRepositoryException - if an error occursjava.util.List<JcrPackage> listPackages(java.lang.String group, boolean built) throws RepositoryException
group is null all
packages are returned.group - the group filterbuilt - if true only packages with size > 0 are listedRepositoryException - if an error occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"