public class RoleByIdResource extends RoleResource
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
logger |
| Constructor and Description |
|---|
RoleByIdResource(RealmModel realm,
RealmAuth auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComposites(String id,
List<RoleRepresentation> roles)
Make the role a composite role by associating some child roles
|
void |
deleteComposites(String id,
List<RoleRepresentation> roles)
Remove a set of roles from the role's composite
|
void |
deleteRole(String id)
Delete the role
|
Set<RoleRepresentation> |
getClientByIdRoleComposites(String role,
String client)
Get client-level roles for the client that are in the role's composite
|
Set<RoleRepresentation> |
getClientRoleComposites(String id,
String client)
Get client-level roles for the client that are in the role's composite
|
Set<RoleRepresentation> |
getRealmRoleComposites(String id)
Get realm-level roles that are in the role's composite
|
RoleRepresentation |
getRole(String id)
Get a specific role's representation
|
Set<RoleRepresentation> |
getRoleComposites(String id)
Get role's children
Returns a set of role's children provided the role is a composite.
|
protected RoleModel |
getRoleModel(String id) |
void |
updateRole(String id,
RoleRepresentation rep)
Update the role
|
addComposites, deleteComposites, deleteRole, getClientRoleComposites, getRealmRoleComposites, getRole, getRoleComposites, updateRolepublic RoleByIdResource(RealmModel realm, RealmAuth auth, AdminEventBuilder adminEvent)
public RoleRepresentation getRole(String id)
id - id of rolepublic void deleteRole(String id)
id - id of rolepublic void updateRole(String id, RoleRepresentation rep)
id - id of rolerep - public void addComposites(String id, List<RoleRepresentation> roles)
id - roles - public Set<RoleRepresentation> getRoleComposites(String id)
id - public Set<RoleRepresentation> getRealmRoleComposites(String id)
id - public Set<RoleRepresentation> getClientRoleComposites(String id, String client)
id - client - public Set<RoleRepresentation> getClientByIdRoleComposites(String role, String client)
role - client - public void deleteComposites(String id, List<RoleRepresentation> roles)
id - Role idroles - A set of roles to be removedCopyright © 2016 JBoss by Red Hat. All rights reserved.