public interface ModifiableUserDirectory extends UserDirectory
Modifier and Type | Method and Description |
---|---|
void |
add(Map<String,String> userInformation)
Add a new user to the list.
|
Collection<? extends Parameter<ParameterHelper.ParameterType>> |
getModel()
Get the user's edition model as a Collection of parameters.
|
void |
remove(String login)
Remove an user from the list.
|
void |
update(Map<String,String> userInformation)
Modify informations about an user of the list.
|
Map<String,Errors> |
validate(Map<String,String> userInformation)
Validate user information.
|
checkCredentials, getId, getLabel, getParameterValues, getPopulationId, getUser, getUserDirectoryModelId, getUsers, getUsers, init, setPopulationId
void add(Map<String,String> userInformation) throws InvalidModificationException
userInformation
- Informations about the user, see implementation. Cannot be null.InvalidModificationException
- if the login exists yet or
if at least one of the parameter is invalid.void update(Map<String,String> userInformation) throws InvalidModificationException
userInformation
- New informations about the user, see implementation. Cannot be null.InvalidModificationException
- if the login does not match
in the list or if at least one of the parameter is invalid.void remove(String login) throws InvalidModificationException
login
- The user's login. Cannot be null.InvalidModificationException
- if the user cannot be removedMap<String,Errors> validate(Map<String,String> userInformation)
userInformation
- Informations about the user, see implementation. Cannot be null.Collection<? extends Parameter<ParameterHelper.ParameterType>> getModel()