|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.xml.content.CmsDefaultXmlContentHandler
org.opencms.xml.containerpage.CmsXmlDynamicFunctionHandler
public class CmsXmlDynamicFunctionHandler
This is the XML content handler class for the "dynamic functionality" resource type.
This resource type needs special handling of formatters and element settings: They are read from each content of this type rather than from the XSD.
Field Summary | |
---|---|
static String |
FORMATTER_PATH
The path of the formatter which calls the JSP. |
static String |
N_CONTAINER_SETTINGS
The node name for the formatter settings. |
static String |
TYPE_FUNCTION
The resource type for dynamic functions. |
Fields inherited from interface org.opencms.xml.content.I_CmsXmlContentHandler |
---|
ATTRIBUTES, MAPTO_ATTRIBUTE, MAPTO_PERMISSION, MAPTO_PROPERTY, MAPTO_PROPERTY_INDIVIDUAL, MAPTO_PROPERTY_LIST, MAPTO_PROPERTY_LIST_INDIVIDUAL, MAPTO_PROPERTY_LIST_SHARED, MAPTO_PROPERTY_SHARED, MAPTO_URLNAME |
Constructor Summary | |
---|---|
CmsXmlDynamicFunctionHandler()
Default constructor. |
Method Summary | |
---|---|
CmsFormatterConfiguration |
getFormatterConfiguration(CmsObject cms,
CmsResource resource)
Returns the container page element formatter configuration for a given resource. |
Map<String,CmsXmlContentProperty> |
getSettings(CmsObject cms,
CmsResource res)
Returns the element settings defined for the container page formatters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FORMATTER_PATH
public static final String N_CONTAINER_SETTINGS
public static final String TYPE_FUNCTION
Constructor Detail |
---|
public CmsXmlDynamicFunctionHandler()
Method Detail |
---|
public CmsFormatterConfiguration getFormatterConfiguration(CmsObject cms, CmsResource resource)
I_CmsXmlContentHandler
getFormatterConfiguration
in interface I_CmsXmlContentHandler
getFormatterConfiguration
in class CmsDefaultXmlContentHandler
cms
- the current users OpenCms context, used for selecting the right projectresource
- the resource for which the formatter configuration should be retrieved
CmsDefaultXmlContentHandler.getFormatterConfiguration(org.opencms.file.CmsObject, org.opencms.file.CmsResource)
public Map<String,CmsXmlContentProperty> getSettings(CmsObject cms, CmsResource res)
I_CmsXmlContentHandler
getSettings
in interface I_CmsXmlContentHandler
getSettings
in class CmsDefaultXmlContentHandler
cms
- the current CMS contextres
- the resource for which to get the setting definitions
CmsDefaultXmlContentHandler.getSettings(org.opencms.file.CmsObject, org.opencms.file.CmsResource)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |