public interface RoleResource
@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") List<UserRepresentation> getUserMembers()
Returns users that have the given role, sorted by username ascending.
Note: This method just returns the first 100 users. In order to retrieve all users, use paging (see
getUserMembers(Integer, Integer)).
@GET @Path(value="users") @Produces(value="application/json") List<UserRepresentation> getUserMembers(@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 size@GET @Path(value="users") @Produces(value="application/json") @Deprecated Set<UserRepresentation> getRoleUserMembers()
getUserMembers()@GET @Path(value="users") @Produces(value="application/json") @Deprecated Set<UserRepresentation> getRoleUserMembers(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
getUserMembers(Integer, Integer)firstResult - Pagination offsetmaxResults - Pagination sizeCopyright © 2025 JBoss by Red Hat. All rights reserved.