Package org.alfresco.repo.module
Class ModuleDetailsImpl
- java.lang.Object
-
- org.alfresco.repo.module.ModuleDetailsImpl
-
- All Implemented Interfaces:
Serializable,ModuleDetails
public class ModuleDetailsImpl extends Object implements ModuleDetails
- Author:
- Derek Hulley
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleDetailsImpl.ModuleDependencyImpl
-
Field Summary
-
Fields inherited from interface org.alfresco.service.cmr.module.ModuleDetails
INVALID_ID_REGEX, PROP_ALIASES, PROP_DEPENDS_PREFIX, PROP_DESCRIPTION, PROP_EDITIONS, PROP_ID, PROP_INSTALL_DATE, PROP_INSTALL_STATE, PROP_REPO_VERSION_MAX, PROP_REPO_VERSION_MIN, PROP_TITLE, PROP_VERSION
-
-
Constructor Summary
Constructors Constructor Description ModuleDetailsImpl(String id, ModuleVersionNumber versionNumber, String title, String description)ModuleDetailsImpl(Properties properties)Creates the instance from a set of properties.ModuleDetailsImpl(Properties properties, LogOutput log)Creates the instance from a set of properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAliases()List<ModuleDependency>getDependencies()StringgetDescription()Get the description of the moduleList<String>getEditions()StringgetId()Get the id of the moduleDategetInstallDate()Get the modules install dateModuleInstallStategetInstallState()Get the modules install stateModuleVersionNumbergetModuleVersionNumber()Get the version number of the modulePropertiesgetProperties()Get all defined properties.org.alfresco.util.VersionNumbergetRepoVersionMax()org.alfresco.util.VersionNumbergetRepoVersionMin()StringgetTitle()Get the title of the moduleorg.alfresco.util.VersionNumbergetVersion()Get the version number of the modulevoidsetEditions(List<String> editions)Sets the editions of Alfresco the module is valid forvoidsetInstallDate(Date installDate)Set the module installation date.voidsetInstallState(ModuleInstallState installState)Set the module install state.voidsetRepoVersionMax(org.alfresco.util.VersionNumber repoVersionMax)voidsetRepoVersionMin(org.alfresco.util.VersionNumber repoVersionMin)StringtoString()
-
-
-
Constructor Detail
-
ModuleDetailsImpl
public ModuleDetailsImpl(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(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 propertieslog- logger
-
ModuleDetailsImpl
public ModuleDetailsImpl(String id, ModuleVersionNumber versionNumber, String title, String description)
- Parameters:
id- module idversionNumber- version numbertitle- titledescription- description
-
-
Method Detail
-
getProperties
public Properties getProperties()
Description copied from interface:ModuleDetailsGet all defined properties.- Specified by:
getPropertiesin interfaceModuleDetails- Returns:
- Returns the properties defined by this set of details
-
getId
public String getId()
Description copied from interface:ModuleDetailsGet the id of the module- Specified by:
getIdin interfaceModuleDetails- Returns:
- module id
-
getAliases
public List<String> getAliases()
- Specified by:
getAliasesin interfaceModuleDetails- Returns:
- Returns a list of IDs by which this module may once have been known
-
getModuleVersionNumber
public ModuleVersionNumber getModuleVersionNumber()
Description copied from interface:ModuleDetailsGet the version number of the module- Specified by:
getModuleVersionNumberin interfaceModuleDetails- Returns:
- module version number
-
getTitle
public String getTitle()
Description copied from interface:ModuleDetailsGet the title of the module- Specified by:
getTitlein interfaceModuleDetails- Returns:
- module title
-
getDescription
public String getDescription()
Description copied from interface:ModuleDetailsGet the description of the module- Specified by:
getDescriptionin interfaceModuleDetails- Returns:
- module description
-
getRepoVersionMin
public org.alfresco.util.VersionNumber getRepoVersionMin()
- Specified by:
getRepoVersionMinin interfaceModuleDetails- 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:
setRepoVersionMinin interfaceModuleDetails- Parameters:
repoVersionMin- the minimum version of the repository in which the module may be acitve
-
getRepoVersionMax
public org.alfresco.util.VersionNumber getRepoVersionMax()
- Specified by:
getRepoVersionMaxin interfaceModuleDetails- 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:
setRepoVersionMaxin interfaceModuleDetails- Parameters:
repoVersionMax- the maximum version of the repository in which the module may be acitve
-
getDependencies
public List<ModuleDependency> getDependencies()
- Specified by:
getDependenciesin interfaceModuleDetails- Returns:
- Returns a list of module dependencies that must be present for this module
-
getInstallDate
public Date getInstallDate()
Description copied from interface:ModuleDetailsGet the modules install date- Specified by:
getInstallDatein interfaceModuleDetails- Returns:
- module install date or null if it has not been set
-
setInstallDate
public void setInstallDate(Date installDate)
Description copied from interface:ModuleDetailsSet the module installation date.- Specified by:
setInstallDatein interfaceModuleDetails- Parameters:
installDate- the module install date
-
getInstallState
public ModuleInstallState getInstallState()
Description copied from interface:ModuleDetailsGet the modules install state- Specified by:
getInstallStatein interfaceModuleDetails- Returns:
- the modules install state
-
setInstallState
public void setInstallState(ModuleInstallState installState)
Description copied from interface:ModuleDetailsSet the module install state.- Specified by:
setInstallStatein interfaceModuleDetails- Parameters:
installState- the module install state
-
getEditions
public List<String> getEditions()
- Specified by:
getEditionsin interfaceModuleDetails- Returns:
- the editions
-
setEditions
public void setEditions(List<String> editions)
Description copied from interface:ModuleDetailsSets the editions of Alfresco the module is valid for- Specified by:
setEditionsin interfaceModuleDetails- Parameters:
editions- comma seperated list of editions. e.g. community,Enterprise
-
getVersion
public org.alfresco.util.VersionNumber getVersion()
Description copied from interface:ModuleDetailsGet the version number of the module- Specified by:
getVersionin interfaceModuleDetails- Returns:
- module version number
-
-