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 StringThe default XSL if not defined in the configuration.protected abstract booleanDetermines 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.voidservice(ServiceManager smanager) booleansupports(AmetysObject ametysObject) Check if an element is supportedMethods inherited from class org.ametys.cms.properties.section.AbstractDefaultPropertySection
configure, getDataURL, getParameters, 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
-
AbstractContentReferencerSection
public AbstractContentReferencerSection()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
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
-
_supportReferenceTable
Determines if the current section support only reference tables or other contents except reference tables.- Returns:
trueif it a section for reference table,falseotherwise.
-
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
-
_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: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
-