Package org.opencms.configuration
Class CmsVfsConfiguration
java.lang.Object
org.opencms.configuration.A_CmsXmlConfiguration
org.opencms.configuration.CmsVfsConfiguration
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsXmlConfiguration
VFS master configuration class.
- Since:
- 6.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The adjust-links-folder attribute.static final String
The widget configuration attribute.static final String
The widget attribute.static final String
The extension attribute name.static final String
The source attribute name.static final String
The target attribute name.static final String
The name of the DTD for this configuration.static final String
The name of the default XML file for this configuration.static final String
The collector node name.static final String
The collectors node name.static final String
The copy-resource node name.static final String
The copy-resources node name.static final String
The defaultfile node name.static final String
The defaultfiles node name.static final String
File translations node name.static final String
Folder translations node name.static final String
The html-converter node name.static final String
The html-converters node name.static final String
The node name of an individual resource loader.static final String
The mapping node name.static final String
The mappings node name.static final String
The mimetype node name.static final String
The mimetypes node name.static final String
The properties node name.static final String
The relation type node name.static final String
The relation types node name.static final String
The resource loaders node name.static final String
The main resource node name.static final String
The resource types node name.static final String
The schematype node name.static final String
The schematypes node name.static final String
Individual translation node name.static final String
The translations master node name.static final String
The node name of an individual resource type.static final String
The node name for the version history.static final String
The main vfs configuration node name.static final String
The widget node name.static final String
The widget alias node name.static final String
The widgets node name.static final String
The xmlcontent node name.static final String
The xmlcontents node name.static final String
XSD translations node name.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultFile
(String defaultFile) Adds a directory default file.void
addFileTranslation
(String translation) Adds one file translation rule.void
addFolderTranslation
(String translation) Adds one folder translation rule.static void
addResourceTypeXmlRules
(org.apache.commons.digester3.Digester digester) Adds the resource type rules to the given digester.void
addXmlDigesterRules
(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.void
addXsdTranslation
(String translation) Adds one XSD translation rule.static void
generateResourceTypeXml
(org.dom4j.Element startNode, List<I_CmsResourceType> resourceTypes, boolean module) Creates the xml output for resourcetype nodes.org.dom4j.Element
generateXml
(org.dom4j.Element parent) Generates the XML element for this configurable class.Returns the (unmodifiable) list of configured directory default files.Returns the name of the DTD file for this XML configuration, e.g.Returns the file resource translator that has been initialized with the configured file translation rules.Returns the folder resource translator that has been initialized with the configured folder translation rules.Returns the initialized resource manager.Returns the configured XML content type manager.Returns the XSD translator that has been initialized with the configured XSD translation rules.void
Will be called when configuration of this object is finished.protected void
Initializes member variables.void
setFileTranslationEnabled
(String value) Enables or disables the file translation rules.void
Enables or disables the folder translation rules.void
setResourceManager
(CmsResourceManager manager) Sets the generated resource manager.void
Sets the generated XML content type manager.void
setXsdTranslationEnabled
(String value) Enables or disables the XSD translation rules.Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration
addConfigurationParameter, getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileName
-
Field Details
-
A_ADJUST_LINKS_FOLDER
The adjust-links-folder attribute.- See Also:
-
A_CONFIGURATION
The widget configuration attribute.- See Also:
-
A_DEFAULTWIDGET
The widget attribute.- See Also:
-
A_EXTENSION
The extension attribute name.- See Also:
-
A_SOURCE
The source attribute name.- See Also:
-
A_TARGET
The target attribute name.- 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:
-
N_COLLECTOR
The collector node name.- See Also:
-
N_COLLECTORS
The collectors node name.- See Also:
-
N_COPY_RESOURCE
The copy-resource node name.- See Also:
-
N_COPY_RESOURCES
The copy-resources node name.- See Also:
-
N_DEFAULTFILE
The defaultfile node name.- See Also:
-
N_DEFAULTFILES
The defaultfiles node name.- See Also:
-
N_FILETRANSLATIONS
File translations node name.- See Also:
-
N_FOLDERTRANSLATIONS
Folder translations node name.- See Also:
-
N_HTML_CONVERTER
The html-converter node name.- See Also:
-
N_HTML_CONVERTERS
The html-converters node name.- See Also:
-
N_LOADER
The node name of an individual resource loader.- See Also:
-
N_MAPPING
The mapping node name.- See Also:
-
N_MAPPINGS
The mappings node name.- See Also:
-
N_MIMETYPE
The mimetype node name.- See Also:
-
N_MIMETYPES
The mimetypes node name.- See Also:
-
N_PROPERTIES
The properties node name.- See Also:
-
N_RELATIONTYPE
The relation type node name.- See Also:
-
N_RELATIONTYPES
The relation types node name.- See Also:
-
N_RESOURCELOADERS
The resource loaders node name.- See Also:
-
N_RESOURCES
The main resource node name.- See Also:
-
N_RESOURCETYPES
The resource types node name.- See Also:
-
N_SCHEMATYPE
The schematype node name.- See Also:
-
N_SCHEMATYPES
The schematypes node name.- See Also:
-
N_TRANSLATION
Individual translation node name.- See Also:
-
N_TRANSLATIONS
The translations master node name.- See Also:
-
N_TYPE
The node name of an individual resource type.- See Also:
-
N_VERSIONHISTORY
The node name for the version history.- See Also:
-
N_VFS
The main vfs configuration node name.- See Also:
-
N_WIDGET
The widget node name.- See Also:
-
N_WIDGET_ALIAS
The widget alias node name.- See Also:
-
N_WIDGETS
The widgets node name.- See Also:
-
N_XMLCONTENT
The xmlcontent node name.- See Also:
-
N_XMLCONTENTS
The xmlcontents node name.- See Also:
-
N_XSDTRANSLATIONS
XSD translations node name.- See Also:
-
-
Constructor Details
-
CmsVfsConfiguration
public CmsVfsConfiguration()
-
-
Method Details
-
addResourceTypeXmlRules
Adds the resource type rules to the given digester.- Parameters:
digester
- the digester to add the rules to
-
generateResourceTypeXml
public static void generateResourceTypeXml(org.dom4j.Element startNode, List<I_CmsResourceType> resourceTypes, boolean module) Creates the xml output for resourcetype nodes.- Parameters:
startNode
- the startnode to add all rescource types toresourceTypes
- the list of resource typesmodule
- flag, signaling to add them module resource types or not
-
addDefaultFile
Adds a directory default file.- Parameters:
defaultFile
- the directory default file to add
-
addFileTranslation
Adds one file translation rule.- Parameters:
translation
- the file translation rule to add
-
addFolderTranslation
Adds one folder translation rule.- Parameters:
translation
- the folder translation rule to add
-
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:
-
addXsdTranslation
Adds one XSD translation rule.- Parameters:
translation
- the XSD translation rule to add
-
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:
-
getDefaultFiles
Returns the (unmodifiable) list of configured directory default files.- Returns:
- the (unmodifiable) list of configured directory default files
-
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:
-
getFileTranslator
Returns the file resource translator that has been initialized with the configured file translation rules.- Returns:
- the file resource translator
-
getFolderTranslator
Returns the folder resource translator that has been initialized with the configured folder translation rules.- Returns:
- the folder resource translator
-
getResourceManager
Returns the initialized resource manager.- Returns:
- the initialized resource manager
-
getXmlContentTypeManager
Returns the configured XML content type manager.- Returns:
- the configured XML content type manager
-
getXsdTranslator
Returns the XSD translator that has been initialized with the configured XSD translation rules.- Returns:
- the XSD translator
-
initializeFinished
Will be called when configuration of this object is finished. -
setFileTranslationEnabled
Enables or disables the file translation rules.- Parameters:
value
- if"true"
, file translation is enabled, otherwise it is disabled
-
setFolderTranslationEnabled
Enables or disables the folder translation rules.- Parameters:
value
- if"true"
, folder translation is enabled, otherwise it is disabled
-
setResourceManager
Sets the generated resource manager.- Parameters:
manager
- the resource manager to set
-
setXmlContentTypeManager
Sets the generated XML content type manager.- Parameters:
manager
- the generated XML content type manager to set
-
setXsdTranslationEnabled
Enables or disables the XSD translation rules.- Parameters:
value
- if"true"
, XSD translation is enabled, otherwise it is disabled
-
initMembers
Description copied from class:A_CmsXmlConfiguration
Initializes member variables.- Specified by:
initMembers
in classA_CmsXmlConfiguration
- See Also:
-