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
Modifier and TypeFieldDescriptionprotected DisableConditionsEvaluator<Void>
The disable condition evaluatorstatic final String
The avalon role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadAndValidateXMLData
(Configuration configuration, String prefix, Map<String, ? extends ElementDefinition> definitions, Map<String, List<I18nizableText>> allErrors) Read data from the givenConfiguration
and validate the valuesvoid
service
(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:
service
in 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 givenConfiguration
and 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
-