Package org.alfresco.repo.module
Class ModuleDetailsImpl
java.lang.Object
org.alfresco.repo.module.ModuleDetailsImpl
- All Implemented Interfaces:
Serializable,ModuleDetails
- Author:
- Derek Hulley
- See Also:
-
Nested Class Summary
Nested Classes -
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
ConstructorsConstructorDescriptionModuleDetailsImpl(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
Modifier and TypeMethodDescriptionGet the description of the modulegetId()Get the id of the moduleGet the modules install dateGet the modules install stateGet the version number of the moduleGet all defined properties.getTitle()Get the title of the moduleGet 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(VersionNumber repoVersionMax) voidsetRepoVersionMin(VersionNumber repoVersionMin) toString()
-
Constructor Details
-
ModuleDetailsImpl
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
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 Details
-
getProperties
Description copied from interface:ModuleDetailsGet all defined properties.- Specified by:
getPropertiesin interfaceModuleDetails- Returns:
- Returns the properties defined by this set of details
-
toString
-
getId
Description copied from interface:ModuleDetailsGet the id of the module- Specified by:
getIdin interfaceModuleDetails- Returns:
- module id
-
getAliases
- Specified by:
getAliasesin interfaceModuleDetails- Returns:
- Returns a list of IDs by which this module may once have been known
-
getModuleVersionNumber
Description copied from interface:ModuleDetailsGet the version number of the module- Specified by:
getModuleVersionNumberin interfaceModuleDetails- Returns:
- module version number
-
getTitle
Description copied from interface:ModuleDetailsGet the title of the module- Specified by:
getTitlein interfaceModuleDetails- Returns:
- module title
-
getDescription
Description copied from interface:ModuleDetailsGet the description of the module- Specified by:
getDescriptionin interfaceModuleDetails- Returns:
- module description
-
getRepoVersionMin
- Specified by:
getRepoVersionMinin interfaceModuleDetails- Returns:
- Returns the minimum version of the repository in which the module may be active
-
setRepoVersionMin
- Specified by:
setRepoVersionMinin interfaceModuleDetails- Parameters:
repoVersionMin- the minimum version of the repository in which the module may be acitve
-
getRepoVersionMax
- Specified by:
getRepoVersionMaxin interfaceModuleDetails- Returns:
- Returns the maximum version of the repository in which the module may be active
-
setRepoVersionMax
- Specified by:
setRepoVersionMaxin interfaceModuleDetails- Parameters:
repoVersionMax- the maximum version of the repository in which the module may be acitve
-
getDependencies
- Specified by:
getDependenciesin interfaceModuleDetails- Returns:
- Returns a list of module dependencies that must be present for this module
-
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
Description copied from interface:ModuleDetailsSet the module installation date.- Specified by:
setInstallDatein interfaceModuleDetails- Parameters:
installDate- the module install date
-
getInstallState
Description copied from interface:ModuleDetailsGet the modules install state- Specified by:
getInstallStatein interfaceModuleDetails- Returns:
- the modules install state
-
setInstallState
Description copied from interface:ModuleDetailsSet the module install state.- Specified by:
setInstallStatein interfaceModuleDetails- Parameters:
installState- the module install state
-
getEditions
- Specified by:
getEditionsin interfaceModuleDetails- Returns:
- the editions
-
setEditions
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
Description copied from interface:ModuleDetailsGet the version number of the module- Specified by:
getVersionin interfaceModuleDetails- Returns:
- module version number
-