public class GroupResource extends Object
Constructor and Description |
---|
GroupResource(RealmModel realm,
GroupModel group,
KeycloakSession session,
AdminPermissionEvaluator 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() |
ManagementPermissionReference |
getManagementPermissions()
Return object stating whether client Authorization permissions have been initialized or not and a reference
|
Stream<UserRepresentation> |
getMembers(Integer firstResult,
Integer maxResults,
Boolean briefRepresentation)
Get users
Returns a stream of users, filtered according to query parameters
|
RoleMapperResource |
getRoleMappings() |
ManagementPermissionReference |
setManagementPermissionsEnabled(ManagementPermissionReference ref)
Return object stating whether client Authorization permissions have been initialized or not and a reference
|
static ManagementPermissionReference |
toMgmtRef(GroupModel group,
AdminPermissionManagement permissions) |
javax.ws.rs.core.Response |
updateGroup(GroupRepresentation rep)
Update group, ignores subgroups.
|
static void |
updateGroup(GroupRepresentation rep,
GroupModel model) |
public GroupResource(RealmModel realm, GroupModel group, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public GroupRepresentation getGroup()
@PUT @Consumes(value="application/json") public javax.ws.rs.core.Response 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 Stream<UserRepresentation> getMembers(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults, @QueryParam(value="briefRepresentation") Boolean briefRepresentation)
firstResult
- Pagination offsetmaxResults
- Maximum results size (defaults to 100)briefRepresentation
- 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.)Stream
of users@Path(value="management/permissions") @GET @Produces(value="application/json") public ManagementPermissionReference getManagementPermissions()
public static ManagementPermissionReference toMgmtRef(GroupModel group, AdminPermissionManagement permissions)
@Path(value="management/permissions") @PUT @Produces(value="application/json") @Consumes(value="application/json") public ManagementPermissionReference setManagementPermissionsEnabled(ManagementPermissionReference ref)
Copyright © 2021 JBoss by Red Hat. All rights reserved.