Package org.ametys.core.util
Class ReadUsersAndGroupsDataHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.util.ReadUsersAndGroupsDataHelper
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
public class ReadUsersAndGroupsDataHelper
extends AbstractLogEnabled
implements Component, Serviceable
Helper to read data for users and groups
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DisableConditionsEvaluatorThe disable condition evaluatorstatic final StringThe avalon role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAndValidateXMLData(Configuration configuration, String prefix, Map<String, ? extends ElementDefinition> definitions, Map<String, List<I18nizableText>> allErrors) Read data from the givenConfigurationand validate the valuesvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role -
_disableConditionsEvaluator
The disable condition evaluator
-
-
Constructor Details
-
ReadUsersAndGroupsDataHelper
public ReadUsersAndGroupsDataHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
readAndValidateXMLData
public Map<String,Object> readAndValidateXMLData(Configuration configuration, String prefix, Map<String, ? extends ElementDefinition> definitions, Map<String, throws ConfigurationExceptionList<I18nizableText>> allErrors) Read data from the givenConfigurationand validate the values- Parameters:
configuration- the configurationprefix- the definition's prefix to usedefinitions- the definitions of the data to retrieveallErrors- a map to store all validation errors on read data- Returns:
- the values, indexed by name
- Throws:
ConfigurationException- if an error occurs while reading a value or if the value is not valid
-