Class JcmsInfo

  • All Implemented Interfaces:
    JaliosConstants

    public class JcmsInfo
    extends java.lang.Object
    implements JaliosConstants
    This class manages information about JCMS release.
    Since:
    jcms-3.0
    Version:
    $Revision: 136314 $
    Author:
    Olivier Dedieu
    • Field Detail

      • 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 java.lang.String RELEASE_CANDIDATE
      • RELEASE

        public static final java.lang.String RELEASE
    • Constructor Detail

      • JcmsInfo

        public JcmsInfo()
    • Method Detail

      • init

        public void init()
      • getLogger

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

        public java.lang.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 java.util.Map<java.lang.String,​java.lang.String> getBuildPropertiesMap()
        Returns:
        JCMS build properties map
        Since:
        jcms-10.0.1
      • generateAddPackProp

        public static java.lang.String generateAddPackProp​(java.lang.String addPack,
                                                           java.lang.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 java.util.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 java.lang.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