@ProviderType public interface VaultPackage extends PackageProperties, java.lang.AutoCloseable
Note that VaultPackage currently extends from PackageProperties to keep the interface backwards compatible.
NAME_AC_HANDLING, NAME_BUILD_COUNT, NAME_CND_PATTERN, NAME_CREATED, NAME_CREATED_BY, NAME_DEPENDENCIES, NAME_DESCRIPTION, NAME_DISABLE_INTERMEDIATE_SAVE, NAME_GROUP, NAME_LAST_MODIFIED, NAME_LAST_MODIFIED_BY, NAME_LAST_WRAPPED, NAME_LAST_WRAPPED_BY, NAME_NAME, NAME_PACKAGE_TYPE, NAME_REQUIRES_RESTART, NAME_REQUIRES_ROOT, NAME_SUB_PACKAGE_HANDLING, NAME_USE_BINARY_REFERENCES, NAME_VERSION, PREFIX_INSTALL_HOOK| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this package and releases underlying data.
|
void |
extract(Session session,
ImportOptions opts)
Extracts the package contents to the repository
|
Archive |
getArchive()
Returns the underlying package archive
|
java.io.File |
getFile()
Returns the underlying file or
null if not available. |
PackageId |
getId()
Returns the id of this package or
null if the id can't
be determined. |
MetaInf |
getMetaInf()
Returns the meta inf that was either loaded or specified during build.
|
PackageProperties |
getProperties()
Returns the properties of this package.
|
long |
getSize()
Returns the size of the package or -1 if n/a.
|
boolean |
isClosed()
Checks if this package is closed.
|
boolean |
isValid()
Checks if this package is valid.
|
getACHandling, getCreated, getCreatedBy, getDateProperty, getDependencies, getDescription, getLastModified, getLastModifiedBy, getLastWrapped, getLastWrappedBy, getPackageType, getProperty, getSubPackageHandling, requiresRootPackageId getId()
null if the id can't
be determined.getId in interface PackagePropertiesPackageProperties getProperties()
boolean isValid()
true if this package is valid.boolean isClosed()
true if this package is closed.MetaInf getMetaInf()
null.long getSize()
void extract(Session session, ImportOptions opts) throws RepositoryException, PackageException
session - repository sessionopts - 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.File getFile()
null if not available.void close()
close in interface java.lang.AutoCloseableArchive getArchive()
null if already closedCopyright © 2010 - 2023 Adobe. All Rights Reserved