Package org.ametys.web.skin
Class SkinParameterParser
Parser for
CategorizedElementDefinitionWrapper parameter.-
Field Summary
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_disableConditionsManager, _disableConditionsToLookup, _modelItemTypeExtensionPoint -
Constructor Summary
ConstructorsConstructorDescriptionSkinParameterParser(ModelItemTypeExtensionPoint elementTypeExtensionPoint, ThreadSafeComponentManager<DisableConditions> disableConditionsManager, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager, String i18nCatalogueLocation) Creates a categorized element definition parser for the skin. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringRetrieves the name of the configuration attribute that contains the name of the model itemprotected I18nizableText_parseI18nizableText(Configuration config, String catalog, String name) Parses a mandatory i18n text configuration, throwing an exception if empty.Methods inherited from class org.ametys.cms.model.AbstractElementDefinitionParser
_createModelItem, _parseContentTypeId, parseMethods inherited from class org.ametys.runtime.model.AbstractElementDefinitionParser
_parseAndSetEnumerator, _parseAndSetValidator, _parseDefaultValues, lookupComponentsMethods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_parseDisableConditions, _parseI18nizableText, _parseName, _parseType, _parseWidget, _parseWidgetParameters, parse
-
Constructor Details
-
SkinParameterParser
public SkinParameterParser(ModelItemTypeExtensionPoint elementTypeExtensionPoint, ThreadSafeComponentManager<DisableConditions> disableConditionsManager, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager, String i18nCatalogueLocation) Creates a categorized element definition parser for the skin.- Parameters:
elementTypeExtensionPoint- the extension point to use to get available element typesdisableConditionsManager- the disable conditions component managerenumeratorManager- the enumerator component manager.validatorManager- the validator component manager.i18nCatalogueLocation- the path of the i18n folder of the skin
-
-
Method Details
-
_getNameConfigurationAttribute
Description copied from class:AbstractModelItemParserRetrieves the name of the configuration attribute that contains the name of the model item- Overrides:
_getNameConfigurationAttributein classAbstractModelItemParser<SkinDisableConditions>- Returns:
- the name of the configuration attribute that contains the name of the model item
-
_parseI18nizableText
protected I18nizableText _parseI18nizableText(Configuration config, String catalog, String name) throws ConfigurationException Description copied from class:AbstractModelItemParserParses a mandatory i18n text configuration, throwing an exception if empty.- Overrides:
_parseI18nizableTextin classAbstractModelItemParser<SkinDisableConditions>- Parameters:
config- the configuration to use.catalog- the catalogname- the child name.- Returns:
- the i18n text.
- Throws:
ConfigurationException- if the configuration is not valid.
-