public interface ModifiableGroupDirectory extends GroupDirectory
Modifier and Type | Method and Description |
---|---|
ModifiableGroup |
add(String name)
Add a new group of users.
|
ModifiableGroup |
getGroup(String groupID)
Returns a particular group.
|
void |
remove(String groupID)
Remove a group of users.
|
void |
update(ModifiableGroup userGroup)
Modify an existing group of users.
|
getGroupDirectoryModelId, getGroups, getId, getLabel, getParameterValues, getUserGroups, group2JSON, groups2JSON, init, setId, setLabel
ModifiableGroup getGroup(String groupID)
GroupDirectory
getGroup
in interface GroupDirectory
groupID
- The id of the group.ModifiableGroup add(String name) throws InvalidModificationException
name
- The name of the user group to create. Cannot be null;InvalidModificationException
- if the group id exists yet or
if at least one of the parameter is invalid.void update(ModifiableGroup userGroup) throws InvalidModificationException
userGroup
- Informations about the new group. Cannot be null:InvalidModificationException
- if the group id does not exist yetvoid remove(String groupID) throws InvalidModificationException
groupID
- The id of the group. Cannot be null;InvalidModificationException
- if the group id does not exist.