public class CmsTemplateMapperConfiguration extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
A_ENABLED
XML attribute name.
|
static java.lang.String |
A_NEW
XML attribute name.
|
static java.lang.String |
A_OLD
XML attribute name.
|
static CmsTemplateMapperConfiguration |
EMPTY_CONFIG
Empty configuratin.
|
static java.lang.String |
N_ELEMENT_GROUP_TYPE
XML element name.
|
static java.lang.String |
N_FORMATTER_CONFIG
XML element name.
|
static java.lang.String |
N_FORMATTER_JSP
XML element name.
|
static java.lang.String |
N_PATH
XML element name.
|
Constructor and Description |
---|
CmsTemplateMapperConfiguration()
Creates an empty mapper configuration which is not active for any path.
|
CmsTemplateMapperConfiguration(CmsObject cms,
org.dom4j.Document doc)
Parses a template mapper configuration from an XML document.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMappedElementGroupType(java.lang.String type)
Gets the mapped type for a given element group type, or null if there is no mapped type.
|
java.lang.String |
getMappedFormatterConfiguration(java.lang.String id)
Gets the mapped formatter configuration structure id string for another formatter configuration structure id string.
|
CmsUUID |
getMappedFormatterJspId(CmsUUID formatterId)
Gets the mapped formatter JSP structure id for another formatter JSP structure id.
|
boolean |
isEnabledForPath(java.lang.String rootPath)
Checks if the mapping is enabled for the given root path.
|
public static final java.lang.String A_ENABLED
public static final java.lang.String A_NEW
public static final java.lang.String A_OLD
public static final CmsTemplateMapperConfiguration EMPTY_CONFIG
public static final java.lang.String N_FORMATTER_CONFIG
public static final java.lang.String N_FORMATTER_JSP
public static final java.lang.String N_ELEMENT_GROUP_TYPE
public static final java.lang.String N_PATH
public CmsTemplateMapperConfiguration()
public CmsTemplateMapperConfiguration(CmsObject cms, org.dom4j.Document doc) throws CmsException
cms
- the current CMS contextdoc
- the XML document containing the configurationCmsException
- if something goes wrongpublic java.lang.String getMappedElementGroupType(java.lang.String type)
type
- the original element group typepublic java.lang.String getMappedFormatterConfiguration(java.lang.String id)
id
- the structure id of a formatter configuration as a stringpublic CmsUUID getMappedFormatterJspId(CmsUUID formatterId)
formatterId
- the input formatter JSP structure idpublic boolean isEnabledForPath(java.lang.String rootPath)
rootPath
- a VFS root path