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
,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 TypeMethodDescriptionvoid
configure
(String id, Configuration configuration, String defaultI18nCatalog, String iconPathPrefix) Configure sitemap indicatorvoid
configure
(Configuration configuration) getIcon()
The icon pathThe icon decoratorThe icon glyphgetId()
Get the indicator's idgetLabel()
The indicator's labelint
Get the priority for the component.void
setPluginInfo
(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, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.sitemap.SitemapTreeIndicator
matches
-
Constructor Details
-
AbstractStaticSitemapIndicator
public AbstractStaticSitemapIndicator()
-
-
Method Details
-
configure
- Specified by:
configure
in 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:PluginAware
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.- Specified by:
setPluginInfo
in 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:SitemapTreeIndicator
Get the indicator's id- Specified by:
getId
in interfaceSitemapTreeIndicator
- Returns:
- the id
-
getLabel
Description copied from interface:SitemapTreeIndicator
The indicator's label- Specified by:
getLabel
in interfaceSitemapTreeIndicator
- Returns:
- the label. Can be null
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-
getIcon
Description copied from interface:SitemapTreeIndicator
The icon path- Specified by:
getIcon
in interfaceSitemapTreeIndicator
- Returns:
- The icon path. Can be null.
-
getIconGlyph
Description copied from interface:SitemapTreeIndicator
The icon glyph- Specified by:
getIconGlyph
in interfaceSitemapTreeIndicator
- Returns:
- The icon glyph. Can be null.
-
getIconDecorator
Description copied from interface:SitemapTreeIndicator
The icon decorator- Specified by:
getIconDecorator
in interfaceSitemapTreeIndicator
- Returns:
- The icon decorator
-