Package org.ametys.web.sitemap
Class AbstractStaticSitemapIndicator
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.sitemap.AbstractStaticSitemapIndicator
- All Implemented Interfaces:
LogEnabled,PluginAware,Prioritizable,SitemapTreeIndicator,Configurable
- Direct Known Subclasses:
ClassifiedAdsRootSitemapIndicator,DefaultSitemapIndicator,OdfRootSitemapIndicator,OrgUnitRootSitemapIndicator,PageTagSitemapDecorator,UserDirectoryRootSitemapIndicator
public abstract class AbstractStaticSitemapIndicator
extends AbstractLogEnabled
implements SitemapTreeIndicator, PluginAware, Configurable
Abstract class for implementing a sitemap tree's indicator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(String id, Configuration configuration, String defaultI18nCatalog, String iconPathPrefix) Configure sitemap indicatorvoidconfigure(Configuration configuration) getIcon()The icon pathThe icon decoratorThe icon glyphgetId()Get the indicator's idgetLabel()The indicator's labelintGet the priority for the component.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 org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.sitemap.SitemapTreeIndicator
matches
-
Constructor Details
-
AbstractStaticSitemapIndicator
public AbstractStaticSitemapIndicator()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
configure
public void configure(String id, Configuration configuration, String defaultI18nCatalog, String iconPathPrefix) throws ConfigurationException Configure sitemap indicator- Parameters:
id- the unique id. Can be null to get id from configurationconfiguration- the configurationdefaultI18nCatalog- the default i18n catalogueiconPathPrefix- the prefix path for icon- Throws:
ConfigurationException- if configuration is invalid
-
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:SitemapTreeIndicatorGet the indicator's id- Specified by:
getIdin interfaceSitemapTreeIndicator- Returns:
- the id
-
getLabel
Description copied from interface:SitemapTreeIndicatorThe indicator's label- Specified by:
getLabelin interfaceSitemapTreeIndicator- Returns:
- the label. Can be null
-
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
-
getIcon
Description copied from interface:SitemapTreeIndicatorThe icon path- Specified by:
getIconin interfaceSitemapTreeIndicator- Returns:
- The icon path. Can be null.
-
getIconGlyph
Description copied from interface:SitemapTreeIndicatorThe icon glyph- Specified by:
getIconGlyphin interfaceSitemapTreeIndicator- Returns:
- The icon glyph. Can be null.
-
getIconDecorator
Description copied from interface:SitemapTreeIndicatorThe icon decorator- Specified by:
getIconDecoratorin interfaceSitemapTreeIndicator- Returns:
- The icon decorator
-