Class PackagePropertiesImpl

    • Constructor Detail

      • PackagePropertiesImpl

        public PackagePropertiesImpl()
    • Method Detail

      • 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
      • 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
      • 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.
      • 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 not package type was specified for this package.
        Specified by:
        getPackageType in interface PackageProperties
        Returns:
        the package type
      • getPropertiesMap

        protected abstract Properties getPropertiesMap()