|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exoplatform.commons.info.ProductInformations
public class ProductInformations
| Field Summary | |
|---|---|
static String |
EXO_APPLICATIONS_DATA_NODE_ALIAS
Constant that will be used in nodeHierarchyCreator.getJcrPath: it represents the Application data root node Alias |
static String |
MIX_VERSIONABLE
MixinType that will activate the versioning on a selected node |
static String |
PROCEED_UPGRADE_FIRST_TIME_KEY
|
static String |
PRODUCT_BUILD_NUMBER
|
static String |
PRODUCT_GROUP_ID
|
static String |
PRODUCT_REVISION
|
static String |
PRODUCT_VERSION_DECLARATION_NODE_NAME
node name where the Product version declaration is |
static String |
PRODUCT_VERSIONS_DECLARATION_FILE
|
static String |
UPGRADE_PRODUCT_SERVICE_NODE_NAME
Service application data node name |
static String |
WORKING_WORSPACE_NAME
|
| Constructor Summary | |
|---|---|
ProductInformations(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.container.configuration.ConfigurationManager cmanager,
org.exoplatform.container.xml.InitParams initParams)
|
|
| Method Summary | |
|---|---|
String |
getBuildNumber()
|
String |
getCurrentProductGroupId()
|
String |
getPreviousBuildNumber()
|
String |
getPreviousRevision()
|
String |
getPreviousVersion()
|
String |
getPreviousVersion(String productGroupId)
|
String |
getProductVersionDeclarationNodePath()
|
String |
getRevision()
|
String |
getVersion()
|
String |
getVersion(String productGroupId)
|
boolean |
isFirstRun()
|
void |
setPreviousVersionsIfFirstRun(String defaultVersion)
|
void |
start()
This method loads from the JCR the stored products versions. |
void |
stop()
This method is called by eXo Kernel when stopping the parent ExoContainer |
void |
storeProductsInformationsInJCR()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PRODUCT_GROUP_ID
public static final String PRODUCT_REVISION
public static final String PRODUCT_BUILD_NUMBER
public static final String PRODUCT_VERSIONS_DECLARATION_FILE
public static final String PROCEED_UPGRADE_FIRST_TIME_KEY
public static final String WORKING_WORSPACE_NAME
public static final String EXO_APPLICATIONS_DATA_NODE_ALIAS
public static final String MIX_VERSIONABLE
public static final String UPGRADE_PRODUCT_SERVICE_NODE_NAME
public static final String PRODUCT_VERSION_DECLARATION_NODE_NAME
| Constructor Detail |
|---|
public ProductInformations(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.container.configuration.ConfigurationManager cmanager,
org.exoplatform.container.xml.InitParams initParams)
| Method Detail |
|---|
public String getVersion()
throws MissingProductInformationException
MissingProductInformationException
public String getVersion(String productGroupId)
throws MissingProductInformationException
MissingProductInformationException
public String getBuildNumber()
throws MissingProductInformationException
MissingProductInformationException
public String getRevision()
throws MissingProductInformationException
MissingProductInformationException
public String getCurrentProductGroupId()
throws MissingProductInformationException
MissingProductInformationException
public String getPreviousVersion()
throws MissingProductInformationException
MissingProductInformationException
public String getPreviousVersion(String productGroupId)
throws MissingProductInformationException
MissingProductInformationException
public String getPreviousBuildNumber()
throws MissingProductInformationException
MissingProductInformationException
public String getPreviousRevision()
throws MissingProductInformationException
MissingProductInformationExceptionpublic boolean isFirstRun()
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void storeProductsInformationsInJCR()
public String getProductVersionDeclarationNodePath()
public void setPreviousVersionsIfFirstRun(String defaultVersion)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||