Class ContentViewSection
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.properties.section.AbstractPropertySection
org.ametys.cms.properties.section.AbstractDefaultPropertySection
org.ametys.cms.properties.section.content.ContentViewSection
- All Implemented Interfaces:
PropertySection
,LogEnabled
,PluginAware
,Prioritizable
,Supporter<AmetysObject>
,Configurable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
ODFItemManagersSection
public class ContentViewSection
extends AbstractDefaultPropertySection
implements Serviceable, Contextualizable
Section to display details view of the content.
-
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) void
contextualize
(Context context) getParameters
(AmetysObject ametysObject) Get the parameters to add in the request attributes of the next pipeline.void
service
(ServiceManager smanager) boolean
supports
(AmetysObject ametysObject) Check if an element is supportedMethods inherited from class org.ametys.cms.properties.section.AbstractDefaultPropertySection
getDataURL, getXSLT
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
-
ContentViewSection
public ContentViewSection()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classAbstractDefaultPropertySection
- Throws:
ConfigurationException
-
supports
Description copied from interface:Supporter
Check if an element is supported- Specified by:
supports
in interfaceSupporter<AmetysObject>
- Parameters:
ametysObject
- The element- Returns:
true
if the element is supported,false
otherwise
-
getParameters
Description copied from interface:PropertySection
Get the parameters to add in the request attributes of the next pipeline.- Specified by:
getParameters
in interfacePropertySection
- Overrides:
getParameters
in classAbstractDefaultPropertySection
- Parameters:
ametysObject
- The Ametys object- Returns:
- A
Map
of parameters
-
buildData
Description copied from class:AbstractDefaultPropertySection
Build the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR
, it will be convert from JSON to XML.- Specified by:
buildData
in classAbstractDefaultPropertySection
- Parameters:
ametysObject
- The resolved object- Returns:
- the data
-
_getDefaultXSLT
Description copied from class:AbstractDefaultPropertySection
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.- Overrides:
_getDefaultXSLT
in classAbstractDefaultPropertySection
- Returns:
- The default XSL path
-