Package org.ametys.web.sitemap
Class SkinSitemapDecoratorsProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.sitemap.SkinSitemapDecoratorsProvider
- All Implemented Interfaces:
FileReloader
,LogEnabled
,SitemapDecoratorsProvider
,Initializable
,Contextualizable
,Serviceable
public class SkinSitemapDecoratorsProvider
extends AbstractLogEnabled
implements SitemapDecoratorsProvider, Initializable, Serviceable, FileReloader, Contextualizable
Implementation of
SitemapDecoratorsProvider
for icons provided by skins-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SkinsManager
The skins managerprotected SourceResolver
The source resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates the cachesvoid
contextualize
(Context context) getDecorators
(String skinName) Get the list of available decoratorsGet an unique ID for this File Reloadervoid
void
service
(ServiceManager smanager) void
updateFile
(String sourceUrl, Source source, InputStream is) Update the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read itMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_skinsManager
The skins manager -
_srcResolver
The source resolver
-
-
Constructor Details
-
SkinSitemapDecoratorsProvider
public SkinSitemapDecoratorsProvider()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
_createCaches
Creates the caches -
getDecorators
Description copied from interface:SitemapDecoratorsProvider
Get the list of available decorators- Specified by:
getDecorators
in interfaceSitemapDecoratorsProvider
- Parameters:
skinName
- name of the skin- Returns:
- the list of available decorators
-
updateFile
Description copied from interface:FileReloader
Update the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read it- Specified by:
updateFile
in interfaceFileReloader
- Parameters:
sourceUrl
- the url of the file.source
- the source to read, can be null if no file was readis
- the input stream to read, can be null if no file was read- Throws:
Exception
- something went wrong while reading the inputstream
-
getId
Description copied from interface:FileReloader
Get an unique ID for this File Reloader- Specified by:
getId
in interfaceFileReloader
- Parameters:
sourceUrl
- this is passed as an argument if your class read multiple files. If it reads only one file, the full class name can be a good enough ID- Returns:
- an unique ID
-