Package org.alfresco.repo.module
Class ModuleDetailsImpl
- java.lang.Object
-
- org.alfresco.repo.module.ModuleDetailsImpl
-
- All Implemented Interfaces:
java.io.Serializable,ModuleDetails
public class ModuleDetailsImpl extends java.lang.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(java.lang.String id, ModuleVersionNumber versionNumber, java.lang.String title, java.lang.String description)ModuleDetailsImpl(java.util.Properties properties)Creates the instance from a set of properties.ModuleDetailsImpl(java.util.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 java.util.List<java.lang.String>getAliases()java.util.List<ModuleDependency>getDependencies()java.lang.StringgetDescription()Get the description of the modulejava.util.List<java.lang.String>getEditions()java.lang.StringgetId()Get the id of the modulejava.util.DategetInstallDate()Get the modules install dateModuleInstallStategetInstallState()Get the modules install stateModuleVersionNumbergetModuleVersionNumber()Get the version number of the modulejava.util.PropertiesgetProperties()Get all defined properties.org.alfresco.util.VersionNumbergetRepoVersionMax()org.alfresco.util.VersionNumbergetRepoVersionMin()java.lang.StringgetTitle()Get the title of the moduleorg.alfresco.util.VersionNumbergetVersion()Get the version number of the modulevoidsetEditions(java.util.List<java.lang.String> editions)Sets the editions of Alfresco the module is valid forvoidsetInstallDate(java.util.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)java.lang.StringtoString()
-
-
-
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 propertieslog- logger
-
ModuleDetailsImpl
public ModuleDetailsImpl(java.lang.String id, ModuleVersionNumber versionNumber, java.lang.String title, java.lang.String description)- Parameters:
id- module idversionNumber- version numbertitle- titledescription- description
-
-
Method Detail
-
getProperties
public java.util.Properties getProperties()
Description copied from interface:ModuleDetailsGet all defined properties.- Specified by:
getPropertiesin interfaceModuleDetails- Returns:
- Returns the properties defined by this set of details
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getId
public java.lang.String getId()
Description copied from interface:ModuleDetailsGet the id of the module- Specified by:
getIdin interfaceModuleDetails- Returns:
- module id
-
getAliases
public java.util.List<java.lang.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 java.lang.String getTitle()
Description copied from interface:ModuleDetailsGet the title of the module- Specified by:
getTitlein interfaceModuleDetails- Returns:
- module title
-
getDescription
public java.lang.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 java.util.List<ModuleDependency> getDependencies()
- Specified by:
getDependenciesin interfaceModuleDetails- Returns:
- Returns a list of module dependencies that must be present for this module
-
getInstallDate
public java.util.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(java.util.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 java.util.List<java.lang.String> getEditions()
- Specified by:
getEditionsin interfaceModuleDetails- Returns:
- the editions
-
setEditions
public void setEditions(java.util.List<java.lang.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
-
-