Class SynchronizeContentsCollectionModelExtensionPoint.SynchronizableContentsCollectionModelParameterParser
- java.lang.Object
-
- org.ametys.runtime.parameter.AbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
-
- org.ametys.plugins.contentio.synchronize.SynchronizeContentsCollectionModelExtensionPoint.SynchronizableContentsCollectionModelParameterParser
-
- Enclosing class:
- SynchronizeContentsCollectionModelExtensionPoint
public class SynchronizeContentsCollectionModelExtensionPoint.SynchronizableContentsCollectionModelParameterParser extends AbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
Class for parsing parameters of aSynchronizableContentsCollectionModel
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.parameter.AbstractParameterParser
_enumeratorManager, _validatorManager
-
-
Constructor Summary
Constructors Constructor Description SynchronizableContentsCollectionModelParameterParser(ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_additionalParsing(ServiceManager manager, String pluginName, Configuration parameterConfig, String parameterId, Parameter<ParameterHelper.ParameterType> parameter)
Called for additional parsing.
Default implementation does nothing.protected Parameter<ParameterHelper.ParameterType>
_createParameter(Configuration parameterConfig)
Create the parameter to populate it.protected Object
_parseDefaultValue(Configuration parameterConfig, Parameter<ParameterHelper.ParameterType> parameter)
Parses the default value.protected String
_parseId(Configuration parameterConfig)
Parses the id.protected ParameterHelper.ParameterType
_parseType(Configuration parameterConfig)
Parses the type.-
Methods inherited from class org.ametys.runtime.parameter.AbstractParameterParser
_parseAndSetEnumerator, _parseAndSetValidator, _parseI18nizableText, _parseWidget, _parseWidgetParameters, lookupComponents, parseParameter
-
-
-
-
Constructor Detail
-
SynchronizableContentsCollectionModelParameterParser
public SynchronizableContentsCollectionModelParameterParser(ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
Constructor- Parameters:
enumeratorManager
- The manager for enumerationvalidatorManager
- The manager for validation
-
-
Method Detail
-
_createParameter
protected Parameter<ParameterHelper.ParameterType> _createParameter(Configuration parameterConfig) throws ConfigurationException
Description copied from class:AbstractParameterParser
Create the parameter to populate it.- Specified by:
_createParameter
in classAbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
- Parameters:
parameterConfig
- the parameter configuration to use.- Returns:
- the parameter instantiated.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_parseId
protected String _parseId(Configuration parameterConfig) throws ConfigurationException
Description copied from class:AbstractParameterParser
Parses the id.- Specified by:
_parseId
in classAbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
- Parameters:
parameterConfig
- the parameter configuration to use.- Returns:
- the id.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_parseType
protected ParameterHelper.ParameterType _parseType(Configuration parameterConfig) throws ConfigurationException
Description copied from class:AbstractParameterParser
Parses the type.- Specified by:
_parseType
in classAbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
- Parameters:
parameterConfig
- the parameter configuration to use.- Returns:
- the type.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_parseDefaultValue
protected Object _parseDefaultValue(Configuration parameterConfig, Parameter<ParameterHelper.ParameterType> parameter) throws ConfigurationException
Description copied from class:AbstractParameterParser
Parses the default value.- Specified by:
_parseDefaultValue
in classAbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
- Parameters:
parameterConfig
- the parameter configuration.parameter
- the parameter.- Returns:
- the default value or
null
if none defined. - Throws:
ConfigurationException
- if the configuration is not valid.
-
_additionalParsing
protected void _additionalParsing(ServiceManager manager, String pluginName, Configuration parameterConfig, String parameterId, Parameter<ParameterHelper.ParameterType> parameter) throws ConfigurationException
Description copied from class:AbstractParameterParser
Called for additional parsing.
Default implementation does nothing.- Overrides:
_additionalParsing
in classAbstractParameterParser<Parameter<ParameterHelper.ParameterType>,ParameterHelper.ParameterType>
- Parameters:
manager
- the sservice manager.pluginName
- the plugin name.parameterConfig
- the parameter configuration.parameterId
- the parameter id.parameter
- the parameter to populate.- Throws:
ConfigurationException
- if the configuration is not valid.
-
-