Class JcmsInfo

java.lang.Object
com.jalios.jcms.JcmsInfo
All Implemented Interfaces:
JaliosConstants

public class JcmsInfo extends Object implements JaliosConstants
This class manages information about JCMS release.
Since:
jcms-3.0
Author:
Olivier Dedieu
  • 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

      public static final String RELEASE_CANDIDATE
    • RELEASE

      public static final String RELEASE
    • BUILD

      public static final String BUILD
      See Also:
    • SVN_REVISION

      public static final String SVN_REVISION
      See Also:
    • GIT_REVISION

      public static final String GIT_REVISION
      See Also:
  • Constructor Details

    • JcmsInfo

      public JcmsInfo()
  • Method Details

    • init

      public void init()
    • getLogger

      public static org.apache.log4j.Logger getLogger()
    • getVersion

      public String 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

      public Map<String,String> getBuildPropertiesMap()
      Returns:
      JCMS build properties map
      Since:
      jcms-10.0.1
    • generateAddPackProp

      public static String generateAddPackProp(String addPack, String channelName)
      Generates a add-pack property from a given string.
      Parameters:
      addPack - the add-pack string
      channelName - the name of the channel
      Returns:
      the add-pack property
      Since:
      jcms-5.6.0
    • getAdditionalPack

      public com.jalios.jcms.JcmsInfo.AdditionalPack getAdditionalPack()
    • getAddPackExpirationDate

      public Date 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

      public String 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 digit
      minor - the minor digit
      maintenance - 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