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
FieldsModifier and TypeFieldDescriptionstatic final StringThe adjust-links-folder attribute.static final StringThe widget configuration attribute.static final StringThe widget attribute.static final StringThe extension attribute name.static final StringThe source attribute name.static final StringThe target attribute name.static final StringThe name of the DTD for this configuration.static final StringThe name of the default XML file for this configuration.static final StringThe collector node name.static final StringThe collectors node name.static final StringThe copy-resource node name.static final StringThe copy-resources node name.static final StringThe defaultfile node name.static final StringThe defaultfiles node name.static final StringFile translations node name.static final StringFolder translations node name.static final StringThe html-converter node name.static final StringThe html-converters node name.static final StringThe node name of an individual resource loader.static final StringThe mapping node name.static final StringThe mappings node name.static final StringThe mimetype node name.static final StringThe mimetypes node name.static final StringThe online-folders node name.static final Stringstatic final StringThe properties node name.static final StringThe relation type node name.static final StringThe relation types node name.static final StringThe resource loaders node name.static final StringThe main resource node name.static final StringThe resource types node name.static final StringThe schematype node name.static final StringThe schematypes node name.static final StringIndividual translation node name.static final StringThe translations master node name.static final StringThe node name of an individual resource type.static final StringThe node name for the version history.static final StringThe main vfs configuration node name.static final StringThe widget node name.static final StringThe widget alias node name.static final StringThe widgets node name.static final StringThe xmlcontent node name.static final StringThe xmlcontents node name.static final StringXSD translations node name.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 TypeMethodDescriptionvoidaddDefaultFile(String defaultFile) Adds a directory default file.voidaddFileTranslation(String translation) Adds one file translation rule.voidaddFolderTranslation(String translation) Adds one folder translation rule.static voidaddResourceTypeXmlRules(org.apache.commons.digester3.Digester digester) Adds the resource type rules to the given digester.voidaddXmlDigesterRules(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.voidaddXsdTranslation(String translation) Adds one XSD translation rule.static voidgenerateResourceTypeXml(org.dom4j.Element startNode, List<I_CmsResourceType> resourceTypes, boolean module) Creates the xml output for resourcetype nodes.org.dom4j.ElementgenerateXml(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.Gets the configured online folder options.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.voidWill be called when configuration of this object is finished.protected voidInitializes member variables.voidsetFileTranslationEnabled(String value) Enables or disables the file translation rules.voidEnables or disables the folder translation rules.voidsetResourceManager(CmsResourceManager manager) Sets the generated resource manager.voidSets the generated XML content type manager.voidsetXsdTranslationEnabled(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_PATH
- 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_ONLINE_FOLDERS
The online-folders 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_CmsXmlConfigurationDigests 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_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:
-
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_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:
-
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
-
getOnlineFolderOptions
Gets the configured online folder options.- Returns:
- the online folder options
-
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_CmsXmlConfigurationInitializes member variables.- Specified by:
initMembersin classA_CmsXmlConfiguration- See Also:
-