Package org.exoplatform.commons.info
Class ProductInformations
java.lang.Object
org.exoplatform.commons.info.ProductInformations
- All Implemented Interfaces:
org.picocontainer.Startable
- Version:
- $Revision$
- Author:
- Anouar Chattouna
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringnode name where the Product version declaration isstatic final Stringstatic final StringService application data node namestatic final String -
Constructor Summary
ConstructorsConstructorDescriptionProductInformations(org.exoplatform.container.configuration.ConfigurationManager cmanager, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.api.settings.SettingService settingService) -
Method Summary
Modifier and TypeMethodDescriptiongetPreviousVersion(String productGroupId) getVersion(String productGroupId) voidinitProductInformation(Properties properties) booleanvoidsetFirstRun(boolean firstRun) voidsetPreviousVersionsIfFirstRun(String defaultVersion) voidsetProductInformationProperties(Properties productInformationProperties) voidsetUnlockInformation(Properties unlockInformation) voidstart()This service will store the declared product versions at startup.voidstop()This method is called by eXo Kernel when stopping the parent ExoContainervoid
-
Field Details
-
PRODUCT_INFORMATION
- See Also:
-
ENTERPRISE_EDITION
- See Also:
-
EXPRESS_EDITION
- See Also:
-
EDITION
- See Also:
-
KEY_GENERATION_DATE
- See Also:
-
DELAY
- See Also:
-
PRODUCT_CODE
- See Also:
-
PRODUCT_KEY
- See Also:
-
NB_USERS
- See Also:
-
PRODUCT_NAME
- See Also:
-
PRODUCT_GROUP_ID
- See Also:
-
PRODUCT_REVISION
- See Also:
-
PRODUCT_BUILD_NUMBER
- See Also:
-
WORKING_WORSPACE_NAME
- See Also:
-
PRODUCT_VERSIONS_DECLARATION_FILE
- See Also:
-
UPGRADE_PRODUCT_SERVICE_NODE_NAME
Service application data node name- See Also:
-
PRODUCT_VERSION_DECLARATION_NODE_NAME
node name where the Product version declaration is- See Also:
-
-
Constructor Details
-
ProductInformations
public ProductInformations(org.exoplatform.container.configuration.ConfigurationManager cmanager, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.api.settings.SettingService settingService)
-
-
Method Details
-
getEdition
-
getNumberOfUsers
-
getDateOfLicence
-
getDuration
-
getProductName
-
getProductCode
-
getProductKey
-
getVersion
- Returns:
- This method returns the current product's version.
- Throws:
MissingProductInformationException
-
getVersion
- Returns:
- This method return the product version, selected by its maven groupId.
- Throws:
MissingProductInformationException
-
getBuildNumber
- Returns:
- the product.buildNumber property value.
- Throws:
MissingProductInformationException
-
getRevision
- Returns:
- the product.revision property value.
- Throws:
MissingProductInformationException
-
getCurrentProductGroupId
- Returns:
- the current product's maven group id.
- Throws:
MissingProductInformationException
-
getPreviousVersion
- Returns:
- the platform.version property. This method return the platform version.
- Throws:
MissingProductInformationException
-
getPreviousVersion
- Returns:
- the platform.version property. This method return the platform version.
- Throws:
MissingProductInformationException
-
getPreviousBuildNumber
- Returns:
- an empty string if the properties file is not found, otherwise the platform.buildNumber property. This method return the build number of the platform.
- Throws:
MissingProductInformationException
-
getPreviousRevision
- Returns:
- the value of product.revision property. This method return the current revison of the platform.
- Throws:
MissingProductInformationException
-
isFirstRun
public boolean isFirstRun() -
start
public void start()This service will store the declared product versions at startup.- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()This method is called by eXo Kernel when stopping the parent ExoContainer- Specified by:
stopin interfaceorg.picocontainer.Startable
-
storeProductInformation
-
initProductInformation
-
setUnlockInformation
-
setPreviousVersionsIfFirstRun
-
setProductInformationProperties
-
getProductInformationProperties
-
getProductInformation
-
setFirstRun
public void setFirstRun(boolean firstRun)
-