Class ModuleDetailsImpl

    • Constructor Detail

      • ModuleDetailsImpl

        public ModuleDetailsImpl​(java.util.Properties properties)
        Creates the instance from a set of properties. All the property values are trimmed and empty string values are removed from the set. In other words, zero length or whitespace strings are not supported.
        Parameters:
        properties - the set of properties
      • ModuleDetailsImpl

        public ModuleDetailsImpl​(java.util.Properties properties,
                                 LogOutput log)
        Creates the instance from a set of properties. All the property values are trimmed and empty string values are removed from the set. In other words, zero length or whitespace strings are not supported.
        Parameters:
        properties - the set of properties
        log - logger
      • ModuleDetailsImpl

        public ModuleDetailsImpl​(java.lang.String id,
                                 ModuleVersionNumber versionNumber,
                                 java.lang.String title,
                                 java.lang.String description)
        Parameters:
        id - module id
        versionNumber - version number
        title - title
        description - description
    • Method Detail

      • getProperties

        public java.util.Properties getProperties()
        Description copied from interface: ModuleDetails
        Get all defined properties.
        Specified by:
        getProperties in interface ModuleDetails
        Returns:
        Returns the properties defined by this set of details
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getId

        public java.lang.String getId()
        Description copied from interface: ModuleDetails
        Get the id of the module
        Specified by:
        getId in interface ModuleDetails
        Returns:
        module id
      • getAliases

        public java.util.List<java.lang.String> getAliases()
        Specified by:
        getAliases in interface ModuleDetails
        Returns:
        Returns a list of IDs by which this module may once have been known
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: ModuleDetails
        Get the title of the module
        Specified by:
        getTitle in interface ModuleDetails
        Returns:
        module title
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: ModuleDetails
        Get the description of the module
        Specified by:
        getDescription in interface ModuleDetails
        Returns:
        module description
      • getRepoVersionMin

        public org.alfresco.util.VersionNumber getRepoVersionMin()
        Specified by:
        getRepoVersionMin in interface ModuleDetails
        Returns:
        Returns the minimum version of the repository in which the module may be active
      • setRepoVersionMin

        public void setRepoVersionMin​(org.alfresco.util.VersionNumber repoVersionMin)
        Specified by:
        setRepoVersionMin in interface ModuleDetails
        Parameters:
        repoVersionMin - the minimum version of the repository in which the module may be acitve
      • getRepoVersionMax

        public org.alfresco.util.VersionNumber getRepoVersionMax()
        Specified by:
        getRepoVersionMax in interface ModuleDetails
        Returns:
        Returns the maximum version of the repository in which the module may be active
      • setRepoVersionMax

        public void setRepoVersionMax​(org.alfresco.util.VersionNumber repoVersionMax)
        Specified by:
        setRepoVersionMax in interface ModuleDetails
        Parameters:
        repoVersionMax - the maximum version of the repository in which the module may be acitve
      • getDependencies

        public java.util.List<ModuleDependency> getDependencies()
        Specified by:
        getDependencies in interface ModuleDetails
        Returns:
        Returns a list of module dependencies that must be present for this module
      • getInstallDate

        public java.util.Date getInstallDate()
        Description copied from interface: ModuleDetails
        Get the modules install date
        Specified by:
        getInstallDate in interface ModuleDetails
        Returns:
        module install date or null if it has not been set
      • setInstallDate

        public void setInstallDate​(java.util.Date installDate)
        Description copied from interface: ModuleDetails
        Set the module installation date.
        Specified by:
        setInstallDate in interface ModuleDetails
        Parameters:
        installDate - the module install date
      • getEditions

        public java.util.List<java.lang.String> getEditions()
        Specified by:
        getEditions in interface ModuleDetails
        Returns:
        the editions
      • setEditions

        public void setEditions​(java.util.List<java.lang.String> editions)
        Description copied from interface: ModuleDetails
        Sets the editions of Alfresco the module is valid for
        Specified by:
        setEditions in interface ModuleDetails
        Parameters:
        editions - comma seperated list of editions. e.g. community,Enterprise
      • getVersion

        public org.alfresco.util.VersionNumber getVersion()
        Description copied from interface: ModuleDetails
        Get the version number of the module
        Specified by:
        getVersion in interface ModuleDetails
        Returns:
        module version number