Package org.ametys.web.parameters.view
Class ContentViewParametersManager.ContentViewParametersReloader
- java.lang.Object
-
- org.ametys.web.parameters.view.ContentViewParametersManager.ContentViewParametersReloader
-
- All Implemented Interfaces:
FileReloader
- Enclosing class:
- ContentViewParametersManager
public static class ContentViewParametersManager.ContentViewParametersReloader extends Object implements FileReloader
Class representing a content view parameters reloader
-
-
Constructor Summary
Constructors Constructor Description ContentViewParametersReloader(String skinId, String contentTypeId, String viewName, ContentViewParametersManager manager)
Constructor for the reloader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentTypeId()
Get the content type idContentViewParametersManager
getContentViewParameterManager()
Get the content view parameters managerString
getId(String sourceUrl)
Get an unique ID for this File ReloaderString
getSkinId()
Get the skin idString
getViewName()
Get the content view namevoid
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 it
-
-
-
Constructor Detail
-
ContentViewParametersReloader
public ContentViewParametersReloader(String skinId, String contentTypeId, String viewName, ContentViewParametersManager manager)
Constructor for the reloader- Parameters:
skinId
- the skin idcontentTypeId
- the content type idviewName
- the content view namemanager
- the content view parameters manager
-
-
Method Detail
-
getContentTypeId
public String getContentTypeId()
Get the content type id- Returns:
- the content type id
-
getViewName
public String getViewName()
Get the content view name- Returns:
- the content view name
-
getContentViewParameterManager
public ContentViewParametersManager getContentViewParameterManager()
Get the content view parameters manager- Returns:
- the content view parameters manager
-
updateFile
public void updateFile(String sourceUrl, Source source, InputStream is) throws Exception
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
public String getId(String sourceUrl)
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
-
-