com.jalios.jcms
Class JcmsInfo

java.lang.Object
  extended by com.jalios.jcms.JcmsInfo

public class JcmsInfo
extends Object

This class manages information about JCMS release.

Since:
jcms-3.0
Version:
$Revision: 79944 $
Author:
Olivier Dedieu

Field Summary
static String BUILD
           
static int JCMS_EE
           
static int JCMS_SE
           
static int JCMS_WE
           
static String RELEASE
           
static String RELEASE_CANDIDATE
           
static int RELEASE_MAINTENANCE
           
static int RELEASE_MAJOR
           
static int RELEASE_MINOR
           
static String REVISION
           
static String SVN_REVISION
           
 
Constructor Summary
JcmsInfo()
           
 
Method Summary
static String generateAddPackProp(String addPack, String channelName)
          Generates a add-pack property from a given string.
 com.jalios.jcms.JcmsInfo.AdditionalPack getAdditionalPack()
           
 Date getAddPackExpirationDate()
          Return the expiration date of the current AddPack, if any.
 String getAddPackName()
          Returns the name of the add-pack.
static org.apache.log4j.Logger getLogger()
           
 String getVersion()
           
 void init()
           
static void main(String[] args)
           
static void mainUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

RELEASE_MAJOR

public static final int RELEASE_MAJOR
See Also:
Constant Field Values

RELEASE_MINOR

public static final int RELEASE_MINOR
See Also:
Constant Field Values

RELEASE_MAINTENANCE

public static final int RELEASE_MAINTENANCE
See Also:
Constant Field Values

RELEASE_CANDIDATE

public static final String RELEASE_CANDIDATE
See Also:
Constant Field Values

RELEASE

public static final String RELEASE
See Also:
Constant Field Values

BUILD

public static final String BUILD
See Also:
Constant Field Values

SVN_REVISION

public static final String SVN_REVISION
See Also:
Constant Field Values

JCMS_SE

public static final int JCMS_SE
See Also:
Constant Field Values

JCMS_WE

public static final int JCMS_WE
See Also:
Constant Field Values

JCMS_EE

public static final int JCMS_EE
See Also:
Constant Field Values
Constructor Detail

JcmsInfo

public JcmsInfo()
Method Detail

init

public void init()

getLogger

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

getVersion

public String getVersion()
Returns:
JCMS version string
Since:
jcms-3.0

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 channem
Returns:
the add-pack property
Since:
jcms-5.6.0

mainUsage

public static void mainUsage()

main

public static void main(String[] args)

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-7.1.3


Copyright © 2001-2010 Jalios SA. All Rights Reserved.