Class AbstractDefaultPropertySection
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.properties.section.AbstractPropertySection
org.ametys.cms.properties.section.AbstractDefaultPropertySection
- All Implemented Interfaces:
PropertySection
,LogEnabled
,PluginAware
,Prioritizable
,Supporter<AmetysObject>
,Configurable
- Direct Known Subclasses:
AbstractContentReferencerSection
,AbstractWebContentReferencerSection
,ContentTagsSection
,ContentViewSection
,FormEntrySubmitSection
,PageDetailsSection
,PagePublicationSection
,PageReferencerSection
,PageTagsSection
,ProgramItemReferencerSection
,ResourceDublinCoreSection
,ResourceReferencerSection
Abstract default class to define a properties section.
It use a generic pipeline, the implementation has to define an XSL and the data sent to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
The default XSL if not defined in the configuration.buildData
(AmetysObject ametysObject) Build the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR
, it will be convert from JSON to XML.void
configure
(Configuration configuration) getDataURL
(AmetysObject ametysObject) Get the pipeline to call to handle and render the section.getParameters
(AmetysObject ametysObject) Get the parameters to add in the request attributes of the next pipeline.protected String
getXSLT()
Path to the XSL to render the section.Methods inherited from class org.ametys.cms.properties.section.AbstractPropertySection
getId, getPriority, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
AbstractDefaultPropertySection
public AbstractDefaultPropertySection()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classAbstractPropertySection
- Throws:
ConfigurationException
-
getParameters
Description copied from interface:PropertySection
Get the parameters to add in the request attributes of the next pipeline.- Parameters:
ametysObject
- The Ametys object- Returns:
- A
Map
of parameters
-
getDataURL
Description copied from interface:PropertySection
Get the pipeline to call to handle and render the section.- Parameters:
ametysObject
- The Ametys object- Returns:
- The path of the pipeline to call
-
buildData
Build the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR
, it will be convert from JSON to XML.- Parameters:
ametysObject
- The resolved object- Returns:
- the data
-
getXSLT
Path to the XSL to render the section. It is recommended to use the 'view' protocol, with a plugin, like view:myplugin://stylesheets/properties/filename.xsl- Returns:
- The XSL path
-
_getDefaultXSLT
The default XSL if not defined in the configuration. Not mandatory to implement this method but if there is not XSLT configured for the section, the loading will failed.- Returns:
- The default XSL path
-