Class AbstractLanguageItem
java.lang.Object
org.ametys.cms.properties.section.technical.AbstractTechnicalItem
org.ametys.cms.properties.section.technical.impl.AbstractLanguageItem
- All Implemented Interfaces:
TechnicalItem
,PluginAware
,Prioritizable
,Supporter<AmetysObject>
,Configurable
,Serviceable
- Direct Known Subclasses:
ContentLanguageItem
,PageLanguageItem
Technical section item to display language.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
The default XSL if not defined in the configuration.protected abstract String
_getLanguage
(AmetysObject ametysObject) Get the language code on the Ametys object.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) Methods inherited from class org.ametys.cms.properties.section.technical.AbstractTechnicalItem
configure, getId, getPriority, getXSLT, setPluginInfo
-
Constructor Details
-
AbstractLanguageItem
public AbstractLanguageItem()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
buildData
Description copied from interface:TechnicalItem
Build the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR
, it will be convert from JSON to XML.- Specified by:
buildData
in interfaceTechnicalItem
- Parameters:
ametysObject
- The Ametys object- Returns:
- the data
-
_getLanguage
Get the language code on the Ametys object.- Parameters:
ametysObject
- The Ametys object- Returns:
- the language code or null
-
_getDefaultXSLT
Description copied from class:AbstractTechnicalItem
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 classAbstractTechnicalItem
- Returns:
- The default XSL path
-