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.
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>
Modifier and Type | Method and Description |
---|---|
void |
assignUsers(String name,
Collection<String> users)
Assign the a group to a given collection of users.
|
create, delete, get, getSettings, search, update
void assignUsers(String name, Collection<String> users) throws SecurityManagementException
Assign the a group to a given collection of users.
.name
- The group name.users
- The collection of user identifiers. The group will be assigned to each one.SecurityManagementException
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.