@Deprecated public interface JcrPackage extends java.lang.Comparable<JcrPackage>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MIME_TYPE
Deprecated.
default mime type of a package
|
static java.lang.String |
NN_VLT_DEFINITION
Deprecated.
Nodename of the definition node
|
static java.lang.String |
NT_VLT_PACKAGE
Deprecated.
Nodetype name of a package node
|
static java.lang.String |
NT_VLT_PACKAGE_DEFINITION
Deprecated.
Nodetype name of a definition node
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
Closes this package and destroys all temporary data.
|
void |
extract(ImportOptions opts)
Deprecated.
since 2.3.14 use
extract(com.day.jcr.vault.fs.io.ImportOptions) instead. |
void |
extract(ImportOptions opts)
Deprecated.
Extracts the package contents to the repository
|
Property |
getData()
Deprecated.
Returns the jcr:data property of the package
|
JcrPackageDefinition |
getDefinition()
Deprecated.
Returns the package definition of this package
|
Node |
getDefNode()
Deprecated.
Returns the definition node or
null if not exists |
Node |
getNode()
Deprecated.
Returns the underlying node
|
VaultPackage |
getPackage()
Deprecated.
Returns the vault package stored in the data of this package
|
long |
getSize()
Deprecated.
Returns the size of the underlying package.
|
JcrPackage |
getSnapshot()
Deprecated.
Returns the snapshot that was taken when installing this package.
|
void |
install(ImportOptions opts)
Deprecated.
since 2.3.14, use
install(com.day.jcr.vault.fs.io.ImportOptions) instead |
void |
install(ImportOptions opts)
Deprecated.
Installs the package contents to the repository but creates a snapshot if
necessary.
|
boolean |
isInstalled()
Deprecated.
Checks if this package is installed.
|
boolean |
isSealed()
Deprecated.
Checks if this package is sealed.
|
boolean |
isValid()
Deprecated.
Checks if the underlying node contains the correct structure.
|
JcrPackage |
snapshot(ExportOptions opts,
boolean replace)
Deprecated.
Creates a snapshot of this package.
|
void |
uninstall(ImportOptions opts)
Deprecated.
since 2.3.14, use
uninstall(com.day.jcr.vault.fs.io.ImportOptions) instead. |
void |
uninstall(ImportOptions opts)
Deprecated.
Reverts the changes of a prior installation of this package.
|
boolean |
verifyId(boolean autoFix,
boolean autoSave)
Deprecated.
Checks if the package id is correct in respect to the installation path
and adjusts it accordingly.
|
static final java.lang.String NT_VLT_PACKAGE
static final java.lang.String NT_VLT_PACKAGE_DEFINITION
static final java.lang.String NN_VLT_DEFINITION
static final java.lang.String MIME_TYPE
JcrPackageDefinition getDefinition() throws RepositoryException
null if this package is
not valid.RepositoryException - if an error occurrsboolean isValid()
true if this package is valid.Node getNode()
boolean isSealed()
true if this package is sealed.VaultPackage getPackage() throws RepositoryException, java.io.IOException
RepositoryException - if an error occursjava.io.IOException - if an I/O error occursvoid extract(ImportOptions opts) throws RepositoryException, PackageException, java.io.IOException
extract(com.day.jcr.vault.fs.io.ImportOptions) instead.opts - import optionsRepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occursjava.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursvoid extract(ImportOptions opts) throws RepositoryException, PackageException, java.io.IOException
opts - import optionsRepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occursjava.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursvoid install(ImportOptions opts) throws RepositoryException, PackageException, java.io.IOException
install(com.day.jcr.vault.fs.io.ImportOptions) insteadopts - import optionsRepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occursjava.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursvoid install(ImportOptions opts) throws RepositoryException, PackageException, java.io.IOException
opts - import optionsRepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occursjava.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursJcrPackage snapshot(ExportOptions opts, boolean replace) throws RepositoryException, PackageException, java.io.IOException
opts - export optionsreplace - if true any existing snapshot is replaced.RepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occursjava.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursJcrPackage getSnapshot() throws RepositoryException
nullRepositoryException - if an error occurs.void uninstall(ImportOptions opts) throws RepositoryException, PackageException, java.io.IOException
uninstall(com.day.jcr.vault.fs.io.ImportOptions) instead.opts - import optionsRepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occurs or if no
snapshot is available.java.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursvoid uninstall(ImportOptions opts) throws RepositoryException, PackageException, java.io.IOException
opts - import optionsRepositoryException - if a repository error during installation occurs.PackageException - if an error during packaging occurs or if no
snapshot is available.java.lang.IllegalStateException - if the package is not valid.java.io.IOException - if an I/O error occursboolean verifyId(boolean autoFix,
boolean autoSave)
throws RepositoryException
autoFix - true to automatically fix the idautoSave - true to save changes immediatelytrue if id is correct.RepositoryException - if an error occurs.boolean isInstalled()
throws RepositoryException
JcrPackageDefinition.getLastUnpacked()
date. If the package is replaced since it was installed. this method will return false.true if this package is installed.RepositoryException - if an error occurs.long getSize()
void close()
Property getData()
throws RepositoryException
RepositoryException - if an error occurrsNode getDefNode()
throws RepositoryException
null if not existsRepositoryException - if an error occurrs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"