Interface RegisteredPackage
- All Superinterfaces:
AutoCloseable,Comparable<RegisteredPackage>
- All Known Implementing Classes:
FSRegisteredPackage,JcrRegisteredPackage
@ProviderType
public interface RegisteredPackage
extends Comparable<RegisteredPackage>, AutoCloseable
RegisteredPackage...-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this package and releases underlying data.@NotNull Dependency[]Returns the dependencies of this package@NotNull PackageIdgetId()Returns the id of this package@Nullable CalendarReturns the date when the package was installed@NotNull VaultPackageReturns the vault package stored in the data of this package@NotNull PackagePropertiesReturns thePackagePropertiesof this packagelonggetSize()Returns the size of the underlying package.@NotNull WorkspaceFilterReturns theWorkspaceFilterof this packagebooleanChecks if this package is installed.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getId
Returns the id of this package- Returns:
- the id of this package.
-
getPackage
Returns the vault package stored in the data of this package- Returns:
- the package
- Throws:
IOException- if an I/O error occurs
-
getDependencies
Returns the dependencies of this package- Returns:
- the dependencies of this package.
-
getWorkspaceFilter
Returns theWorkspaceFilterof this package- Returns:
WorkspaceFilterof this package
-
getPackageProperties
Returns thePackagePropertiesof this package- Returns:
PackagePropertiesof this package- Throws:
IOException- if an I/O error occurs
-
getSize
long getSize()Returns the size of the underlying package.- Returns:
- the size in bytes
-
isInstalled
boolean isInstalled()Checks if this package is installed.- Returns:
trueif this package is installed.
-
getInstallationTime
Returns the date when the package was installed- Returns:
- the installed date or
nullif not installed.
-
close
void close()Closes this package and releases underlying data.- Specified by:
closein interfaceAutoCloseable
-