|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.configuration.A_CmsXmlConfiguration
org.opencms.configuration.CmsSystemConfiguration
public class CmsSystemConfiguration
VFS master configuration class.
| Field Summary | |
|---|---|
protected static String |
A_SERVER
The "server" attribute. |
protected static String |
CONFIGURATION_DTD_NAME
The name of the DTD for this configuration. |
protected static String |
DEFAULT_XML_FILE_NAME
The name of the default XML file for this configuration. |
protected static String |
N_ACTIVE
The node name for the job "active" value. |
protected static String |
N_ALIAS
The node name for the alias node. |
protected static String |
N_AVGCACHEBYTES
The node name for the avgcachebytes node. |
protected static String |
N_BROWSER_BASED
The node name for the browser-based node. |
protected static String |
N_CACHE_ENABLED
The node name for the cache-enabled node. |
protected static String |
N_CACHE_OFFLINE
The node name for the cache-offline node. |
protected static String |
N_CLASS
The node name for a job class. |
protected static String |
N_CONTEXT
The node name for the job context. |
protected static String |
N_CRONEXPRESSION
The node name for the job cron expression. |
protected static String |
N_DEFAULT_CONTENT_ENCODING
The node name for the defaultcontentencoding node. |
protected static String |
N_DEFAULT_URI
The node name for the default-uri node. |
protected static String |
N_DEFAULTUSERS
The node name for the defaultusers expression. |
protected static String |
N_DIGESTTYPE
The node name for the digest type. |
protected static String |
N_DISABLEMINUTES
The node name for the login account lock minutes. |
protected static String |
N_EMAIL_INTERVAL
The node name for the email-interval node. |
protected static String |
N_EMAIL_RECEIVER
The node name for the email-receiver node. |
protected static String |
N_EMAIL_SENDER
The node name for the email-sender node. |
static String |
N_ENABLED
The node name for the login message enabled flag. |
protected static String |
N_ENCODING
The node name for the context encoding. |
protected static String |
N_FLEXCACHE
The node name for the flexcache node. |
protected static String |
N_FORM_BASED
The node name for the form-based node. |
protected static String |
N_GROUP_ADMINISTRATORS
The node name for the group-administrators node. |
protected static String |
N_GROUP_GUESTS
The node name for the group-guests node. |
protected static String |
N_GROUP_PROJECTMANAGERS
The node name for the group-projectmanagers node. |
protected static String |
N_GROUP_USERS
The node name for the group-users node. |
protected static String |
N_HTTP_AUTHENTICATION
The node name for the http-authentication node. |
protected static String |
N_I18N
The node name for the internationalization node. |
protected static String |
N_JOB
The node name for a job. |
protected static String |
N_LOCALE
The node name for individual locales. |
protected static String |
N_LOCALEHANDLER
The node name for the locale handler. |
protected static String |
N_LOCALESCONFIGURED
The node name for the configured locales. |
protected static String |
N_LOCALESDEFAULT
The node name for the default locale(s). |
protected static String |
N_LOG_INTERVAL
The node name for the log-interval node. |
static String |
N_LOGINFORBIDDEN
The node name for the login message login forbidden flag. |
protected static String |
N_LOGINMANAGER
The node name for the login manager. |
static String |
N_LOGINMESSAGE
The node name for the login message. |
protected static String |
N_MAIL
The node name for the mail configuration. |
protected static String |
N_MAILFROM
The node name for the "mail from" node. |
protected static String |
N_MAILHOST
The node name for the "mail host" node. |
protected static String |
N_MAXBADATTEMPTS
The node name for the login manager bad attempt count. |
protected static String |
N_MAXCACHEBYTES
The node name for the maxcachebytes node. |
protected static String |
N_MAXENTRYBYTES
The node name for the maxentrybytes node. |
protected static String |
N_MAXKEYS
The node name for the maxkeys node. |
protected static String |
N_MAXUSAGE_PERCENT
The node name for the maxusagepercent node. |
protected static String |
N_MEMORYMONITOR
The node name for the memorymonitor node. |
static String |
N_MESSAGE
The node name for the login message text. |
protected static String |
N_PARAMETERS
The node name for the job parameters. |
protected static String |
N_PASSWORDENCODING
The node name for the password encoding. |
protected static String |
N_PASSWORDHANDLER
The node name for the password handler. |
protected static String |
N_PROJECT
The node name for the context project name. |
protected static String |
N_RECEIVER
The node name for the memory email receiver. |
protected static String |
N_REMOTEADDR
The node name for the context remote addr. |
protected static String |
N_REQUESTEDURI
The node name for the context requested uri. |
protected static String |
N_REQUESTHANDLER
The node name for the request handler classes. |
protected static String |
N_REQUESTHANDLERS
The node name for the request handlers. |
protected static String |
N_RESOURCEINIT
The node name for the resource init classes. |
protected static String |
N_RESOURCEINITHANDLER
The node name for the resource init classes. |
protected static String |
N_REUSEINSTANCE
The node name for the job "reuseinstance" value. |
protected static String |
N_RUNTIMECLASSES
The node name for the runtime info. |
protected static String |
N_RUNTIMEINFO
The node name for the runtime info factory. |
protected static String |
N_RUNTIMEPROPERTIES
The node name for the runtime properties node. |
protected static String |
N_SCHEDULER
The node name for the scheduler. |
protected static String |
N_SECURE
The node name for the secure site. |
protected static String |
N_SITEROOT
The node name for the context site root. |
protected static String |
N_SITES
The node name for the sites node. |
protected static String |
N_SYSTEM
The main system configuration node name. |
static String |
N_TIMEEND
The node name for the login message end time. |
static String |
N_TIMESTART
The node name for the login message start time. |
protected static String |
N_USER_ADMIN
The node name for the user-admin node. |
protected static String |
N_USER_DELETEDRESOURCE
The node name for the user-deletedresource node. |
protected static String |
N_USER_EXPORT
The node name for the user-export node. |
protected static String |
N_USER_GUEST
The node name for the user-guest node. |
protected static String |
N_USERNAME
The node name for the context user name. |
protected static String |
N_VERSIONHISTORY
The node name for the version history. |
protected static String |
N_WARNING_INTERVAL
The node name for the warning-interval node. |
protected static String |
N_WORKPLACE_SERVER
The node name for the workplace-server node. |
| Fields inherited from interface org.opencms.configuration.I_CmsXmlConfiguration |
|---|
A_ALIAS, A_CLASS, A_COUNT, A_DESTINATION, A_ENABLED, A_FROM, A_HANDLER, A_ICON, A_ID, A_KEY, A_NAME, A_ORDER, A_PASSWORD, 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 |
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
CmsSystemConfiguration()
Public constructor, will be called by configuration manager. |
|
| Method Summary | |
|---|---|
void |
addConfigurationParameter(String paramName,
String paramValue)
Adds a configuration parameter to this parameter configurable class instance. |
void |
addJobFromConfiguration(CmsScheduledJobInfo jobInfo)
Adds a new job description for the scheduler. |
void |
addRequestHandler(String clazz)
Adds a new instance of a request handler class. |
void |
addResourceInitHandler(String clazz)
Adds a new instance of a resource init handler class. |
void |
addScheduleManager()
Generates the schedule manager. |
void |
addXmlDigesterRules(Digester digester)
Digests an XML node and creates an instance of this configurable class. |
Element |
generateXml(Element parent)
Generates the XML element for this configurable class. |
CmsCacheSettings |
getCacheSettings()
Returns the settings of the driver manager. |
CmsDefaultUsers |
getCmsDefaultUsers()
Returns the default users. |
CmsFlexCacheConfiguration |
getCmsFlexCacheConfiguration()
Returns the flexCacheConfiguration. |
CmsMemoryMonitorConfiguration |
getCmsMemoryMonitorConfiguration()
Returns the memory monitor configuration. |
String |
getDefaultContentEncoding()
Returns the defaultContentEncoding. |
String |
getDtdFilename()
Returns the name of the DTD file for this XML configuration, e.g. |
CmsHttpAuthenticationSettings |
getHttpAuthenticationSettings()
Returns the HTTP authentication settings. |
CmsLocaleManager |
getLocaleManager()
Returns the configured locale manager for multi language support. |
CmsLoginManager |
getLoginManager()
Returns the configured login manager. |
CmsMailSettings |
getMailSettings()
Returns the configured mail settings. |
I_CmsPasswordHandler |
getPasswordHandler()
Returns the configured password handler. |
List |
getRequestHandlers()
Returns the list of instanciated request handler classes. |
List |
getResourceInitHandlers()
Returns the list of instanciated resource init handler classes. |
I_CmsDbContextFactory |
getRuntimeInfoFactory()
Returns the runtime info factory instance. |
Map |
getRuntimeProperties()
Returns the runtime Properties. |
CmsScheduleManager |
getScheduleManager()
Returns the configured schedule manager. |
CmsSiteManager |
getSiteManager()
Returns the site manager. |
int |
getTempFileProjectId()
Returns temporary file project id. |
int |
getVersionHistoryMaxCount()
Returns the maximum number of versions that are kept per file in the VFS version history. |
void |
initializeFinished()
Will be called when configuration of this object is finished. |
boolean |
isVersionHistoryEnabled()
Returns if the VFS version history is enabled. |
void |
setCacheSettings(CmsCacheSettings settings)
Sets the settings of the driver manager. |
void |
setCmsDefaultUsers(String userAdmin,
String userGuest,
String userExport,
String userDeletedResource,
String groupAdministrators,
String groupProjectmanagers,
String groupUsers,
String groupGuests)
Sets the CmsDefaultUsers. |
void |
setCmsFlexCacheConfiguration(CmsFlexCacheConfiguration flexCacheConfiguration)
Sets the flexCacheConfiguration. |
void |
setCmsMemoryMonitorConfiguration(CmsMemoryMonitorConfiguration cmsMemoryMonitorConfiguration)
Sets the cmsMemoryMonitorConfiguration. |
void |
setDefaultContentEncoding(String defaultContentEncoding)
Sets the defaultContentEncoding. |
void |
setHttpAuthenticationSettings(CmsHttpAuthenticationSettings httpAuthenticationSettings)
Sets the HTTP authentication settings. |
void |
setLocaleManager(CmsLocaleManager localeManager)
Sets the locale manager for multi language support. |
void |
setLoginManager(String disableMinutesStr,
String maxBadAttemptsStr)
Sets the configured login manager. |
void |
setLoginMessage(CmsLoginMessage message)
Adds the login message from the configuration. |
void |
setMailSettings(CmsMailSettings mailSettings)
Sets the mail settings. |
void |
setPasswordHandler(I_CmsPasswordHandler passwordHandler)
Sets the password handler class. |
void |
setRuntimeInfoFactory(String className)
Sets the runtime info factory. |
void |
setSiteManager(CmsSiteManager siteManager)
Sets the site manager. |
void |
setTempFileProjectId(String tempFileProjectId)
Sets the temporary file project id. |
void |
setVersionHistorySettings(String historyEnabled,
String historyMaxCount)
VFS version history settings are set here. |
| Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration |
|---|
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_CmsXmlConfiguration |
|---|
getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName |
| Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
getConfiguration, initConfiguration |
| Field Detail |
|---|
public static final String N_ENABLED
public static final String N_LOGINFORBIDDEN
public static final String N_LOGINMESSAGE
public static final String N_MESSAGE
public static final String N_TIMEEND
public static final String N_TIMESTART
protected static final String A_SERVER
protected static final String CONFIGURATION_DTD_NAME
protected static final String DEFAULT_XML_FILE_NAME
protected static final String N_ACTIVE
protected static final String N_ALIAS
protected static final String N_AVGCACHEBYTES
protected static final String N_BROWSER_BASED
protected static final String N_CACHE_ENABLED
protected static final String N_CACHE_OFFLINE
protected static final String N_CLASS
protected static final String N_CONTEXT
protected static final String N_CRONEXPRESSION
protected static final String N_DEFAULT_CONTENT_ENCODING
protected static final String N_DEFAULT_URI
protected static final String N_DEFAULTUSERS
protected static final String N_DIGESTTYPE
protected static final String N_DISABLEMINUTES
protected static final String N_EMAIL_INTERVAL
protected static final String N_EMAIL_RECEIVER
protected static final String N_EMAIL_SENDER
protected static final String N_ENCODING
protected static final String N_FLEXCACHE
protected static final String N_FORM_BASED
protected static final String N_GROUP_ADMINISTRATORS
protected static final String N_GROUP_GUESTS
protected static final String N_GROUP_PROJECTMANAGERS
protected static final String N_GROUP_USERS
protected static final String N_HTTP_AUTHENTICATION
protected static final String N_I18N
protected static final String N_JOB
protected static final String N_LOCALE
protected static final String N_LOCALEHANDLER
protected static final String N_LOCALESCONFIGURED
protected static final String N_LOCALESDEFAULT
protected static final String N_LOG_INTERVAL
protected static final String N_LOGINMANAGER
protected static final String N_MAIL
protected static final String N_MAILFROM
protected static final String N_MAILHOST
protected static final String N_MAXBADATTEMPTS
protected static final String N_MAXCACHEBYTES
protected static final String N_MAXENTRYBYTES
protected static final String N_MAXKEYS
protected static final String N_MAXUSAGE_PERCENT
protected static final String N_MEMORYMONITOR
protected static final String N_PARAMETERS
protected static final String N_PASSWORDENCODING
protected static final String N_PASSWORDHANDLER
protected static final String N_PROJECT
protected static final String N_RECEIVER
protected static final String N_REMOTEADDR
protected static final String N_REQUESTEDURI
protected static final String N_REQUESTHANDLER
protected static final String N_REQUESTHANDLERS
protected static final String N_RESOURCEINIT
protected static final String N_RESOURCEINITHANDLER
protected static final String N_REUSEINSTANCE
protected static final String N_RUNTIMECLASSES
protected static final String N_RUNTIMEINFO
protected static final String N_RUNTIMEPROPERTIES
protected static final String N_SCHEDULER
protected static final String N_SECURE
protected static final String N_SITEROOT
protected static final String N_SITES
protected static final String N_SYSTEM
protected static final String N_USER_ADMIN
protected static final String N_USER_EXPORT
protected static final String N_USER_GUEST
protected static final String N_USER_DELETEDRESOURCE
protected static final String N_USERNAME
protected static final String N_VERSIONHISTORY
protected static final String N_WARNING_INTERVAL
protected static final String N_WORKPLACE_SERVER
| Constructor Detail |
|---|
public CmsSystemConfiguration()
| Method Detail |
|---|
public void addConfigurationParameter(String paramName,
String paramValue)
I_CmsConfigurationParameterHandler
addConfigurationParameter in interface I_CmsConfigurationParameterHandleraddConfigurationParameter in class A_CmsXmlConfigurationparamName - the name of the parameterparamValue - the value for the parameterI_CmsConfigurationParameterHandler.addConfigurationParameter(java.lang.String, java.lang.String)public void addJobFromConfiguration(CmsScheduledJobInfo jobInfo)
jobInfo - the job description to addpublic void addRequestHandler(String clazz)
clazz - the class name of the request handler to instanciate and addpublic void addResourceInitHandler(String clazz)
clazz - the class name of the resource init handler to instanciate and addpublic void addScheduleManager()
public void addXmlDigesterRules(Digester digester)
I_CmsXmlConfiguration
addXmlDigesterRules in interface I_CmsXmlConfigurationdigester - the digester to useI_CmsXmlConfiguration.addXmlDigesterRules(org.apache.commons.digester.Digester)public Element generateXml(Element parent)
I_CmsXmlConfiguration
generateXml in interface I_CmsXmlConfigurationparent - the parent element in the XML tree
I_CmsXmlConfiguration.generateXml(org.dom4j.Element)public CmsCacheSettings getCacheSettings()
public CmsDefaultUsers getCmsDefaultUsers()
public CmsFlexCacheConfiguration getCmsFlexCacheConfiguration()
public CmsMemoryMonitorConfiguration getCmsMemoryMonitorConfiguration()
public String getDefaultContentEncoding()
public String getDtdFilename()
I_CmsXmlConfigurationopencms-configuration.dtd.
getDtdFilename in interface I_CmsXmlConfigurationI_CmsXmlConfiguration.getDtdFilename()public CmsHttpAuthenticationSettings getHttpAuthenticationSettings()
public CmsLocaleManager getLocaleManager()
public CmsLoginManager getLoginManager()
public CmsMailSettings getMailSettings()
public I_CmsPasswordHandler getPasswordHandler()
public List getRequestHandlers()
public List getResourceInitHandlers()
public I_CmsDbContextFactory getRuntimeInfoFactory()
public Map getRuntimeProperties()
public CmsScheduleManager getScheduleManager()
public CmsSiteManager getSiteManager()
public int getTempFileProjectId()
public int getVersionHistoryMaxCount()
If the versin history is disabled, this setting has no effect.
isVersionHistoryEnabled()public void initializeFinished()
public boolean isVersionHistoryEnabled()
public void setCacheSettings(CmsCacheSettings settings)
settings - the settings of the driver manager
public void setCmsDefaultUsers(String userAdmin,
String userGuest,
String userExport,
String userDeletedResource,
String groupAdministrators,
String groupProjectmanagers,
String groupUsers,
String groupGuests)
userAdmin - the name of the default admin useruserGuest - the name of the guest useruserExport - the name of the export useruserDeletedResource - the name of the deleted resource user, can be nullgroupAdministrators - the name of the administrators groupgroupProjectmanagers - the name of the project managers groupgroupUsers - the name of the users groupgroupGuests - the name of the guests grouppublic void setCmsFlexCacheConfiguration(CmsFlexCacheConfiguration flexCacheConfiguration)
flexCacheConfiguration - the flexCacheConfiguration to setpublic void setCmsMemoryMonitorConfiguration(CmsMemoryMonitorConfiguration cmsMemoryMonitorConfiguration)
cmsMemoryMonitorConfiguration - the cmsMemoryMonitorConfiguration to setpublic void setDefaultContentEncoding(String defaultContentEncoding)
defaultContentEncoding - the defaultContentEncoding to setpublic void setHttpAuthenticationSettings(CmsHttpAuthenticationSettings httpAuthenticationSettings)
httpAuthenticationSettings - the HTTP authentication settings to setpublic void setLocaleManager(CmsLocaleManager localeManager)
localeManager - the locale manager to set
public void setLoginManager(String disableMinutesStr,
String maxBadAttemptsStr)
maxBadAttemptsStr - the number of allowed bad login attemptsdisableMinutesStr - the time an account gets locked if to many bad logins are attemptedpublic void setLoginMessage(CmsLoginMessage message)
message - the login message to addpublic void setMailSettings(CmsMailSettings mailSettings)
mailSettings - the mail settings to set.public void setPasswordHandler(I_CmsPasswordHandler passwordHandler)
passwordHandler - the password handler to setpublic void setRuntimeInfoFactory(String className)
className - the class name of the configured runtime info factorypublic void setSiteManager(CmsSiteManager siteManager)
siteManager - the site manager to setpublic void setTempFileProjectId(String tempFileProjectId)
tempFileProjectId - the temporary file project id to set
public void setVersionHistorySettings(String historyEnabled,
String historyMaxCount)
historyEnabled - if true the history is enabledhistoryMaxCount - the maximum number of versions that are kept per VFS resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||