Interface GroupManager
-
- All Superinterfaces:
AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>
- All Known Subinterfaces:
GroupManagerService
public interface GroupManager extends AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>
The Groups Manager.
NOTE: Some user management security systems do not provide support for roles and groups, only one of them. Consider that UF roles are the ones defined in the deployment descriptor (web.xml) and present in the
org.uberfire.ext.security.server.RolesRegistry. So take care when searching or getting a group, if it's name is registered as a role, it must NOT be considered for management here. This behavior has to be done by each security management provider implementation, depending on the external security system being used.- Since:
- 0.8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.ext.security.management.api.AbstractEntityManager
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassignUsers(String name, Collection<String> users)Assign the a group to a given collection of users.-
Methods inherited from interface org.uberfire.ext.security.management.api.AbstractEntityManager
create, delete, get, getAll, getSettings, search, update
-
-
-
-
Method Detail
-
assignUsers
void assignUsers(String name, Collection<String> users) throws SecurityManagementException
Assign the a group to a given collection of users.
.- Parameters:
name- The group name.users- The collection of user identifiers. The group will be assigned to each one.- Throws:
SecurityManagementException
-
-