Package com.jalios.jcms
Class JcmsInfo
java.lang.Object
com.jalios.jcms.JcmsInfo
- All Implemented Interfaces:
JaliosConstants
This class manages information about JCMS release.
- Since:
- jcms-3.0
- Author:
- Olivier Dedieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final StringFields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareToVersion(int major, int minor, int maintenance) Compare this version of JPlatform to the given version (major.minor.maintenance)static StringgenerateAddPackProp(String addPack, String channelName) Generates a add-pack property from a given string.com.jalios.jcms.JcmsInfo.AdditionalPackReturn the expiration date of the current AddPack, if any.Returns the name of the add-pack.static org.apache.log4j.Loggerstatic intstatic intstatic intvoidinit()
-
Field Details
-
RELEASE_MAJOR
public static final int RELEASE_MAJOR -
RELEASE_MINOR
public static final int RELEASE_MINOR -
RELEASE_MAINTENANCE
public static final int RELEASE_MAINTENANCE -
RELEASE_CANDIDATE
-
RELEASE
-
BUILD
- See Also:
-
SVN_REVISION
- See Also:
-
GIT_REVISION
- See Also:
-
-
Constructor Details
-
JcmsInfo
public JcmsInfo()
-
-
Method Details
-
init
public void init() -
getLogger
public static org.apache.log4j.Logger getLogger() -
getVersion
- Returns:
- JPlatform version string
- Since:
- jcms-3.0
-
getVersionMajor
public static int getVersionMajor()- Returns:
- JPlatform major version number
- Since:
- jcms-10.0.5
-
getVersionMinor
public static int getVersionMinor()- Returns:
- JPlatform mino version number
- Since:
- jcms-10.0.5
-
getVersionMaintenance
public static int getVersionMaintenance()- Returns:
- JPlatform maintenance version number
- Since:
- jcms-10.0.5
-
getBuildPropertiesMap
- Returns:
- JCMS build properties map
- Since:
- jcms-10.0.1
-
generateAddPackProp
Generates a add-pack property from a given string.- Parameters:
addPack- the add-pack stringchannelName- the name of the channel- Returns:
- the add-pack property
- Since:
- jcms-5.6.0
-
getAdditionalPack
public com.jalios.jcms.JcmsInfo.AdditionalPack getAdditionalPack() -
getAddPackExpirationDate
Return the expiration date of the current AddPack, if any.- Returns:
- a Date, or null if no addpack is configured, or if this add pack does not have an expiration date
-
getAddPackName
Returns the name of the add-pack.- Returns:
- the name of the add-pack.
- Since:
- jcms-8.0.0
-
compareToVersion
public int compareToVersion(int major, int minor, int maintenance) Compare this version of JPlatform to the given version (major.minor.maintenance)- Parameters:
major- the major digitminor- the minor digitmaintenance- the maintenance digit- Returns:
- 1 if this version is greater than the given one. 0 if it is the same. -1 if this version is lesser than the given one.
- Since:
- jcms-10.0.5
-