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
-
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 decoratorvoid
contextualize
(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 iconsvoid
service
(ServiceManager manager)
-
Constructor Details
-
DefaultSitemapDecoratorsHandler
public DefaultSitemapDecoratorsHandler()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getIcons
Description copied from interface:SitemapDecoratorsHandler
Get the list of available icons- Specified by:
getIcons
in 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:SitemapDecoratorsHandler
Get the icon of the page- Specified by:
getIcon
in interfaceSitemapDecoratorsHandler
- Parameters:
page
- the page- Returns:
- the file icon path
-
getDecorators
Description copied from interface:SitemapDecoratorsHandler
Get the list of available decorators- Specified by:
getDecorators
in 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:SitemapDecoratorsHandler
Get the list of available decorators- Specified by:
getDecorators
in interfaceSitemapDecoratorsHandler
- Parameters:
sitemap
- the sitemap- Returns:
- the list of available decorators
-
getDecorators
Description copied from interface:SitemapDecoratorsHandler
Get the list of decorators for a given page- Specified by:
getDecorators
in 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
-