public interface RoleResource
Modifier and Type | Method and Description |
---|---|
void |
addComposites(List<RoleRepresentation> rolesToAdd) |
void |
deleteComposites(List<RoleRepresentation> rolesToRemove) |
Set<RoleRepresentation> |
getClientRoleComposites(String clientUuid) |
ManagementPermissionReference |
getPermissions()
Returns indicator if the fine grain permissions are enabled or not.
|
Set<RoleRepresentation> |
getRealmRoleComposites() |
Set<RoleRepresentation> |
getRoleComposites() |
Set<GroupRepresentation> |
getRoleGroupMembers()
Get role groups
Returns groups that have the given role
|
Set<GroupRepresentation> |
getRoleGroupMembers(Integer firstResult,
Integer maxResults)
Get role groups
Returns groups that have the given role, paginated according to the query parameters
|
Set<UserRepresentation> |
getRoleUserMembers()
Get role members
Returns users that have the given role
|
Set<UserRepresentation> |
getRoleUserMembers(Integer firstResult,
Integer maxResults)
Get role members
Returns users that have the given role, paginated according to the query parameters
|
void |
remove() |
ManagementPermissionReference |
setPermissions(ManagementPermissionRepresentation status)
Enables or disables the fine grain permissions feature.
|
RoleRepresentation |
toRepresentation() |
void |
update(RoleRepresentation roleRepresentation) |
@PUT @Path(value="/management/permissions") @Consumes(value="application/json") @Produces(value="application/json") ManagementPermissionReference setPermissions(ManagementPermissionRepresentation status)
ManagementPermissionReference
.status
- status request to apply@GET @Path(value="/management/permissions") @Produces(value="application/json") ManagementPermissionReference getPermissions()
@GET @Produces(value="application/json") RoleRepresentation toRepresentation()
@PUT @Consumes(value="application/json") void update(RoleRepresentation roleRepresentation)
@DELETE void remove()
@GET @Path(value="composites") @Produces(value="application/json") Set<RoleRepresentation> getRoleComposites()
@GET @Path(value="composites/realm") @Produces(value="application/json") Set<RoleRepresentation> getRealmRoleComposites()
@GET @Path(value="composites/clients/{clientUuid}") @Produces(value="application/json") Set<RoleRepresentation> getClientRoleComposites(@PathParam(value="clientUuid") String clientUuid)
@POST @Path(value="composites") @Consumes(value="application/json") void addComposites(List<RoleRepresentation> rolesToAdd)
@DELETE @Path(value="composites") @Consumes(value="application/json") void deleteComposites(List<RoleRepresentation> rolesToRemove)
@GET @Path(value="users") @Produces(value="application/json") Set<UserRepresentation> getRoleUserMembers()
@GET @Path(value="users") @Produces(value="application/json") Set<UserRepresentation> getRoleUserMembers(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
firstResult
- Pagination offsetmaxResults
- Pagination size@GET @Path(value="groups") @Produces(value="application/json") Set<GroupRepresentation> getRoleGroupMembers()
@GET @Path(value="groups") @Produces(value="application/json") Set<GroupRepresentation> getRoleGroupMembers(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
firstResult
- Pagination offsetmaxResults
- Pagination sizeCopyright © 2020 JBoss by Red Hat. All rights reserved.