Package org.ametys.web.parameters.view
Class ServiceViewParametersManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.parameters.view.ServiceViewParametersManager
- All Implemented Interfaces:
LogEnabled
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
public class ServiceViewParametersManager
extends AbstractLogEnabled
implements Component, Serviceable, Contextualizable, Initializable, Disposable
Manager for service view parameters
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class representing a service view parameters reloader -
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The avalon contextprotected FileReloaderUtils
The file reloader utilsprotected ServiceManager
The service managerprotected ServiceExtensionPoint
The service extension pointprotected org.ametys.web.parameters.view.ServiceViewParametersManager.SkinsServiceViewParameters
The object representing the view parameters of the different service by skinprotected ViewAndParametersParser
The view and parameters parserprotected ModelItemTypeExtensionPoint
The view parameter type extension pointprotected ViewParametersManager
The view parameters managerstatic final String
Avalon Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<ViewParametersModel>
_configureViewParameters
(Configuration paramConfiguration, String viewParametersId, String plugin, String catalog) Parse service view parameters from the configurationvoid
contextualize
(Context context) void
dispose()
getViewParameters
(String skinId, String serviceId, String viewName) Get the view parameters of a servicevoid
void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role -
_fileReloaderUtils
The file reloader utils -
_viewParametersEP
The view parameter type extension point -
_viewAndParametersParser
The view and parameters parser -
_serviceExtensionPoint
The service extension point -
_context
The avalon context -
_manager
The service manager -
_skinsServiceViewParameters
protected org.ametys.web.parameters.view.ServiceViewParametersManager.SkinsServiceViewParameters _skinsServiceViewParametersThe object representing the view parameters of the different service by skin -
_viewParametersManager
The view parameters manager
-
-
Constructor Details
-
ServiceViewParametersManager
public ServiceViewParametersManager()
-
-
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
-
getViewParameters
public Optional<ViewParametersModel> getViewParameters(String skinId, String serviceId, String viewName) Get the view parameters of a service- Parameters:
skinId
- the skin idserviceId
- the service idviewName
- the view name- Returns:
- the view parameters
-
_configureViewParameters
protected Optional<ViewParametersModel> _configureViewParameters(Configuration paramConfiguration, String viewParametersId, String plugin, String catalog) throws ConfigurationException Parse service view parameters from the configuration- Parameters:
paramConfiguration
- the configurationviewParametersId
- the view parameters idplugin
- the plugincatalog
- the catalog- Returns:
- the view parameters
- Throws:
ConfigurationException
- if a configuration error occurred
-
dispose
- Specified by:
dispose
in interfaceDisposable
-