Package org.ametys.web.parameters.view
Class ServiceViewParametersManager.ServiceViewParametersReloader
- java.lang.Object
-
- org.ametys.web.parameters.view.ServiceViewParametersManager.ServiceViewParametersReloader
-
- All Implemented Interfaces:
FileReloader
- Enclosing class:
- ServiceViewParametersManager
public static class ServiceViewParametersManager.ServiceViewParametersReloader extends Object implements FileReloader
Class representing a service view parameters reloader
-
-
Field Summary
Fields Modifier and Type Field Description private Service
_service
private ServiceViewParametersManager
_serviceViewParameterManager
private String
_skinId
private String
_viewName
-
Constructor Summary
Constructors Constructor Description ServiceViewParametersReloader(String skinId, Service service, String viewName, ServiceViewParametersManager manager)
Constructor for the reloader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId(String sourceUrl)
Get an unique ID for this File ReloaderService
getService()
Get the serviceServiceViewParametersManager
getServiceViewParameterManager()
Get the service view parameters managerString
getSkinId()
Get the skin idString
getViewName()
Get the service 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
-
-
-
Field Detail
-
_serviceViewParameterManager
private ServiceViewParametersManager _serviceViewParameterManager
-
-
Constructor Detail
-
ServiceViewParametersReloader
public ServiceViewParametersReloader(String skinId, Service service, String viewName, ServiceViewParametersManager manager)
Constructor for the reloader- Parameters:
skinId
- the skin idservice
- the serviceviewName
- the service view namemanager
- the service view parameters manager
-
-
Method Detail
-
getService
public Service getService()
Get the service- Returns:
- the service
-
getViewName
public String getViewName()
Get the service view name- Returns:
- the service view name
-
getServiceViewParameterManager
public ServiceViewParametersManager getServiceViewParameterManager()
Get the service view parameters manager- Returns:
- the service 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
-
-