public interface RoleMapperModel
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRoleMapping(RoleModel role)
Removes the given role mapping from this object.
|
Set<RoleModel> |
getClientRoleMappings(ClientModel app)
Returns set of client roles that are directly set to this object for the given client.
|
Set<RoleModel> |
getRealmRoleMappings()
Returns set of realm roles that are directly set to this object.
|
Set<RoleModel> |
getRoleMappings()
Returns set of all role (both realm all client) that are directly set to this object.
|
void |
grantRole(RoleModel role)
Grants the given role to this object.
|
boolean |
hasRole(RoleModel role)
Returns
true if this object is directly or indirectly assigned the given role, false otherwise. |
Set<RoleModel> getRealmRoleMappings()
Set<RoleModel> getClientRoleMappings(ClientModel app)
app - Client to get the roles forboolean hasRole(RoleModel role)
true if this object is directly or indirectly assigned the given role, false otherwise.
For example, true is returned for hasRole(R) if:
role - void grantRole(RoleModel role)
role - Set<RoleModel> getRoleMappings()
void deleteRoleMapping(RoleModel role)
role - Role to removeCopyright © 2016 JBoss by Red Hat. All rights reserved.