Package org.ametys.web.sitemap
Class SitemapIndicatorsHandler
java.lang.Object
org.ametys.web.sitemap.SitemapIndicatorsHandler
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
public class SitemapIndicatorsHandler
extends Object
implements Serviceable, Component, Contextualizable
Component to handle
SitemapTreeIndicator
s-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) getDecorators
(SitemapElement sitemapElement) Get the list of decorators matching the given sitemap elementgetDecorators
(Site site) Get the list of available decorators for a siteGet the icon for a pageGet the list of available icons for a sitevoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role -
_context
The context
-
-
Constructor Details
-
SitemapIndicatorsHandler
public SitemapIndicatorsHandler()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getIcons
Get the list of available icons for a site- Parameters:
site
- the site name- Returns:
- the list of available icons
-
getIcon
Get the icon for a page- Parameters:
page
- the page- Returns:
- the page's icon or null if no icon matches.
-
getDecorators
Get the list of available decorators for a site- Parameters:
site
- the site- Returns:
- the list of available decorators
-
getDecorators
Get the list of decorators matching the given sitemap element- Parameters:
sitemapElement
- the sitemap element- Returns:
- the decorators matching the sitemap element
-