public class GroupResource extends Object
Constructor and Description |
---|
GroupResource(RealmModel realm,
GroupModel group,
KeycloakSession session,
RealmAuth auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addChild(GroupRepresentation rep)
Set or create child.
|
void |
deleteGroup() |
GroupRepresentation |
getGroup() |
List<UserRepresentation> |
getMembers(Integer firstResult,
Integer maxResults)
Get users
Returns a list of users, filtered according to query parameters
|
RoleMapperResource |
getRoleMappings() |
void |
updateGroup(GroupRepresentation rep)
Update group, ignores subgroups.
|
static void |
updateGroup(GroupRepresentation rep,
GroupModel model) |
public GroupResource(RealmModel realm, GroupModel group, KeycloakSession session, RealmAuth auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public GroupRepresentation getGroup()
@PUT @Consumes(value="application/json") public void updateGroup(GroupRepresentation rep)
rep
- @DELETE public void deleteGroup()
@POST @Path(value="children") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response addChild(GroupRepresentation rep)
rep
- public static void updateGroup(GroupRepresentation rep, GroupModel model)
@Path(value="role-mappings") public RoleMapperResource getRoleMappings()
@GET @Path(value="members") @Produces(value="application/json") public List<UserRepresentation> getMembers(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
firstResult
- Pagination offsetmaxResults
- Pagination sizeCopyright © 2016 JBoss by Red Hat. All rights reserved.