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 StringThe 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.voidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
buildData
Description copied from interface:TechnicalItemBuild the data sent into the request attributeActionResultGenerator.MAP_REQUEST_ATTR, it will be convert from JSON to XML.- Specified by:
buildDatain 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:AbstractTechnicalItemThe 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 classAbstractTechnicalItem- Returns:
- The default XSL path
-