|
||||||||
| 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 Locale |
DEFAULT_LOCALE
The default locale for configuration objects. |
static String |
N_FOLDER_NAME
The Name node name. |
static String |
N_FOLDER_PATH
The Path node name. |
static String |
N_RESOURCE_TYPE
The Type node name. |
| Constructor Summary | |
|---|---|
CmsConfigurationReader(CmsObject cms)
Creates a new configuration reader. |
|
| Method Summary | |
|---|---|
protected boolean |
getBoolean(I_CmsXmlContentLocation parent,
String name)
Helper method to read a boolean value from the XML. |
List<CmsFunctionReference> |
getFunctionReferences()
Returns the list of function references. |
protected String |
getString(I_CmsXmlContentValueLocation location)
Gets the string value of an XML content location. |
protected CmsADEConfigData |
mergeConfigurations(List<CmsADEConfigData> configurations)
Merges a list of multiple configuration objects into a single configuration object. |
CmsADEConfigData |
parseConfiguration(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(String basePath,
I_CmsXmlContentLocation location)
Parses a folder which may either be given as a path or as a folder name. |
CmsFormatterBean |
parseFormatter(String typeName,
I_CmsXmlContentLocation node)
Parses a formatter bean. |
protected void |
parseFunctionReference(I_CmsXmlContentLocation node)
Parses a function reference node. |
void |
parseModelPage(I_CmsXmlContentLocation node)
Parses model page data from the XML content. |
void |
parseResourceTypeConfig(String basePath,
I_CmsXmlContentLocation node)
Parses a resource type configuration element from the XML content. |
CmsADEConfigData |
parseSitemapConfiguration(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 Locale DEFAULT_LOCALE
public static final String N_FOLDER_NAME
public static final String N_FOLDER_PATH
public static final String N_RESOURCE_TYPE
| Constructor Detail |
|---|
public CmsConfigurationReader(CmsObject cms)
cms - the CMS context which should be used to read the configuration data.| Method Detail |
|---|
public List<CmsFunctionReference> getFunctionReferences()
public CmsADEConfigData parseConfiguration(String basePath,
CmsXmlContent content)
throws CmsException
basePath - the base pathcontent - the XML content
CmsException - if something goes wrong
public CmsFolderOrName parseFolderOrName(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 wrong
public CmsFormatterBean parseFormatter(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 wrong
public void parseResourceTypeConfig(String basePath,
I_CmsXmlContentLocation node)
throws CmsException
basePath - the base path of the configurationnode - the XML configuration node
CmsException - if something goes wrong
public CmsADEConfigData parseSitemapConfiguration(String basePath,
CmsResource configRes)
throws CmsException
basePath - the base pathconfigRes - the configuration file resource
CmsException - if something goes wrongpublic CmsADEConfigData readModuleConfigurations()
protected boolean getBoolean(I_CmsXmlContentLocation parent,
String name)
If the element is not found in the XML, false is returned.
parent - the parent nodename - the name of the XML content value
protected String getString(I_CmsXmlContentValueLocation location)
location - an XML content location
protected CmsADEConfigData mergeConfigurations(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 wrongprotected void parseFunctionReference(I_CmsXmlContentLocation node)
node - the function reference node
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||