Uses of Class
org.keycloak.representations.idm.GroupRepresentation
Package
Description
-
Uses of GroupRepresentation in org.keycloak.admin.client.resource
Modifier and TypeMethodDescriptionRealmResource.getGroupByPath
(String path) GroupResource.toRepresentation()
Does not expand hierarchy.Modifier and TypeMethodDescriptionRealmResource.getDefaultGroups()
RoleResource.getRoleGroupMembers()
Get role groupsRoleResource.getRoleGroupMembers
(Integer firstResult, Integer maxResults) Get role groupsGroupResource.getSubGroups
(Integer first, Integer max, Boolean briefRepresentation) Get the paginated list of subgroups belonging to this group.GroupResource.getSubGroups
(String search, Boolean exact, Integer first, Integer max, Boolean briefRepresentation) Get the paginated list of subgroups belonging to this group, filtered according to the specified parameters.GroupsResource.groups()
Get all groups.Get groups by pagination params.GroupsResource.groups
(String search, Boolean exact, Integer first, Integer max, boolean briefRepresentation) Get groups by pagination params.Get groups by pagination params.Get groups by pagination params.UserResource.groups()
UserResource.groups
(String search, Integer firstResult, Integer maxResults, boolean briefRepresentation) GroupsResource.query
(String searchQuery, boolean populateHierarchy, Integer first, Integer max, boolean briefRepresentation) Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
GroupsResource.add
(GroupRepresentation rep) create or add a top level realm groupSet or create child.jakarta.ws.rs.core.Response
GroupResource.subGroup
(GroupRepresentation rep) Set or create child.void
GroupResource.update
(GroupRepresentation rep) Update group -
Uses of GroupRepresentation in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic GroupRepresentation
ModelToRepresentation.groupToBriefRepresentation
(GroupModel g) static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full) Deprecated.static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full, String search) Deprecated.static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full, String search, Boolean exact) Deprecated.static GroupRepresentation
ModelToRepresentation.toRepresentation
(GroupModel group, boolean full) Modifier and TypeMethodDescriptionstatic Stream<GroupRepresentation>
ModelToRepresentation.toGroupHierarchy
(KeycloakSession session, RealmModel realm, boolean full) Deprecated.Modifier and TypeMethodDescriptionstatic void
RepresentationToModel.importGroup
(RealmModel realm, GroupModel parent, GroupRepresentation group) -
Uses of GroupRepresentation in org.keycloak.partialimport
Modifier and TypeMethodDescriptionGroupsPartialImport.getRepList
(PartialImportRepresentation partialImportRep) Modifier and TypeMethodDescriptionvoid
GroupsPartialImport.create
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) boolean
GroupsPartialImport.exists
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) GroupsPartialImport.existsMessage
(RealmModel realm, GroupRepresentation groupRep) GroupsPartialImport.getModelId
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) GroupsPartialImport.getName
(GroupRepresentation group) void
GroupsPartialImport.remove
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) -
Uses of GroupRepresentation in org.keycloak.representations.idm
Modifier and TypeFieldDescriptionprotected List<GroupRepresentation>
PartialImportRepresentation.groups
protected List<GroupRepresentation>
RealmRepresentation.groups
protected List<GroupRepresentation>
GroupRepresentation.subGroups
Modifier and TypeMethodDescriptionPartialImportRepresentation.getGroups()
RealmRepresentation.getGroups()
GroupRepresentation.getSubGroups()
Modifier and TypeMethodDescriptionvoid
PartialImportRepresentation.setGroups
(List<GroupRepresentation> groups) void
RealmRepresentation.setGroups
(List<GroupRepresentation> groups) void
GroupRepresentation.setSubGroups
(List<GroupRepresentation> subGroups) -
Uses of GroupRepresentation in org.keycloak.services.resources.account
Modifier and TypeMethodDescriptionAccountRestService.groupMemberships
(boolean briefRepresentation) -
Uses of GroupRepresentation in org.keycloak.services.resources.admin
Modifier and TypeMethodDescriptionGroupResource.getGroup()
RealmAdminResource.getGroupByPath
(String path) Modifier and TypeMethodDescriptionRealmAdminResource.getDefaultGroups()
Get group hierarchy.GroupsResource.getGroups
(String search, String searchQuery, Boolean exact, Integer firstResult, Integer maxResults, boolean briefRepresentation, boolean populateHierarchy) Get group hierarchy.RoleContainerResource.getGroupsInRole
(String roleName, Integer firstResult, Integer maxResults, boolean briefRepresentation) Returns a stream of groups that have the specified role nameGroupResource.getSubGroups
(String search, Boolean exact, Integer first, Integer max, Boolean briefRepresentation) UserResource.groupMembership
(String search, Integer firstResult, Integer maxResults, boolean briefRepresentation) Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
GroupResource.addChild
(GroupRepresentation rep) Set or create child.jakarta.ws.rs.core.Response
GroupsResource.addTopLevelGroup
(GroupRepresentation rep) create or add a top level realm groupSet or create child.jakarta.ws.rs.core.Response
GroupResource.updateGroup
(GroupRepresentation rep) Update group, ignores subgroups.static void
GroupResource.updateGroup
(GroupRepresentation rep, GroupModel model, RealmModel realm, KeycloakSession session) -
Uses of GroupRepresentation in org.keycloak.utils
Modifier and TypeMethodDescriptionstatic GroupRepresentation
GroupUtils.populateSubGroupCount
(GroupModel group, GroupRepresentation representation) This method's purpose is to look up the subgroup count of a Group and populate it on the representation.static GroupRepresentation
GroupUtils.toRepresentation
(GroupPermissionEvaluator groupsEvaluator, GroupModel groupTree, boolean full) Modifier and TypeMethodDescriptionstatic Stream<GroupRepresentation>
GroupUtils.populateGroupHierarchyFromSubGroups
(KeycloakSession session, RealmModel realm, Stream<GroupModel> groups, boolean full, GroupPermissionEvaluator groupEvaluator) This method takes the provided groups and attempts to load their parents all the way to the root group while maintaining the hierarchy data for each GroupRepresentation object.Modifier and TypeMethodDescriptionstatic GroupRepresentation
GroupUtils.populateSubGroupCount
(GroupModel group, GroupRepresentation representation) This method's purpose is to look up the subgroup count of a Group and populate it on the representation.