Class CMS
java.lang.Object
com.netscape.cmscore.apps.CMS
This represents the CMS server. Plugins can access other
public objects such as subsystems via this inteface.
This object also include a set of utility functions.
- Version:
- $Revision$, $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic org.slf4j.Loggerstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CMSEnginestatic StringgetLogMessage(String msgID, Object... params) Retrieves log message from LogMessages.properties or audit-events.properties.static StringReturn the product name from /usr/share/pki/CS_SERVER_VERSION which is provided by the server theme package.static Stringstatic StringgetUserMessage(String msgID, String... params) Retrieves the localized user message from UserMessages.properties.static StringgetUserMessage(Locale locale, String msgID, String... params) Retrieves the localized user message from UserMessages.properties.static booleanisSensitive(String name) Check whether the string is contains passwordstatic voidsetCMSEngine(CMSEngine engine)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
DEBUG_OBNOXIOUS
public static final int DEBUG_OBNOXIOUS- See Also:
-
DEBUG_VERBOSE
public static final int DEBUG_VERBOSE- See Also:
-
DEBUG_INFORM
public static final int DEBUG_INFORM- See Also:
-
CONFIG_FILE
- See Also:
-
PRE_OP_MODE
public static final int PRE_OP_MODE- See Also:
-
RUNNING_MODE
public static final int RUNNING_MODE- See Also:
-
-
Constructor Details
-
CMS
public CMS()
-
-
Method Details
-
getCMSEngine
-
setCMSEngine
-
getProductName
-
getProductVersion
-
getUserMessage
-
getUserMessage
Retrieves the localized user message from UserMessages.properties.- Parameters:
locale- end-user localemsgID- message id defined in UserMessages.propertiesparams- an array of parameters- Returns:
- localized user message
-
getLogMessage
-
isSensitive
Check whether the string is contains password- Parameters:
name- key string- Returns:
- whether key is a password or not
-