Package org.ametys.web.site
Class SiteParameterParser
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItemParser
-
- org.ametys.runtime.model.ElementDefinitionParser
-
- org.ametys.web.site.SiteParameterParser
-
public class SiteParameterParser extends ElementDefinitionParser
Parser for Site parameter.
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_modelItemTypeExtensionPoint
-
-
Constructor Summary
Constructors Constructor Description SiteParameterParser(AbstractThreadSafeComponentExtensionPoint<? extends ModelItemType> elementTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
Creates a site parameter parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_getNameConfigurationAttribute()
Retrieves the name of the configuration attribute that contains the name of the model itemElementDefinition
parse(ServiceManager serviceManager, String pluginName, Configuration parameterConfig)
Parses a site parameter from a XML configuration.-
Methods inherited from class org.ametys.runtime.model.ElementDefinitionParser
_createModelItem, _parseAndSetEnumerator, _parseAndSetValidator, _parseDefaultValue, _parseDisableConditions, _parseMultiple, _parseWidget, _parseWidgetParameters, lookupComponents, parse
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_parseI18nizableText, _parseI18nizableText, _parseName, _parseType, parse
-
-
-
-
Constructor Detail
-
SiteParameterParser
public SiteParameterParser(AbstractThreadSafeComponentExtensionPoint<? extends ModelItemType> elementTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
Creates a site parameter parser.- Parameters:
elementTypeExtensionPoint
- the extension point to use to get available element typesenumeratorManager
- the enumerator component manager.validatorManager
- the validator component manager.
-
-
Method Detail
-
_getNameConfigurationAttribute
protected String _getNameConfigurationAttribute()
Description copied from class:AbstractModelItemParser
Retrieves the name of the configuration attribute that contains the name of the model item- Overrides:
_getNameConfigurationAttribute
in classAbstractModelItemParser
- Returns:
- the name of the configuration attribute that contains the name of the model item
-
parse
public ElementDefinition parse(ServiceManager serviceManager, String pluginName, Configuration parameterConfig) throws ConfigurationException
Parses a site parameter from a XML configuration. A site parameter has no model at parsing. Parameters are copied for each model after parsing- Parameters:
serviceManager
- the service managerpluginName
- the plugin name declaring this parameter.parameterConfig
- the XML configuration of the parameter.- Returns:
- the parsed parameter.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
-