Package org.ametys.web.sitemap
Class DefaultSitemapDecoratorsHandler
java.lang.Object
org.ametys.web.sitemap.DefaultSitemapDecoratorsHandler
- All Implemented Interfaces:
SitemapDecoratorsHandler,Component,Contextualizable,Serviceable
public class DefaultSitemapDecoratorsHandler
extends Object
implements SitemapDecoratorsHandler, Serviceable, Contextualizable, Component
Default implementation of
SitemapDecoratorsHandler-
Field Summary
Fields inherited from interface org.ametys.web.sitemap.SitemapDecoratorsHandler
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_matches(SitemapIcon icon, Page page) Determines if page matches the decoratorprotected boolean_matches(SitemapIcon icon, Sitemap sitemap) Determines if page matches the decoratorvoidcontextualize(Context context) protected List<SitemapDecorator>getDecorators(String skinId) Get the list of available decoratorsgetDecorators(Page page) Get the list of decorators for a given pagegetDecorators(Site site) Get the list of available decoratorsgetDecorators(Sitemap sitemap) Get the list of available decoratorsGet the icon of the pageprotected List<SitemapIcon>Get the list of available iconsGet the list of available iconsvoidservice(ServiceManager manager)
-
Constructor Details
-
DefaultSitemapDecoratorsHandler
public DefaultSitemapDecoratorsHandler()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
getIcons
Description copied from interface:SitemapDecoratorsHandlerGet the list of available icons- Specified by:
getIconsin interfaceSitemapDecoratorsHandler- Parameters:
site- the site name- Returns:
- the list of available icons
-
getIcons
Get the list of available icons- Parameters:
skinId- name of the skin- Returns:
- the list of available icons
-
getIcon
Description copied from interface:SitemapDecoratorsHandlerGet the icon of the page- Specified by:
getIconin interfaceSitemapDecoratorsHandler- Parameters:
page- the page- Returns:
- the file icon path
-
getDecorators
Description copied from interface:SitemapDecoratorsHandlerGet the list of available decorators- Specified by:
getDecoratorsin interfaceSitemapDecoratorsHandler- Parameters:
site- the site name- Returns:
- the list of available decorators
-
getDecorators
Get the list of available decorators- Parameters:
skinId- name of the skin- Returns:
- the list of available decorators
-
getDecorators
Description copied from interface:SitemapDecoratorsHandlerGet the list of available decorators- Specified by:
getDecoratorsin interfaceSitemapDecoratorsHandler- Parameters:
sitemap- the sitemap- Returns:
- the list of available decorators
-
getDecorators
Description copied from interface:SitemapDecoratorsHandlerGet the list of decorators for a given page- Specified by:
getDecoratorsin interfaceSitemapDecoratorsHandler- Parameters:
page- the page- Returns:
- decorators of page
-
_matches
Determines if page matches the decorator- Parameters:
icon- the iconsitemap- the sitemap- Returns:
- true if the page matches the decorator
-
_matches
Determines if page matches the decorator- Parameters:
icon- the iconpage- the page to test- Returns:
- true if the page matches the decorator
-