public interface GroupResource
Modifier and Type | Method and Description |
---|---|
ManagementPermissionReference |
getPermissions()
Returns indicator if the fine grain permissions are enabled or not.
|
List<UserRepresentation> |
members()
Get users
Returns a list of all users in group.
|
List<UserRepresentation> |
members(Integer firstResult,
Integer maxResults)
Get users
Returns a list of users, filtered according to query parameters
|
List<UserRepresentation> |
members(Integer firstResult,
Integer maxResults,
Boolean briefRepresentation)
Get users
Returns a list of users, filtered according to query parameters
|
void |
remove() |
RoleMappingResource |
roles() |
ManagementPermissionReference |
setPermissions(ManagementPermissionRepresentation status)
Enables or disables the fine grain permissions feature.
|
javax.ws.rs.core.Response |
subGroup(GroupRepresentation rep)
Set or create child.
|
GroupRepresentation |
toRepresentation()
Does not expand hierarchy.
|
void |
update(GroupRepresentation rep)
Update group
|
@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") GroupRepresentation toRepresentation()
@PUT @Consumes(value="application/json") void update(GroupRepresentation rep)
rep
- @DELETE void remove()
@POST @Path(value="children") @Produces(value="application/json") @Consumes(value="application/json") javax.ws.rs.core.Response subGroup(GroupRepresentation rep)
rep
- @Path(value="role-mappings") RoleMappingResource roles()
@GET @Path(value="/members") @Produces(value="application/json") List<UserRepresentation> members()
@GET @Path(value="/members") @Produces(value="application/json") List<UserRepresentation> members(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
firstResult
- Pagination offsetmaxResults
- Pagination size@GET @Path(value="/members") @Produces(value="application/json") List<UserRepresentation> members(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults, @QueryParam(value="briefRepresentation") Boolean briefRepresentation)
firstResult
- Pagination offsetmaxResults
- Pagination sizebriefRepresentation
- Only return basic information (only guaranteed to return id, username, created, first and last name,
email, enabled state, email verification state, federation link, and access.
Note that it means that namely user attributes, required actions, and not before are not returned.)Copyright © 2020 JBoss by Red Hat. All rights reserved.