Package org.opencms.configuration
Class CmsVariablesConfiguration
java.lang.Object
org.opencms.configuration.A_CmsXmlConfiguration
org.opencms.configuration.CmsVariablesConfiguration
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler,I_CmsXmlConfiguration
Class to read and write the OpenCms site configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the DTD for this configuration.static final StringThe name of the default XML file for this configuration.static final StringThe node name for the login message.static final StringThe node name for the login message enabled flag.static final StringThe node name for the login message login forbidden flag.static final StringThe node name for the login message.static final StringThe node name for the login message text.static final StringThe node name for the login message end time.static final StringThe node name for the login message start time.static final StringThe node name for the variables element.Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHODFields inherited from interface org.opencms.configuration.I_CmsXmlConfiguration
A_ALIAS, A_CLASS, A_COUNT, A_DEFAULT, A_DESTINATION, A_ENABLED, A_FROM, A_HANDLER, A_ICON, A_ID, A_KEY, A_MODE, A_NAME, A_ORDER, A_PASSWORD, A_PORT, A_PROTOCOL, A_SUFFIX, A_TO, A_TYPE, A_URI, A_USER, A_VALUE, N_EXPORTPOINT, N_EXPORTPOINTS, N_NAME, N_PARAM, N_PROPERTY, N_RESOURCE, N_SITE, N_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddXmlDigesterRules(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.org.dom4j.ElementgenerateXml(org.dom4j.Element parent) Generates the XML element for this configurable class.Returns the login message.Returns the name of the DTD file for this XML configuration, e.g.Returns the login message.protected voidInitializes member variables.voidsetBeforeLoginMessage(CmsLoginMessage message) Adds the before login message from the configuration.voidsetLoginMessage(CmsLoginMessage message) Adds the login message from the configuration.Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration
addConfigurationParameter, getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileName
-
Field Details
-
N_LOGINMESSAGE
The node name for the login message.- See Also:
-
N_BEFORELOGINMESSAGE
The node name for the login message.- See Also:
-
N_VARIABLES
The node name for the variables element.- See Also:
-
N_ENABLED
The node name for the login message enabled flag.- See Also:
-
N_MESSAGE
The node name for the login message text.- See Also:
-
N_TIMESTART
The node name for the login message start time.- See Also:
-
N_TIMEEND
The node name for the login message end time.- See Also:
-
N_LOGINFORBIDDEN
The node name for the login message login forbidden flag.- See Also:
-
CONFIGURATION_DTD_NAME
The name of the DTD for this configuration.- See Also:
-
DEFAULT_XML_FILE_NAME
The name of the default XML file for this configuration.- See Also:
-
-
Constructor Details
-
CmsVariablesConfiguration
public CmsVariablesConfiguration()
-
-
Method Details
-
addXmlDigesterRules
Description copied from interface:I_CmsXmlConfigurationDigests an XML node and creates an instance of this configurable class.- Parameters:
digester- the digester to use- See Also:
-
generateXml
Description copied from interface:I_CmsXmlConfigurationGenerates the XML element for this configurable class.- Parameters:
parent- the parent element in the XML tree- Returns:
- the XML element for this configurable class
- See Also:
-
getBeforeLoginMessage
Returns the login message.- Returns:
- before login message
-
getDtdFilename
Description copied from interface:I_CmsXmlConfigurationReturns the name of the DTD file for this XML configuration, e.g.opencms-configuration.dtd.- Returns:
- the name of the DTD file for this XML configuration
- See Also:
-
getLoginMessage
Returns the login message.- Returns:
- the login message
-
setBeforeLoginMessage
Adds the before login message from the configuration.- Parameters:
message- the login message to add
-
setLoginMessage
Adds the login message from the configuration.- Parameters:
message- the login message to add
-
initMembers
Description copied from class:A_CmsXmlConfigurationInitializes member variables.- Specified by:
initMembersin classA_CmsXmlConfiguration- See Also:
-