Class AbstractContentReferencerSection
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.AbstractContentReferencerSection
- All Implemented Interfaces:
PropertySection
,LogEnabled
,PluginAware
,Prioritizable
,Supporter<AmetysObject>
,Configurable
,Serviceable
- Direct Known Subclasses:
ContentReferencerSection
,ReferenceTableReferencerSection
public abstract class AbstractContentReferencerSection
extends AbstractDefaultPropertySection
implements Serviceable
Section to display references to the content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_buildData
(Content content, Content.ReferencingContentsSearch referencingContents) Build the data from referencing contents search.protected String
The default XSL if not defined in the configuration.protected abstract boolean
Determines if the current section support only reference tables or other contents except reference tables.buildData
(AmetysObject ametysObject) Build the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR
, it will be convert from JSON to XML.void
service
(ServiceManager smanager) boolean
supports
(AmetysObject ametysObject) Check if an element is supportedMethods inherited from class org.ametys.cms.properties.section.AbstractDefaultPropertySection
configure, getDataURL, getParameters, 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
-
AbstractContentReferencerSection
public AbstractContentReferencerSection()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
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
-
_supportReferenceTable
Determines if the current section support only reference tables or other contents except reference tables.- Returns:
true
if it a section for reference table,false
otherwise.
-
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
-
_buildData
protected Map<String,Object> _buildData(Content content, Content.ReferencingContentsSearch referencingContents) Build the data from referencing contents search.- Parameters:
content
- The contentreferencingContents
- The referencing contents- 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
-