public class GroupsResource extends Object
Constructor and Description |
---|
GroupsResource(RealmModel realm,
KeycloakSession session,
RealmAuth auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addTopLevelGroup(GroupRepresentation rep)
create or add a top level realm groupSet or create child.
|
GroupResource |
getGroupById(String id)
Does not expand hierarchy.
|
List<GroupRepresentation> |
getGroups()
Get group hierarchy.
|
public GroupsResource(RealmModel realm, KeycloakSession session, RealmAuth auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public List<GroupRepresentation> getGroups()
@Path(value="{id}") public GroupResource getGroupById(@PathParam(value="id") String id)
id
- @POST @Consumes(value="application/json") public javax.ws.rs.core.Response addTopLevelGroup(GroupRepresentation rep)
rep
- Copyright © 2016 JBoss by Red Hat. All rights reserved.