|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.ade.configuration.CmsConfigurationReader
public class CmsConfigurationReader
A class to parse ADE sitemap or module configuration files and create configuration objects from them.
Field Summary | |
---|---|
static java.util.Locale |
DEFAULT_LOCALE
The default locale for configuration objects. |
static java.lang.String |
N_FOLDER_NAME
The Name node name. |
static java.lang.String |
N_FOLDER_PATH
The Path node name. |
static java.lang.String |
N_RESOURCE_TYPE
The Type node name. |
Constructor Summary | |
---|---|
CmsConfigurationReader(CmsObject cms)
Creates a new configuration reader. |
Method Summary | |
---|---|
protected java.lang.String |
getString(I_CmsXmlContentValueLocation location)
Gets the string value of an XML content location. |
protected CmsADEConfigData |
mergeConfigurations(java.util.List<CmsADEConfigData> configurations)
Merges a list of multiple configuration objects into a single configuration object. |
CmsADEConfigData |
parseConfiguration(java.lang.String basePath,
CmsXmlContent content)
Parses a configuration XML content and creates a configuration object from it. |
protected void |
parseDetailPage(I_CmsXmlContentLocation node)
Parses the detail pages from an XML content node. |
CmsFolderOrName |
parseFolderOrName(java.lang.String basePath,
I_CmsXmlContentLocation location)
Parses a folder which may either be given as a path or as a folder name. |
CmsFormatterBean |
parseFormatter(java.lang.String typeName,
I_CmsXmlContentLocation node)
Parses a formatter bean. |
void |
parseModelPage(I_CmsXmlContentLocation node)
Parses model page data from the XML content. |
void |
parseResourceTypeConfig(java.lang.String basePath,
I_CmsXmlContentLocation node)
Parses a resource type configuration element from the XML content. |
CmsADEConfigData |
parseSitemapConfiguration(java.lang.String basePath,
CmsResource configRes)
Parses the sitemap configuration given the configuration file and base path. |
CmsADEConfigData |
readModuleConfigurations()
Reads the configurations of all modules and combines them into a single configuration object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String N_FOLDER_NAME
public static final java.lang.String N_FOLDER_PATH
public static final java.lang.String N_RESOURCE_TYPE
public static final java.util.Locale DEFAULT_LOCALE
Constructor Detail |
---|
public CmsConfigurationReader(CmsObject cms)
cms
- the CMS context which should be used to read the configuration data.Method Detail |
---|
public CmsADEConfigData parseConfiguration(java.lang.String basePath, CmsXmlContent content) throws CmsException
basePath
- the base pathcontent
- the XML content
CmsException
- if something goes wrongpublic CmsFolderOrName parseFolderOrName(java.lang.String basePath, I_CmsXmlContentLocation location) throws CmsException
basePath
- the base path for the configurationlocation
- the XML content node from which to parse the folder
CmsException
- if something goes wrongpublic CmsFormatterBean parseFormatter(java.lang.String typeName, I_CmsXmlContentLocation node)
typeName
- the type name for which the formatter is being parsednode
- the node from which to parse the formatter data
public void parseModelPage(I_CmsXmlContentLocation node) throws CmsException
node
- the XML content node
CmsException
- if something goes wrongpublic void parseResourceTypeConfig(java.lang.String basePath, I_CmsXmlContentLocation node) throws CmsException
basePath
- the base path of the configurationnode
- the XML configuration node
CmsException
- if something goes wrongpublic CmsADEConfigData parseSitemapConfiguration(java.lang.String basePath, CmsResource configRes) throws CmsException
basePath
- the base pathconfigRes
- the configuration file resource
CmsException
- if something goes wrongpublic CmsADEConfigData readModuleConfigurations()
protected java.lang.String getString(I_CmsXmlContentValueLocation location)
location
- an XML content location
protected CmsADEConfigData mergeConfigurations(java.util.List<CmsADEConfigData> configurations)
configurations
- the list of configuration objects.
protected void parseDetailPage(I_CmsXmlContentLocation node) throws CmsException
node
- the XML content node
CmsException
- if something goes wrong
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |