Package org.opencms.configuration
Class CmsSitesConfiguration
- java.lang.Object
-
- org.opencms.configuration.A_CmsXmlConfiguration
-
- org.opencms.configuration.CmsSitesConfiguration
-
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler,I_CmsXmlConfiguration,I_CmsXmlConfigurationWithUpdateHandler
public class CmsSitesConfiguration extends A_CmsXmlConfiguration implements I_CmsXmlConfigurationWithUpdateHandler
Class to read and write the OpenCms site configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringA_ERRORThe "error" attribute.static java.lang.StringA_ERROR_PAGEThe "errorPage" attribute.static java.lang.StringA_EXCLUSIVEThe "exclusive" attribute.static java.lang.StringA_OFFSETThe attribute name for the alias offset.static java.lang.StringA_POSITIONThe "position" attribute.static java.lang.StringA_REDIRECTThe "redirect" attribute.static java.lang.StringA_SERVERThe "server" attribute.static java.lang.StringA_SSLThe ssl mode attribute.static java.lang.StringA_SUBSITE_SELECTIONAttribute name for the subsiteSelection option.static java.lang.StringA_TITLEThe "title" attribute.static java.lang.StringA_USE_PERMANENT_REDIRECTSThe "usePermanentRedirects" attribute.static java.lang.StringA_WEBSERVERThe "webserver" attribute.static java.lang.StringCONFIGURATION_DTD_NAMEThe name of the DTD for this configuration.static java.lang.StringDEFAULT_XML_FILE_NAMEThe name of the default XML file for this configuration.static java.lang.StringN_ALIASThe node name for the alias node.static java.lang.StringN_DEFAULT_URIThe node name for the default-uri node.static java.lang.StringN_OLD_STYLE_SECURE_SERVERNew secure modes node.static java.lang.StringN_PARAMETERSThe node name for the parameters.static java.lang.StringN_SECUREThe node name for the secure site.static java.lang.StringN_SHARED_FOLDERShared folder node name.static java.lang.StringN_SITESThe node name for the sites node.static java.lang.StringN_WEBSERVERSCRIPTINGThe node name which indicates if apache should be configurable in sitemanager.static java.lang.StringN_WEBSERVERSCRIPTING_CONFIGTEMPLATEConfiguration node name.static java.lang.StringN_WEBSERVERSCRIPTING_FILENAMEPREFIXConfiguration node name.static java.lang.StringN_WEBSERVERSCRIPTING_LOGGINGDIRConfiguration node name.static java.lang.StringN_WEBSERVERSCRIPTING_SECURETEMPLATEConfiguration node name.static java.lang.StringN_WEBSERVERSCRIPTING_TARGETPATHConfiguration node name.static java.lang.StringN_WEBSERVERSCRIPTING_WEBSERVERSCRIPTConfiguration node name.static java.lang.StringN_WORKPLACE_SERVERThe node name for the workplace-server node.-
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
-
Fields 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 Constructor Description CmsSitesConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddXmlDigesterRules(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.java.lang.StringgetDtdFilename()Returns the name of the DTD file for this XML configuration, e.g.CmsSiteManagerImplgetSiteManager()Returns the site manager.voidhandleUpdate()Called when OpenCms has written the configuration to the file system.protected voidinitMembers()Initializes member variables.voidsetCmsObject(CmsObject cms)Called during startup with a CmsObject with admin privileges.voidsetSiteManager(CmsSiteManagerImpl siteManager)Sets the site manager.-
Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration
addConfigurationParameter, getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
Methods inherited from interface org.opencms.configuration.I_CmsXmlConfiguration
getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName
-
-
-
-
Field Detail
-
A_ERROR
public static final java.lang.String A_ERROR
The "error" attribute.- See Also:
- Constant Field Values
-
A_ERROR_PAGE
public static final java.lang.String A_ERROR_PAGE
The "errorPage" attribute.- See Also:
- Constant Field Values
-
A_EXCLUSIVE
public static final java.lang.String A_EXCLUSIVE
The "exclusive" attribute.- See Also:
- Constant Field Values
-
A_OFFSET
public static final java.lang.String A_OFFSET
The attribute name for the alias offset.- See Also:
- Constant Field Values
-
A_POSITION
public static final java.lang.String A_POSITION
The "position" attribute.- See Also:
- Constant Field Values
-
A_REDIRECT
public static final java.lang.String A_REDIRECT
The "redirect" attribute.- See Also:
- Constant Field Values
-
A_SERVER
public static final java.lang.String A_SERVER
The "server" attribute.- See Also:
- Constant Field Values
-
A_SSL
public static final java.lang.String A_SSL
The ssl mode attribute.- See Also:
- Constant Field Values
-
A_SUBSITE_SELECTION
public static final java.lang.String A_SUBSITE_SELECTION
Attribute name for the subsiteSelection option.- See Also:
- Constant Field Values
-
A_TITLE
public static final java.lang.String A_TITLE
The "title" attribute.- See Also:
- Constant Field Values
-
A_USE_PERMANENT_REDIRECTS
public static final java.lang.String A_USE_PERMANENT_REDIRECTS
The "usePermanentRedirects" attribute.- See Also:
- Constant Field Values
-
A_WEBSERVER
public static final java.lang.String A_WEBSERVER
The "webserver" attribute.- See Also:
- Constant Field Values
-
CONFIGURATION_DTD_NAME
public static final java.lang.String CONFIGURATION_DTD_NAME
The name of the DTD for this configuration.- See Also:
- Constant Field Values
-
DEFAULT_XML_FILE_NAME
public static final java.lang.String DEFAULT_XML_FILE_NAME
The name of the default XML file for this configuration.- See Also:
- Constant Field Values
-
N_ALIAS
public static final java.lang.String N_ALIAS
The node name for the alias node.- See Also:
- Constant Field Values
-
N_DEFAULT_URI
public static final java.lang.String N_DEFAULT_URI
The node name for the default-uri node.- See Also:
- Constant Field Values
-
N_OLD_STYLE_SECURE_SERVER
public static final java.lang.String N_OLD_STYLE_SECURE_SERVER
New secure modes node.- See Also:
- Constant Field Values
-
N_PARAMETERS
public static final java.lang.String N_PARAMETERS
The node name for the parameters.- See Also:
- Constant Field Values
-
N_SECURE
public static final java.lang.String N_SECURE
The node name for the secure site.- See Also:
- Constant Field Values
-
N_SHARED_FOLDER
public static final java.lang.String N_SHARED_FOLDER
Shared folder node name.- See Also:
- Constant Field Values
-
N_SITES
public static final java.lang.String N_SITES
The node name for the sites node.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING
public static final java.lang.String N_WEBSERVERSCRIPTING
The node name which indicates if apache should be configurable in sitemanager.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING_CONFIGTEMPLATE
public static final java.lang.String N_WEBSERVERSCRIPTING_CONFIGTEMPLATE
Configuration node name.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING_FILENAMEPREFIX
public static final java.lang.String N_WEBSERVERSCRIPTING_FILENAMEPREFIX
Configuration node name.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING_LOGGINGDIR
public static final java.lang.String N_WEBSERVERSCRIPTING_LOGGINGDIR
Configuration node name.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING_SECURETEMPLATE
public static final java.lang.String N_WEBSERVERSCRIPTING_SECURETEMPLATE
Configuration node name.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING_TARGETPATH
public static final java.lang.String N_WEBSERVERSCRIPTING_TARGETPATH
Configuration node name.- See Also:
- Constant Field Values
-
N_WEBSERVERSCRIPTING_WEBSERVERSCRIPT
public static final java.lang.String N_WEBSERVERSCRIPTING_WEBSERVERSCRIPT
Configuration node name.- See Also:
- Constant Field Values
-
N_WORKPLACE_SERVER
public static final java.lang.String N_WORKPLACE_SERVER
The node name for the workplace-server node.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsSitesConfiguration
public CmsSitesConfiguration()
-
-
Method Detail
-
addXmlDigesterRules
public void addXmlDigesterRules(org.apache.commons.digester3.Digester digester)
Description copied from interface:I_CmsXmlConfigurationDigests an XML node and creates an instance of this configurable class.- Specified by:
addXmlDigesterRulesin interfaceI_CmsXmlConfiguration- Parameters:
digester- the digester to use- See Also:
I_CmsXmlConfiguration.addXmlDigesterRules(org.apache.commons.digester3.Digester)
-
generateXml
public org.dom4j.Element generateXml(org.dom4j.Element parent)
Description copied from interface:I_CmsXmlConfigurationGenerates the XML element for this configurable class.- Specified by:
generateXmlin interfaceI_CmsXmlConfiguration- Parameters:
parent- the parent element in the XML tree- Returns:
- the XML element for this configurable class
- See Also:
I_CmsXmlConfiguration.generateXml(org.dom4j.Element)
-
getDtdFilename
public java.lang.String getDtdFilename()
Description copied from interface:I_CmsXmlConfigurationReturns the name of the DTD file for this XML configuration, e.g.opencms-configuration.dtd.- Specified by:
getDtdFilenamein interfaceI_CmsXmlConfiguration- Returns:
- the name of the DTD file for this XML configuration
- See Also:
I_CmsXmlConfiguration.getDtdFilename()
-
getSiteManager
public CmsSiteManagerImpl getSiteManager()
Returns the site manager.- Returns:
- the site manager
-
handleUpdate
public void handleUpdate() throws java.lang.Exception
Description copied from interface:I_CmsXmlConfigurationWithUpdateHandlerCalled when OpenCms has written the configuration to the file system.- Specified by:
handleUpdatein interfaceI_CmsXmlConfigurationWithUpdateHandler- Throws:
java.lang.Exception- if something goes wrong- See Also:
I_CmsXmlConfigurationWithUpdateHandler.handleUpdate()
-
setCmsObject
public void setCmsObject(CmsObject cms)
Description copied from interface:I_CmsXmlConfigurationWithUpdateHandlerCalled during startup with a CmsObject with admin privileges.- Specified by:
setCmsObjectin interfaceI_CmsXmlConfigurationWithUpdateHandler- Parameters:
cms- the CMS context- See Also:
I_CmsXmlConfigurationWithUpdateHandler.setCmsObject(org.opencms.file.CmsObject)
-
setSiteManager
public void setSiteManager(CmsSiteManagerImpl siteManager)
Sets the site manager.- Parameters:
siteManager- the site manager to set
-
initMembers
protected void initMembers()
Description copied from class:A_CmsXmlConfigurationInitializes member variables.- Specified by:
initMembersin classA_CmsXmlConfiguration- See Also:
A_CmsXmlConfiguration.initMembers()
-
-