Class AbstractTechnicalItem
java.lang.Object
org.ametys.cms.properties.section.technical.AbstractTechnicalItem
- All Implemented Interfaces:
TechnicalItem,PluginAware,Prioritizable,Supporter<AmetysObject>,Configurable
- Direct Known Subclasses:
AbstractLanguageItem,AmetysObjectIdItem,AmetysObjectNameItem,AmetysObjectWorkflowItem,ContentDateItem,ContentSCCItem,ContentTypeItem,ContentVersionItem,PagePathItem,PageSiteItem,ResourceFileItem,ResourceKeywordsItem,ResourceUpdateItem
public abstract class AbstractTechnicalItem
extends Object
implements TechnicalItem, Configurable, PluginAware
Abstract implementation of
TechnicalItem to make priority and XSL configurable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThe default XSL if not defined in the configuration.voidconfigure(Configuration configuration) getId()Get the identifier of the technical itemintGet the priority for the component.getXSLT()Path to the XSL to render the section item.voidsetPluginInfo(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.properties.section.technical.TechnicalItem
buildData
-
Constructor Details
-
AbstractTechnicalItem
public AbstractTechnicalItem()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
setPluginInfo
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
getId
Description copied from interface:TechnicalItemGet the identifier of the technical item- Specified by:
getIdin interfaceTechnicalItem- Returns:
- the identifier
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
getXSLT
Description copied from interface:TechnicalItemPath to the XSL to render the section item. It is recommended to use the 'view' protocol, with a plugin, like view:myplugin://stylesheets/properties/filename.xsl- Specified by:
getXSLTin interfaceTechnicalItem- Returns:
- The XSL path
-
_getDefaultXSLT
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.- Returns:
- The default XSL path
-