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
-
Constructor Summary
ConstructorsConstructorDescriptionServiceViewParametersReloader(String skinId, Service service, String viewName, ServiceViewParametersManager manager) Constructor for the reloader -
Method Summary
Modifier and TypeMethodDescriptionGet an unique ID for this File ReloaderGet the serviceGet the service view parameters managerGet the skin idGet the service view namevoidupdateFile(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 Details
-
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 Details
-
getSkinId
Get the skin id- Returns:
- the skin id
-
getService
Get the service- Returns:
- the service
-
getViewName
Get the service view name- Returns:
- the service view name
-
getServiceViewParameterManager
Get the service view parameters manager- Returns:
- the service view parameters manager
-
updateFile
Description copied from interface:FileReloaderUpdate the file, the sourceUrl is only there if you manage multiple files, the Configuration object is already present to read it- Specified by:
updateFilein 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:FileReloaderGet an unique ID for this File Reloader- Specified by:
getIdin 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
-