Package org.ametys.web.service
Class ServiceParameterDefinitionParser
java.lang.Object
org.ametys.runtime.model.AbstractModelItemParser
org.ametys.runtime.model.ElementDefinitionParser
org.ametys.cms.model.ElementDefinitionParser
org.ametys.web.service.ServiceParameterDefinitionParser
This class parses the service parameter definition
-
Field Summary
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_modelItemTypeExtensionPoint
-
Constructor Summary
ConstructorDescriptionServiceParameterDefinitionParser
(ModelItemTypeExtensionPoint serviceParameterTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager) Creates a service parameter definition parser. -
Method Summary
Modifier and TypeMethodDescriptionprotected ServiceParameter
_createModelItem
(Configuration definitionConfig) Create the model item to populate it.protected String
_parseName
(Configuration definitionConfig) Parses the name of the model item.Methods inherited from class org.ametys.cms.model.ElementDefinitionParser
_parseContentTypeId, parse
Methods inherited from class org.ametys.runtime.model.ElementDefinitionParser
_parseAndSetEnumerator, _parseAndSetValidator, _parseDefaultValue, _parseDefaultValues, _parseMultiple, lookupComponents
Methods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_getNameConfigurationAttribute, _parseDisableConditions, _parseI18nizableText, _parseI18nizableText, _parseType, _parseWidget, _parseWidgetParameters, parse
-
Constructor Details
-
ServiceParameterDefinitionParser
public ServiceParameterDefinitionParser(ModelItemTypeExtensionPoint serviceParameterTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager) Creates a service parameter definition parser.- Parameters:
serviceParameterTypeExtensionPoint
- the extension point to use to get available element typesenumeratorManager
- the enumerator component manager.validatorManager
- the validator component manager.
-
-
Method Details
-
_createModelItem
protected ServiceParameter _createModelItem(Configuration definitionConfig) throws ConfigurationException Description copied from class:AbstractModelItemParser
Create the model item to populate it.- Overrides:
_createModelItem
in classElementDefinitionParser
- Parameters:
definitionConfig
- the model item configuration to use.- Returns:
- the item instantiated.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_parseName
Description copied from class:AbstractModelItemParser
Parses the name of the model item.- Overrides:
_parseName
in classAbstractModelItemParser
- Parameters:
definitionConfig
- the model item configuration to use.- Returns:
- the name of the model item.
- Throws:
ConfigurationException
- if the configuration is not valid.
-