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
Nested ClassesModifier and TypeClassDescriptionstatic classClass representing a service view parameters reloader -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe avalon contextprotected FileReloaderUtilsThe file reloader utilsprotected ServiceManagerThe service managerprotected ServiceExtensionPointThe service extension pointprotected org.ametys.web.parameters.view.ServiceViewParametersManager.SkinsServiceViewParametersThe object representing the view parameters of the different service by skinprotected ViewAndParametersParserThe view and parameters parserprotected ModelItemTypeExtensionPointThe view parameter type extension pointprotected ViewParametersManagerThe view parameters managerstatic final StringAvalon Role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<ViewParametersModel>_configureViewParameters(Configuration paramConfiguration, String viewParametersId, String plugin, String catalog) Parse service view parameters from the configurationvoidcontextualize(Context context) voiddispose()getViewParameters(String skinId, String serviceId, String viewName) Get the view parameters of a servicevoidvoidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
initialize
- Specified by:
initializein 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:
disposein interfaceDisposable
-