Class PackagePropertiesImpl

java.lang.Object
org.apache.jackrabbit.vault.packaging.impl.PackagePropertiesImpl
All Implemented Interfaces:
PackageProperties
Direct Known Subclasses:
DefaultPackageProperties, FsPackageProperties, HollowVaultPackage, JcrPackageProperties, ZipVaultPackage

public abstract class PackagePropertiesImpl extends Object implements PackageProperties
package properties abstraction
  • Constructor Details

    • PackagePropertiesImpl

      public PackagePropertiesImpl()
  • Method Details

    • getId

      public PackageId getId()
      Description copied from interface: PackageProperties
      Returns the id of this package or null if the id can't be determined.
      Specified by:
      getId in interface PackageProperties
      Returns:
      the id of this package.
    • getCachedId

      @Nullable protected @Nullable PackageId getCachedId()
    • getLastModified

      public Calendar getLastModified()
      Returns the last modification date or null if n/a.
      Specified by:
      getLastModified in interface PackageProperties
      Returns:
      last modification date or null
    • getLastModifiedBy

      public String getLastModifiedBy()
      Returns the user that last modified the package or null if n/a.
      Specified by:
      getLastModifiedBy in interface PackageProperties
      Returns:
      the user or null
    • getCreated

      public Calendar getCreated()
      Returns the date when this package was built or null if n/a.
      Specified by:
      getCreated in interface PackageProperties
      Returns:
      the creation date
    • getCreatedBy

      public String getCreatedBy()
      Returns the user that built this package or null if n/a.
      Specified by:
      getCreatedBy in interface PackageProperties
      Returns:
      the creator
    • getGenerator

      public String getGenerator()
      Returns the name and version of the component that generated the package.
      Specified by:
      getGenerator in interface PackageProperties
      Returns:
      the generator or null if n/a
    • getLastWrapped

      public Calendar getLastWrapped()
      Returns the date when this package was wrapped or null if n/a.
      Specified by:
      getLastWrapped in interface PackageProperties
      Returns:
      the wrapped date
    • getLastWrappedBy

      public String getLastWrappedBy()
      Returns the user that wrapped this package or null if n/a.
      Specified by:
      getLastWrappedBy in interface PackageProperties
      Returns:
      the wrapper
    • getDescription

      public String getDescription()
      Returns a description of this package or null if n/a
      Specified by:
      getDescription in interface PackageProperties
      Returns:
      a description
    • getACHandling

      public AccessControlHandling getACHandling()
      Returns the access control handling defined in this package.
      Specified by:
      getACHandling in interface PackageProperties
      Returns:
      the access control handling.
    • getSubPackageHandling

      public SubPackageHandling getSubPackageHandling()
      Returns the sub package handling configuration
      Specified by:
      getSubPackageHandling in interface PackageProperties
      Returns:
      the sub package handling configuration.
    • requiresRoot

      public boolean requiresRoot()
      Returns true if this package can only be extracted by a admin session.
      Specified by:
      requiresRoot in interface PackageProperties
      Returns:
      true if this package requires an admin session for extraction.
    • requiresRestart

      public boolean requiresRestart()
      Returns true if this package requires a restart after installation.
      Specified by:
      requiresRestart in interface PackageProperties
      Returns:
      true if this package requires a restart after installation.
    • getDependencies

      public Dependency[] getDependencies()
      Returns an unmodifiable list of dependencies
      Specified by:
      getDependencies in interface PackageProperties
      Returns:
      list of dependencies
    • getDependenciesLocations

      public Map<PackageId,URI> getDependenciesLocations()
      Returns a map of dependency locations where key = package id and value = uri of package dependency with that id.
      Specified by:
      getDependenciesLocations in interface PackageProperties
      Returns:
      dependencies locations as map
    • getDateProperty

      public Calendar getDateProperty(String name)
      Returns the date property with the given name or null if it does not exist or if the value cannot be converted to a date.
      Specified by:
      getDateProperty in interface PackageProperties
      Parameters:
      name - the property name
      Returns:
      the property value or null
    • getProperty

      public String getProperty(String name)
      Returns the property with the given name or null if it does not exist.
      Specified by:
      getProperty in interface PackageProperties
      Parameters:
      name - the property name
      Returns:
      the property value or null
    • getPackageType

      @Nullable public @Nullable PackageType getPackageType()
      Returns the package type or null if no package type was specified for this package.
      Specified by:
      getPackageType in interface PackageProperties
      Returns:
      the package type
    • getExternalHooks

      public Map<String,String> getExternalHooks()
      Specified by:
      getExternalHooks in interface PackageProperties
      Returns:
      all external hooks registered in a package (key = name, value = fully qualified class name)
    • getBuildCount

      public long getBuildCount()
      Description copied from interface: PackageProperties
      Returns the build count of this package
      Specified by:
      getBuildCount in interface PackageProperties
      Returns:
      the build count.
    • getPropertiesMap

      protected abstract Properties getPropertiesMap()