Package org.opencms.configuration
Class CmsSystemConfiguration
java.lang.Object
org.opencms.configuration.A_CmsXmlConfiguration
org.opencms.configuration.CmsSystemConfiguration
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsXmlConfiguration
System master configuration class.
- Since:
- 6.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Data for creating API authorization handlers.static enum
Enum for the user session mode. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The attribute name for the deleted node.static final String
The "error" attribute.static final String
The "errorPage" attribute.static final String
The "exclusive" attribute.static final String
The "id" attribute.static final String
The attribute name for the localization mode.static final String
The "mailfrom" attribute.static final String
The "maxvisited" attribute.static final String
The "offline" attribute.static final String
The "online" attribute.static final String
The "poolname" attribute.static final String
The "security" attribute.static final String
The name of the DTD for this configuration.static final CmsSystemConfiguration.UserSessionMode
The default user session mode.static final String
The name of the default XML file for this configuration.static final String
The ade node name.static final String
The ade-cache node name.static final String
Node name for a single API authorization handler.static final String
Node name for the group of API authorization handlers.static final String
The node name for the authorization handler.static final String
The node name for the avgcachebytes node.static final String
The node name for the browser-based node.static final String
The node name for the cache-enabled node.static final String
The node name for the cache-offline node.static final String
The node name for a job class.static final String
The configuration node name.static final String
The containerpages node name.static final String
The duration after which responsible resource owners will be notified about out-dated content.static final String
The node name for the defaultcontentencoding node.static final String
The node name for the defaultusers expression.static final String
The node name for the detail page handler.static final String
The node name for the device selector node.static final String
The node name for the digest type.static final String
The node name for the login account lock minutes.static final String
The node name for the sitemap cache for documents.static final String
The node name for the email-interval node.static final String
The node name for the email-receiver node.static final String
The node name for the email-sender node.static final String
The node name for the login security option enabled flag.static final String
Node name for the encryption section.static final String
The node name for the request handler classes.static final String
The node name for the events node.static final String
The node name for the flexcache node.static final String
The node name for the form-based node.static final String
The node name for the group-administrators node.static final String
The node name for the group-guests node.static final String
The node name for the group-projectmanagers node.static final String
The node name for the group-users node.static final String
The groupcontainers node name.static final String
The node name for the publish "history-size" value.static final String
The node name for the http-authentication node.static final String
The node name for the internationalization node.static final String
The name of the class to generate cache keys.static final String
The node name for individual locales.static final String
The node name for the locale handler.static final String
The node name for the configured locales.static final String
The node name for the default locale(s).static final String
The node name for the log-interval node.static final String
The node name for the login manager.static final String
Node name for the logout URI.static final String
The node name for the mail configuration.static final String
The node name for the "mail from" node.static final String
The node name for the "mail host" node.static final String
The node name for the login manager bad attempt count.static final String
The node name for the maxcachebytes node.static final String
The node name for the maxentrybytes node.static final String
The node name for the maxkeys node.static final String
The node name for the maxusagepercent node.static final String
The node name for the memorymonitor node.static final String
The duration after which responsibles will be notified about out-dated content.static final String
The duration after which responsibles will be notified about out-dated content.static final String
The node name for the parameters.static final String
Node name for the password change interval.static final String
The node name for the password encoding.static final String
The node name for the password handler.static final String
The node name for the permission handler.static final String
The node name for the prevent-response-flush node.static final String
The node name for the publish list remove mode.static final String
The node name for the "publishhistory" section.static final String
The node name for the "publishhistory" section.static final String
The node name for the "publishhistory" section.static final String
The node name for the memory email receiver.static final String
The node name for the release-tags-after-end node.static final String
The node name for the request-error-page-attribute node.static final String
The node name for the request handler classes.static final String
The node name for the request handlers.static final String
The node name for the resource init classes.static final String
The node name for the resource init classes.static final String
Node name for the restrict-detail-contents option.static final String
the result cache node.static final String
The node name for the runtime info.static final String
The node name for the runtime info factory.static final String
The node name for the runtime properties node.static final String
The node name for the sax-impl-system-properties node.static final String
The node name for the servlet container settings.static final String
The node name for the session-storageprovider node.static final String
The sitemap node name.static final String
The sitemap-cache node name.static final String
The size of the memory monitor's cache for ACLS.static final String
The size of the memory monitor's cache for offline container pages.static final String
The size of the memory monitor's cache for online container pages.static final String
The size of the memory monitor's cache for groups.static final String
The size of the memory monitor's cache for organizational units.static final String
The size of the memory monitor's cache for permission checks.static final String
The size of the memory monitor's cache for project resources.static final String
The size of the memory monitor's cache for projects.static final String
The size of the memory monitor's cache for properties.static final String
The size of the memory monitor's cache for property lists.static final String
The size of the memory monitor's cache for lists of resources.static final String
The size of the memory monitor's cache for resources.static final String
The size of the memory monitor's cache for roles.static final String
The size of the memory monitor's cache for user/group relations.static final String
The size of the memory monitor's cache for users.static final String
The subscriptionmanager node name.static final String
The main system configuration node name.static final String
Node name for declaring a single text encryption.static final String
The node name for the time zone configuration.static final String
Node name for the authorization token lifetime.static final String
The node name for the user-admin node.static final String
Node name for the user data check interval.static final String
The node name for the user-deletedresource node.static final String
The node name for the user-export node.static final String
The node name for the user-guest node.static final String
The node name for the validation handler.static final String
The node name for the version history.static final String
The node name for the warning-interval node.static final String
The node name which indicates if apache should be configurable in sitemanager.static final String
static final String
static final String
static final String
static final String
static final String
static final String
The node name for the workflow configuration.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_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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdeParameter
(String name, String value) Adds an ADE configuration parameter.protected void
Adds a new authorization configuration.void
addAuthorizationHandlerParam
(String name, String value) Adds a parameter for the authorization handler.void
addConfigurationParameter
(String paramName, String paramValue) Adds a configuration parameter to this parameter configurable class instance.void
addEventManager
(String clazz) Adds the event manager class.void
addRequestHandler
(String clazz, CmsParameterConfiguration params) Adds a new instance of a request handler class.void
addResourceInitHandler
(String clazz, CmsParameterConfiguration params) Adds a new instance of a resource init handler class.void
addXmlDigesterRules
(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.org.dom4j.Element
generateXml
(org.dom4j.Element parent) Generates the XML element for this configurable class.Returns the settings of the ADE cache.Returns the ade configuration class name.Gets the ADE configuration parameters.Gets the map of API authorization handlers (with names as keys).Returns an instance of the configured authorization handler.Returns the settings of the memory monitor.Returns the default users.Returns the flexCacheConfiguration.Returns the memory monitor configuration.Gets the credentials resolver.Gets the configured credentials resolver class name (null if no class is explicity configured).Returns the defaultContentEncoding.Gets the detail page handler.Returns the name of the DTD file for this XML configuration, e.g.Returns the configured OpenCms event manager instance.int
Returns the maximum number of versions that are kept per resource in the VFS version history.int
Returns the maximum number of versions that are kept in the VFS version history for deleted resources.Returns the HTTP authentication settings.Gets the LetsEncrypt configuration.Returns the configured locale manager for multi language support.Returns the configured login manager.Returns the configured mail settings.Returns the project in which timestamps for the content notification are read.int
Returns the duration after which responsibles will be notified about out-dated content (in days).Returns the configured password handler.Returns the permission Handler class name.Returns the configured publish list remove mode, or a default value if there is no configured value or an erroneous configured value.Returns the configured publish list remove mode as a string, or null if no publish list remove mode has been configured.Returns the configured publish manager.Returns the list of instantiated request handler classes.Returns the list of instantiated resource init handler classes.Returns the runtime info factory instance.Returns the runtime Properties.Returns an instance of the configured session storage provider.Returns the shell server options.Returns the configured subscription manager.int
Returns temporary file project id.Gets the map of text encryptions.Gets the two-factor authentication configuration.Gets the user data request manager.getUserSessionMode
(boolean useDefault) Gets the user session mode.Returns an instance of the configured validation handler.Gets the configured workflow manager instance.void
Will be called when configuration of this object is finished.protected void
Initializes member variables.boolean
Returns if the VFS version history is enabled.boolean
Returns true if detail contents are restricted to detail pages from the same site.void
setAdeCacheSettings
(CmsADECacheSettings settings) Sets the cache settings for ADE.void
setAdeConfiguration
(String className) Sets the ADE configuration class name.void
setAuthorizationHandler
(String authorizationHandlerClass) Sets the authorization handler.void
setCacheSettings
(CmsCacheSettings settings) Sets the settings of the memory monitor.void
setCmsDefaultUsers
(String userAdmin, String userGuest, String userExport, String userDeletedResource, String groupAdministrators, String groupUsers, String groupGuests) Sets the CmsDefaultUsers.void
setCmsFlexCacheConfiguration
(CmsFlexCacheConfiguration flexCacheConfiguration) Sets the flexCacheConfiguration.void
setCmsMemoryMonitorConfiguration
(CmsMemoryMonitorConfiguration cmsMemoryMonitorConfiguration) Sets the cmsMemoryMonitorConfiguration.void
setCredentialsResolver
(String className) Sets the credentials resolver class.void
setDefaultContentEncoding
(String defaultContentEncoding) Sets the defaultContentEncoding.void
Sets the detail page handler.void
setHistorySettings
(String historyEnabled, String historyVersions, String historyVersionsAfterDeletion) VFS version history settings are set here.void
setHttpAuthenticationSettings
(CmsHttpAuthenticationSettings httpAuthenticationSettings) Sets the HTTP authentication settings.void
setLetsEncryptConfig
(CmsLetsEncryptConfiguration letsEncryptConfig) Sets the LetsEncrypt configuration.void
setLocaleManager
(CmsLocaleManager localeManager) Sets the locale manager for multi language support.void
setLoginManager
(String disableMinutesStr, String maxBadAttemptsStr, String enableSecurityStr, String tokenLifetime, String maxInactive, String passwordChangeInterval, String userDataCheckInterval, String requireOrgUnitStr, String logoutUri) Sets the configured login manager.void
setMailSettings
(CmsMailSettings mailSettings) Sets the mail settings.void
setNotificationProject
(String notificationProject) Sets the project in which timestamps for the content notification are read.void
setNotificationTime
(String notificationTime) Sets the duration after which responsibles will be notified about out-dated content (in days).void
setPasswordHandler
(I_CmsPasswordHandler passwordHandler) Sets the password handler class.void
setPermissionHandler
(String permissionHandler) Sets the permission Handler class name.void
setPreventResponseFlush
(String configValue) Sets the servlet container specific setting.void
setPublishListRemoveMode
(String removeMode) Sets the publish list remove mode.void
setPublishManager
(CmsPublishManager publishManager) Sets the publish manager.void
setReleaseTagsAfterEnd
(String configValue) Sets the servlet container specific setting.void
setRequestErrorPageAttribute
(String configValue) Sets the servlet container specific setting.void
setRestrictDetailContents
(String restrictDetailContents) Sets the 'restrict detail contents' option.void
setRuntimeInfoFactory
(String className) Sets the runtime info factory.void
setServletContainerSettingsMode
(String configValue) Sets the servlet container settings configuration mode.void
setSessionStorageProvider
(String sessionStorageProviderClass) Sets the session storage provider.void
setShellServerOptions
(String enabled, String portStr) Sets the shell server options from the confriguration.void
setSubscriptionManager
(CmsSubscriptionManager subscriptionManager) Sets the subscription manager.void
setTempFileProjectId
(String tempFileProjectId) Sets the temporary file project id.void
Sets the user data request manager.void
setUserSessionMode
(String userSessionMode) Sets the user session mode.void
setUseSaxImplSystemProperties
(String enabled) Sets if the SAX parser implementation classes should be stored in system properties to improve the unmarshalling performance.void
setValidationHandler
(String validationHandlerClass) Sets the validation handler.void
setWorkflowManager
(I_CmsWorkflowManager workflowManager) Sets the configured workflow manager instance.boolean
Returns whether the SAX parser implementation classes should be stored in system properties to improve the unmarshalling performance.Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration
getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileName
-
Field Details
-
A_DELETED
The attribute name for the deleted node.- See Also:
-
A_ERROR
The "error" attribute.- See Also:
-
A_ERROR_PAGE
The "errorPage" attribute.- See Also:
-
A_ID
The "id" attribute.- See Also:
-
A_EXCLUSIVE
The "exclusive" attribute.- See Also:
-
A_MAILFROM
The "mailfrom" attribute.- See Also:
-
A_LOCALIZATION_MODE
The attribute name for the localization mode.- See Also:
-
A_MAXVISITED
The "maxvisited" attribute.- See Also:
-
A_OFFLINE
The "offline" attribute.- See Also:
-
A_ONLINE
The "online" attribute.- See Also:
-
A_POOLNAME
The "poolname" attribute.- See Also:
-
A_SECURITY
The "security" attribute.- See Also:
-
CONFIGURATION_DTD_NAME
The name of the DTD for this configuration.- See Also:
-
DEFAULT_USER_SESSION_MODE
The default user session mode. -
DEFAULT_XML_FILE_NAME
The name of the default XML file for this configuration.- See Also:
-
N_ADE
The ade node name.- See Also:
-
N_ADE_CACHE
The ade-cache node name.- See Also:
-
N_API_AUTHORIZATION
Node name for a single API authorization handler.- See Also:
-
N_API_AUTHORIZATIONS
Node name for the group of API authorization handlers.- See Also:
-
N_AUTHORIZATIONHANDLER
The node name for the authorization handler.- See Also:
-
N_AVGCACHEBYTES
The node name for the avgcachebytes node.- See Also:
-
N_BROWSER_BASED
The node name for the browser-based node.- See Also:
-
N_CACHE_ENABLED
The node name for the cache-enabled node.- See Also:
-
N_CACHE_OFFLINE
The node name for the cache-offline node.- See Also:
-
N_CLASS
The node name for a job class.- See Also:
-
N_CONFIGURATION
The configuration node name.- See Also:
-
N_CONTAINERPAGES
The containerpages node name.- See Also:
-
N_CONTENT_NOTIFICATION
The duration after which responsible resource owners will be notified about out-dated content.- See Also:
-
N_DEFAULT_CONTENT_ENCODING
The node name for the defaultcontentencoding node.- See Also:
-
N_DEFAULTUSERS
The node name for the defaultusers expression.- See Also:
-
N_DETAIL_PAGE_HANDLER
The node name for the detail page handler.- See Also:
-
N_DEVICESELECTOR
The node name for the device selector node.- See Also:
-
N_DIGESTTYPE
The node name for the digest type.- See Also:
-
N_DISABLEMINUTES
The node name for the login account lock minutes.- See Also:
-
N_DOCUMENTS
The node name for the sitemap cache for documents.- See Also:
-
N_EMAIL_INTERVAL
The node name for the email-interval node.- See Also:
-
N_EMAIL_RECEIVER
The node name for the email-receiver node.- See Also:
-
N_EMAIL_SENDER
The node name for the email-sender node.- See Also:
-
N_ENABLESCURITY
The node name for the login security option enabled flag.- See Also:
-
N_ENCRYPTION
Node name for the encryption section.- See Also:
-
N_EVENTMANAGER
The node name for the request handler classes.- See Also:
-
N_EVENTS
The node name for the events node.- See Also:
-
N_FLEXCACHE
The node name for the flexcache node.- See Also:
-
N_FORM_BASED
The node name for the form-based node.- See Also:
-
N_GROUP_ADMINISTRATORS
The node name for the group-administrators node.- See Also:
-
N_GROUP_GUESTS
The node name for the group-guests node.- See Also:
-
N_GROUP_PROJECTMANAGERS
The node name for the group-projectmanagers node.- See Also:
-
N_GROUP_USERS
The node name for the group-users node.- See Also:
-
N_GROUPCONTAINERS
The groupcontainers node name.- See Also:
-
N_HISTORYSIZE
The node name for the publish "history-size" value.- See Also:
-
N_HTTP_AUTHENTICATION
The node name for the http-authentication node.- See Also:
-
N_I18N
The node name for the internationalization node.- See Also:
-
N_KEYGENERATOR
The name of the class to generate cache keys.- See Also:
-
N_LOCALE
The node name for individual locales.- See Also:
-
N_LOCALEHANDLER
The node name for the locale handler.- See Also:
-
N_LOCALESCONFIGURED
The node name for the configured locales.- See Also:
-
N_LOCALESDEFAULT
The node name for the default locale(s).- See Also:
-
N_LOG_INTERVAL
The node name for the log-interval node.- See Also:
-
N_LOGINMANAGER
The node name for the login manager.- See Also:
-
N_LOGOUT_URI
Node name for the logout URI.- See Also:
-
N_MAIL
The node name for the mail configuration.- See Also:
-
N_MAILFROM
The node name for the "mail from" node.- See Also:
-
N_MAILHOST
The node name for the "mail host" node.- See Also:
-
N_MAXBADATTEMPTS
The node name for the login manager bad attempt count.- See Also:
-
N_MAXCACHEBYTES
The node name for the maxcachebytes node.- See Also:
-
N_MAXENTRYBYTES
The node name for the maxentrybytes node.- See Also:
-
N_MAXKEYS
The node name for the maxkeys node.- See Also:
-
N_MAXUSAGE_PERCENT
The node name for the maxusagepercent node.- See Also:
-
N_MEMORYMONITOR
The node name for the memorymonitor node.- See Also:
-
N_NOTIFICATION_PROJECT
The duration after which responsibles will be notified about out-dated content.- See Also:
-
N_NOTIFICATION_TIME
The duration after which responsibles will be notified about out-dated content.- See Also:
-
N_PARAMETERS
The node name for the parameters.- See Also:
-
N_PASSWORD_CHANGE_INTERVAL
Node name for the password change interval.- See Also:
-
N_PASSWORDENCODING
The node name for the password encoding.- See Also:
-
N_PASSWORDHANDLER
The node name for the password handler.- See Also:
-
N_PERMISSIONHANDLER
The node name for the permission handler.- See Also:
-
N_PREVENTRESPONSEFLUSH
The node name for the prevent-response-flush node.- See Also:
-
N_PUBLISH_LIST_REMOVE_MODE
The node name for the publish list remove mode.- See Also:
-
N_PUBLISHMANAGER
The node name for the "publishhistory" section.- See Also:
-
N_QUEUEPERSISTANCE
The node name for the "publishhistory" section.- See Also:
-
N_QUEUESHUTDOWNTIME
The node name for the "publishhistory" section.- See Also:
-
N_RECEIVER
The node name for the memory email receiver.- See Also:
-
N_RELEASETAGSAFTEREND
The node name for the release-tags-after-end node.- See Also:
-
N_REQUESTERRORPAGEATTRIBUTE
The node name for the request-error-page-attribute node.- See Also:
-
N_REQUESTHANDLER
The node name for the request handler classes.- See Also:
-
N_REQUESTHANDLERS
The node name for the request handlers.- See Also:
-
N_RESOURCEINIT
The node name for the resource init classes.- See Also:
-
N_RESOURCEINITHANDLER
The node name for the resource init classes.- See Also:
-
N_RESTRICT_DETAIL_CONTENTS
Node name for the restrict-detail-contents option.- See Also:
-
N_RESULTCACHE
the result cache node.- See Also:
-
N_RUNTIMECLASSES
The node name for the runtime info.- See Also:
-
N_RUNTIMEINFO
The node name for the runtime info factory.- See Also:
-
N_RUNTIMEPROPERTIES
The node name for the runtime properties node.- See Also:
-
N_SAX_IMPL_SYSTEM_PROPERTIES
The node name for the sax-impl-system-properties node.- See Also:
-
N_SERVLETCONTAINERSETTINGS
The node name for the servlet container settings.- See Also:
-
N_SESSION_STORAGEPROVIDER
The node name for the session-storageprovider node.- See Also:
-
N_SITEMAP
The sitemap node name.- See Also:
-
N_SITEMAP_CACHE
The sitemap-cache node name.- See Also:
-
N_SIZE_ACLS
The size of the memory monitor's cache for ACLS.- See Also:
-
N_SIZE_CONTAINERPAGE_OFFLINE
The size of the memory monitor's cache for offline container pages.- See Also:
-
N_SIZE_CONTAINERPAGE_ONLINE
The size of the memory monitor's cache for online container pages.- See Also:
-
N_SIZE_GROUPS
The size of the memory monitor's cache for groups.- See Also:
-
N_SIZE_ORGUNITS
The size of the memory monitor's cache for organizational units.- See Also:
-
N_SIZE_PERMISSIONS
The size of the memory monitor's cache for permission checks.- See Also:
-
N_SIZE_PROJECTRESOURCES
The size of the memory monitor's cache for project resources.- See Also:
-
N_SIZE_PROJECTS
The size of the memory monitor's cache for projects.- See Also:
-
N_SIZE_PROPERTIES
The size of the memory monitor's cache for properties.- See Also:
-
N_SIZE_PROPERTYLISTS
The size of the memory monitor's cache for property lists.- See Also:
-
N_SIZE_RESOURCELISTS
The size of the memory monitor's cache for lists of resources.- See Also:
-
N_SIZE_RESOURCES
The size of the memory monitor's cache for resources.- See Also:
-
N_SIZE_ROLES
The size of the memory monitor's cache for roles.- See Also:
-
N_SIZE_USERGROUPS
The size of the memory monitor's cache for user/group relations.- See Also:
-
N_SIZE_USERS
The size of the memory monitor's cache for users.- See Also:
-
N_SUBSCRIPTIONMANAGER
The subscriptionmanager node name.- See Also:
-
N_SYSTEM
The main system configuration node name.- See Also:
-
N_TEXT_ENCRYPTION
Node name for declaring a single text encryption.- See Also:
-
N_TIMEZONE
The node name for the time zone configuration.- See Also:
-
N_TOKEN_LIFETIME
Node name for the authorization token lifetime.- See Also:
-
N_USER_ADMIN
The node name for the user-admin node.- See Also:
-
N_USER_DATA_CHECK_INTERVAL
Node name for the user data check interval.- See Also:
-
N_USER_DELETEDRESOURCE
The node name for the user-deletedresource node.- See Also:
-
N_USER_EXPORT
The node name for the user-export node.- See Also:
-
N_USER_GUEST
The node name for the user-guest node.- See Also:
-
N_VALIDATIONHANDLER
The node name for the validation handler.- See Also:
-
N_VERSIONHISTORY
The node name for the version history.- See Also:
-
N_WARNING_INTERVAL
The node name for the warning-interval node.- See Also:
-
N_WEBSERVERSCRIPTING
The node name which indicates if apache should be configurable in sitemanager.- See Also:
-
N_WEBSERVERSCRIPTING_CONFIGTEMPLATE
- See Also:
-
N_WEBSERVERSCRIPTING_FILENAMEPREFIX
- See Also:
-
N_WEBSERVERSCRIPTING_LOGGINGDIR
- See Also:
-
N_WEBSERVERSCRIPTING_SECURETEMPLATE
- See Also:
-
N_WEBSERVERSCRIPTING_TARGETPATH
- See Also:
-
N_WEBSERVERSCRIPTING_WEBSERVERSCRIPT
- See Also:
-
N_WORKFLOW
The node name for the workflow configuration.- See Also:
-
-
Constructor Details
-
CmsSystemConfiguration
public CmsSystemConfiguration()
-
-
Method Details
-
addAdeParameter
Adds an ADE configuration parameter.- Parameters:
name
- the parameter namevalue
- the parameter value
-
addAuthorizationHandlerParam
Adds a parameter for the authorization handler.- Parameters:
name
- the parameter namevalue
- the parameter value
-
addConfigurationParameter
Description copied from interface:I_CmsConfigurationParameterHandler
Adds a configuration parameter to this parameter configurable class instance.- Specified by:
addConfigurationParameter
in interfaceI_CmsConfigurationParameterHandler
- Overrides:
addConfigurationParameter
in classA_CmsXmlConfiguration
- Parameters:
paramName
- the name of the parameterparamValue
- the value for the parameter- See Also:
-
addEventManager
Adds the event manager class.- Parameters:
clazz
- the class name of event manager class to instantiate and add
-
addRequestHandler
Adds a new instance of a request handler class.- Parameters:
clazz
- the class name of the request handler to instantiate and add
-
addResourceInitHandler
public void addResourceInitHandler(String clazz, CmsParameterConfiguration params) throws CmsConfigurationException Adds a new instance of a resource init handler class.- Parameters:
clazz
- the class name of the resource init handler to instantiate and addparams
- the parameters set for the resource init handler (parameters need to be copied out, the object will be modified after use)- Throws:
CmsConfigurationException
-
addXmlDigesterRules
Description copied from interface:I_CmsXmlConfiguration
Digests 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_CmsXmlConfiguration
Generates 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:
-
getAdeCacheSettings
Returns the settings of the ADE cache.- Returns:
- the settings of the ADE cache
-
getAdeConfiguration
Returns the ade configuration class name.- Returns:
- the ade configuration class name
-
getAdeParameters
Gets the ADE configuration parameters.- Returns:
- the ADE configuration parameters
-
getApiAuthorizations
Gets the map of API authorization handlers (with names as keys).- Returns:
- the map of API authorization handlers
-
getAuthorizationHandler
Returns an instance of the configured authorization handler.- Returns:
- an instance of the configured authorization handler
-
getCacheSettings
Returns the settings of the memory monitor.- Returns:
- the settings of the memory monitor
-
getCmsDefaultUsers
Returns the default users.- Returns:
- the default users
-
getCmsFlexCacheConfiguration
Returns the flexCacheConfiguration.- Returns:
- the flexCacheConfiguration
-
getCmsMemoryMonitorConfiguration
Returns the memory monitor configuration.- Returns:
- the memory monitor configuration
-
getCredentialsResolver
Gets the credentials resolver.- Returns:
- the credentials resolver
-
getCredentialsResolverClass
Gets the configured credentials resolver class name (null if no class is explicity configured).- Returns:
- the name of the configured credentials resolver class
-
getDefaultContentEncoding
Returns the defaultContentEncoding.- Returns:
- the defaultContentEncoding
-
getDetailPageHandler
Gets the detail page handler.- Returns:
- the detail page handler
-
getDtdFilename
Description copied from interface:I_CmsXmlConfiguration
Returns 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:
-
getEventManager
Returns the configured OpenCms event manager instance.- Returns:
- the configured OpenCms event manager instance
-
getHistoryVersions
Returns the maximum number of versions that are kept per resource in the VFS version history.If the version history is disabled, this setting has no effect.
- Returns:
- the maximum number of versions that are kept per resource
- See Also:
-
getHistoryVersionsAfterDeletion
Returns the maximum number of versions that are kept in the VFS version history for deleted resources.If the version history is disabled, this setting has no effect.
- Returns:
- the maximum number of versions that are kept for deleted resources
- See Also:
-
getHttpAuthenticationSettings
Returns the HTTP authentication settings.- Returns:
- the HTTP authentication settings
-
getLetsEncryptConfig
Gets the LetsEncrypt configuration.- Returns:
- the LetsEncrypt configuration
-
getLocaleManager
Returns the configured locale manager for multi language support.- Returns:
- the configured locale manager for multi language support
-
getLoginManager
Returns the configured login manager.- Returns:
- the configured login manager
-
getMailSettings
Returns the configured mail settings.- Returns:
- the configured mail settings
-
getNotificationProject
Returns the project in which timestamps for the content notification are read.- Returns:
- the project in which timestamps for the content notification are read
-
getNotificationTime
Returns the duration after which responsibles will be notified about out-dated content (in days).- Returns:
- the duration after which responsibles will be notified about out-dated content
-
getPasswordHandler
Returns the configured password handler.- Returns:
- the configured password handler
-
getPermissionHandler
Returns the permission Handler class name.- Returns:
- the permission Handler class name
-
getPublishListRemoveMode
Returns the configured publish list remove mode, or a default value if there is no configured value or an erroneous configured value.- Returns:
- the publish list remove mode
-
getPublishListRemoveModeStr
Returns the configured publish list remove mode as a string, or null if no publish list remove mode has been configured.- Returns:
- the publish list remove mode string from the configuration
-
getPublishManager
Returns the configured publish manager.- Returns:
- the configured publish manager
-
getRequestHandlers
Returns the list of instantiated request handler classes.- Returns:
- the list of instantiated request handler classes
-
getResourceInitHandlers
Returns the list of instantiated resource init handler classes.- Returns:
- the list of instantiated resource init handler classes
-
getRuntimeInfoFactory
Returns the runtime info factory instance.- Returns:
- the runtime info factory instance
-
getRuntimeProperties
Returns the runtime Properties.- Returns:
- the runtime Properties
-
getSessionStorageProvider
Returns an instance of the configured session storage provider.- Returns:
- an instance of the configured session storage provider
-
getShellServerOptions
Returns the shell server options.- Returns:
- the shell server options
-
getSubscriptionManager
Returns the configured subscription manager.- Returns:
- the configured subscription manager
-
getTempFileProjectId
Returns temporary file project id.- Returns:
- temporary file project id
-
getTextEncryptions
Gets the map of text encryptions.- Returns:
- the map of text encryptions
-
getTwoFactorAuthenticationConfig
Gets the two-factor authentication configuration.- Returns:
- the two-factor auth configuration
-
getUserDataRequestManager
Gets the user data request manager.- Returns:
- the user data request manager
-
getUserSessionMode
Gets the user session mode.- Parameters:
useDefault
- if true, and no user session mode was configured, this will return the default value- Returns:
- the user session mode
-
getValidationHandler
Returns an instance of the configured validation handler.- Returns:
- an instance of the configured validation handler
-
getWorkflowManager
Gets the configured workflow manager instance.- Returns:
- the configured workflow manager instance.
-
initializeFinished
Will be called when configuration of this object is finished. -
isHistoryEnabled
Returns if the VFS version history is enabled.- Returns:
- if the VFS version history is enabled
-
isRestrictDetailContents
Returns true if detail contents are restricted to detail pages from the same site.- Returns:
- true if detail contents are restricted to detail pages from the same site
-
setAdeCacheSettings
Sets the cache settings for ADE.- Parameters:
settings
- the cache settings for ADE
-
setAdeConfiguration
Sets the ADE configuration class name.- Parameters:
className
- the class name to set
-
setAuthorizationHandler
Sets the authorization handler.- Parameters:
authorizationHandlerClass
- the authorization handler class to set.
-
setCacheSettings
Sets the settings of the memory monitor.- Parameters:
settings
- the settings of the memory monitor
-
setCmsDefaultUsers
public void setCmsDefaultUsers(String userAdmin, String userGuest, String userExport, String userDeletedResource, String groupAdministrators, String groupUsers, String groupGuests) Sets the CmsDefaultUsers.- Parameters:
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 benull
groupAdministrators
- the name of the administrators groupgroupUsers
- the name of the users groupgroupGuests
- the name of the guests group
-
setCmsFlexCacheConfiguration
Sets the flexCacheConfiguration.- Parameters:
flexCacheConfiguration
- the flexCacheConfiguration to set
-
setCmsMemoryMonitorConfiguration
public void setCmsMemoryMonitorConfiguration(CmsMemoryMonitorConfiguration cmsMemoryMonitorConfiguration) Sets the cmsMemoryMonitorConfiguration.- Parameters:
cmsMemoryMonitorConfiguration
- the cmsMemoryMonitorConfiguration to set
-
setCredentialsResolver
Sets the credentials resolver class.- Parameters:
className
- the name of the credentials resolver class- Throws:
Exception
- if something goes wrong
-
setDefaultContentEncoding
Sets the defaultContentEncoding.- Parameters:
defaultContentEncoding
- the defaultContentEncoding to set
-
setDetailPageHandler
Sets the detail page handler.- Parameters:
handler
- the detail page handler
-
setHistorySettings
public void setHistorySettings(String historyEnabled, String historyVersions, String historyVersionsAfterDeletion) VFS version history settings are set here.- Parameters:
historyEnabled
- if true the history is enabledhistoryVersions
- the maximum number of versions that are kept per VFS resourcehistoryVersionsAfterDeletion
- the maximum number of versions for deleted resources
-
setHttpAuthenticationSettings
Sets the HTTP authentication settings.- Parameters:
httpAuthenticationSettings
- the HTTP authentication settings to set
-
setLetsEncryptConfig
Sets the LetsEncrypt configuration.- Parameters:
letsEncryptConfig
- the LetsEncrypt configuration
-
setLocaleManager
Sets the locale manager for multi language support.- Parameters:
localeManager
- the locale manager to set
-
setLoginManager
public void setLoginManager(String disableMinutesStr, String maxBadAttemptsStr, String enableSecurityStr, String tokenLifetime, String maxInactive, String passwordChangeInterval, String userDataCheckInterval, String requireOrgUnitStr, String logoutUri) Sets the configured login manager.- Parameters:
maxBadAttemptsStr
- the number of allowed bad login attemptsdisableMinutesStr
- the time an account gets locked if to many bad logins are attemptedenableSecurityStr
- flag to determine if the security option should be enabled on the login dialogtokenLifetime
- the token lifetimemaxInactive
- maximum time since last login before CmsLockInactiveAccountsJob locks an accountpasswordChangeInterval
- the password change intervaluserDataCheckInterval
- the user data check intervallogoutUri
- the alternative logout handler URI (may be null)
-
setMailSettings
Sets the mail settings.- Parameters:
mailSettings
- the mail settings to set.
-
setNotificationProject
Sets the project in which timestamps for the content notification are read.- Parameters:
notificationProject
- the project in which timestamps for the content notification are read
-
setNotificationTime
Sets the duration after which responsibles will be notified about out-dated content (in days).- Parameters:
notificationTime
- the duration after which responsibles will be notified about out-dated content
-
setPasswordHandler
Sets the password handler class.- Parameters:
passwordHandler
- the password handler to set
-
setPermissionHandler
Sets the permission Handler class name.- Parameters:
permissionHandler
- the class name to set
-
setPreventResponseFlush
Sets the servlet container specific setting.- Parameters:
configValue
- the configuration value
-
setPublishListRemoveMode
Sets the publish list remove mode.- Parameters:
removeMode
- the publish list remove mode
-
setPublishManager
Sets the publish manager.- Parameters:
publishManager
- the publish manager
-
setReleaseTagsAfterEnd
Sets the servlet container specific setting.- Parameters:
configValue
- the configuration value
-
setRequestErrorPageAttribute
Sets the servlet container specific setting.- Parameters:
configValue
- the configuration value
-
setRestrictDetailContents
Sets the 'restrict detail contents' option.- Parameters:
restrictDetailContents
- the value of the option
-
setRuntimeInfoFactory
Sets the runtime info factory.- Parameters:
className
- the class name of the configured runtime info factory
-
setServletContainerSettingsMode
Sets the servlet container settings configuration mode.- Parameters:
configValue
- the value to set
-
setSessionStorageProvider
Sets the session storage provider.- Parameters:
sessionStorageProviderClass
- the session storage provider class to set.
-
setShellServerOptions
Sets the shell server options from the confriguration.- Parameters:
enabled
- the value of the 'enabled' attributeportStr
- the value of the 'port' attribute
-
setSubscriptionManager
Sets the subscription manager.- Parameters:
subscriptionManager
- the subscription manager
-
setTempFileProjectId
Sets the temporary file project id.- Parameters:
tempFileProjectId
- the temporary file project id to set
-
setUserDataRequestManager
Sets the user data request manager.- Parameters:
manager
- the user data request manager
-
setUserSessionMode
Sets the user session mode.- Parameters:
userSessionMode
- the user session mode
-
setUseSaxImplSystemProperties
Sets if the SAX parser implementation classes should be stored in system properties to improve the unmarshalling performance.- Parameters:
enabled
-true
to store SAX parser implementation classes in system properties
-
setValidationHandler
Sets the validation handler.- Parameters:
validationHandlerClass
- the validation handler class to set.
-
setWorkflowManager
Sets the configured workflow manager instance.- Parameters:
workflowManager
- the configured workflow manager
-
useSaxImplSystemProperties
Returns whether the SAX parser implementation classes should be stored in system properties to improve the unmarshalling performance.- Returns:
true
if the SAX parser implementation classes should be stored in system properties
-
addApiAuthorization
Adds a new authorization configuration.- Parameters:
config
- the authorization configuration to add
-
initMembers
Description copied from class:A_CmsXmlConfiguration
Initializes member variables.- Specified by:
initMembers
in classA_CmsXmlConfiguration
- See Also:
-