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 StringThe 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.voidconfigure(Configuration configuration) voidcontextualize(Context context) getParameters(AmetysObject ametysObject) Get the parameters to add in the request attributes of the next pipeline.voidservice(ServiceManager smanager) booleansupports(AmetysObject ametysObject) Check if an element is supportedMethods inherited from class org.ametys.cms.properties.section.AbstractDefaultPropertySection
getDataURL, getXSLTMethods inherited from class org.ametys.cms.properties.section.AbstractPropertySection
getId, getPriority, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ContentViewSection
public ContentViewSection()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classAbstractDefaultPropertySection- Throws:
ConfigurationException
-
supports
Description copied from interface:SupporterCheck if an element is supported- Specified by:
supportsin interfaceSupporter<AmetysObject>- Parameters:
ametysObject- The element- Returns:
trueif the element is supported,falseotherwise
-
getParameters
Description copied from interface:PropertySectionGet the parameters to add in the request attributes of the next pipeline.- Specified by:
getParametersin interfacePropertySection- Overrides:
getParametersin classAbstractDefaultPropertySection- Parameters:
ametysObject- The Ametys object- Returns:
- A
Mapof parameters
-
buildData
Description copied from class:AbstractDefaultPropertySectionBuild the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR, it will be convert from JSON to XML.- Specified by:
buildDatain classAbstractDefaultPropertySection- Parameters:
ametysObject- The resolved object- Returns:
- the data
-
_getDefaultXSLT
Description copied from class:AbstractDefaultPropertySectionThe 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:
_getDefaultXSLTin classAbstractDefaultPropertySection- Returns:
- The default XSL path
-