Uses of Interface
org.keycloak.models.GroupModel
Packages that use GroupModel
Package
Description
-
Uses of GroupModel in org.keycloak.federation.kerberos
Methods in org.keycloak.federation.kerberos with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
KerberosFederationProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.federation.sssd
Methods in org.keycloak.federation.sssd with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
SSSDFederationProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.models
Fields in org.keycloak.models with type parameters of type GroupModelModifier and TypeFieldDescriptionstatic final SearchableModelField<GroupModel>
GroupModel.SearchableFields.ASSIGNED_ROLE
Field for comparison with roles granted to this group.static final SearchableModelField<GroupModel>
GroupModel.SearchableFields.ATTRIBUTE
Search for attribute value.static final Comparator<GroupModel>
GroupModel.COMPARE_BY_NAME
static final SearchableModelField<GroupModel>
GroupModel.SearchableFields.ID
static final SearchableModelField<GroupModel>
GroupModel.SearchableFields.NAME
static final SearchableModelField<GroupModel>
GroupModel.SearchableFields.PARENT_ID
Parent group IDstatic final SearchableModelField<GroupModel>
GroupModel.SearchableFields.REALM_ID
Methods in org.keycloak.models that return GroupModelModifier and TypeMethodDescriptiondefault GroupModel
GroupProvider.createGroup
(RealmModel realm, String name) Creates a new group with the given name in the given realm.default GroupModel
GroupProvider.createGroup
(RealmModel realm, String id, String name) Creates a new group with the given id and name in the given realm.GroupProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) Creates a new group with the given name, id, name and parent to the given realm.default GroupModel
GroupProvider.createGroup
(RealmModel realm, String name, GroupModel toParent) Creates a new group with the given name and parent to the given realm.default GroupModel
RealmModel.createGroup
(String name) default GroupModel
RealmModel.createGroup
(String id, String name) RealmModel.createGroup
(String id, String name, GroupModel toParent) default GroupModel
RealmModel.createGroup
(String name, GroupModel toParent) GroupModel.GroupRemovedEvent.getGroup()
RealmModel.getGroupById
(String id) GroupModel.getParent()
Methods in org.keycloak.models that return types with arguments of type GroupModelModifier and TypeMethodDescriptionRealmModel.getDefaultGroupsStream()
Returns default groups as a stream.GroupProvider.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) Returns groups with the given role in the given realm.GroupProvider.getGroupsStream
(RealmModel realm) Returns groups for the given realm.default Stream<GroupModel>
GroupProvider.getGroupsStream
(RealmModel realm, Stream<String> ids) Returns a stream of groups with given ids.default Stream<GroupModel>
GroupProvider.getGroupsStream
(RealmModel realm, Stream<String> ids, Integer first, Integer max) Returns a paginated stream of groups with given ids.GroupProvider.getGroupsStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) Returns a paginated stream of groups with given ids and given search value in group names.RealmModel.getGroupsStream()
Returns groups as a stream.UserModel.getGroupsStream()
Obtains the groups associated with the user.default Stream<GroupModel>
UserModel.getGroupsStream
(String search, Integer first, Integer max) Returns a paginated stream of groups within this realm with search in the nameGroupModel.getSubGroupsStream()
Returns all sub groups for the parent group as a stream.GroupProvider.getTopLevelGroupsStream
(RealmModel realm) Returns all top level groups (i.e.GroupProvider.getTopLevelGroupsStream
(RealmModel realm, Integer firstResult, Integer maxResults) Returns top level groups (i.e.RealmModel.getTopLevelGroupsStream()
Returns top level groups as a stream.RealmModel.getTopLevelGroupsStream
(Integer first, Integer max) Returns top level groups as a stream.Methods in org.keycloak.models with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
GroupModel.addChild
(GroupModel subGroup) Automatically calls setParent() on the subGroupvoid
RealmModel.addDefaultGroup
(GroupModel group) void
GroupProvider.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) Removes parent group for the given group in the given realm.GroupProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) Creates a new group with the given name, id, name and parent to the given realm.default GroupModel
GroupProvider.createGroup
(RealmModel realm, String name, GroupModel toParent) Creates a new group with the given name and parent to the given realm.RealmModel.createGroup
(String id, String name, GroupModel toParent) default GroupModel
RealmModel.createGroup
(String name, GroupModel toParent) boolean
UserModel.isMemberOf
(GroupModel group) void
UserModel.joinGroup
(GroupModel group) void
UserModel.leaveGroup
(GroupModel group) void
GroupProvider.moveGroup
(RealmModel realm, GroupModel group, GroupModel toParent) This method is used for moving groups in group structure, for example: making an existing child group child group of some other group, setting a top level group (i.e.void
RealmModel.moveGroup
(GroupModel group, GroupModel toParent) void
UserProvider.preRemove
(RealmModel realm, GroupModel group) Called when a group is removed.void
GroupModel.removeChild
(GroupModel subGroup) Automatically calls setParent() on the subGroupvoid
RealmModel.removeDefaultGroup
(GroupModel group) boolean
GroupProvider.removeGroup
(RealmModel realm, GroupModel group) Removes the given group for the given realm.boolean
RealmModel.removeGroup
(GroupModel group) void
GroupModel.setParent
(GroupModel group) You must also call addChild on the parent group, addChild on RealmModel if there is no parent group -
Uses of GroupModel in org.keycloak.models.cache.infinispan
Classes in org.keycloak.models.cache.infinispan that implement GroupModelFields in org.keycloak.models.cache.infinispan declared as GroupModelMethods in org.keycloak.models.cache.infinispan that return GroupModelModifier and TypeMethodDescriptionRealmAdapter.createGroup
(String id, String name, GroupModel toParent) RealmCacheSession.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) RealmAdapter.getGroupById
(String id) RealmCacheSession.getGroupById
(RealmModel realm, String id) RealmCacheSession.getGroupByName
(RealmModel realm, GroupModel parent, String name) GroupAdapter.getParent()
Methods in org.keycloak.models.cache.infinispan that return types with arguments of type GroupModelModifier and TypeMethodDescriptionRealmAdapter.getDefaultGroupsStream()
RealmCacheSession.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) RealmAdapter.getGroupsStream()
RealmCacheSession.getGroupsStream
(RealmModel realm) RealmCacheSession.getGroupsStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) UserAdapter.getGroupsStream()
GroupAdapter.getSubGroupsStream()
RealmAdapter.getTopLevelGroupsStream()
RealmAdapter.getTopLevelGroupsStream
(Integer first, Integer max) RealmCacheSession.getTopLevelGroupsStream
(RealmModel realm) RealmCacheSession.getTopLevelGroupsStream
(RealmModel realm, Integer first, Integer max) RealmCacheSession.searchForGroupByNameStream
(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults) RealmCacheSession.searchForGroupByNameStream
(RealmModel realm, String search, Integer first, Integer max) RealmCacheSession.searchGroupsByAttributes
(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) Methods in org.keycloak.models.cache.infinispan with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
GroupAdapter.addChild
(GroupModel subGroup) void
RealmAdapter.addDefaultGroup
(GroupModel group) void
RealmCacheSession.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) RealmAdapter.createGroup
(String id, String name, GroupModel toParent) RealmCacheSession.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) RealmCacheSession.getGroupByName
(RealmModel realm, GroupModel parent, String name) UserCacheSession.getGroupMembersStream
(RealmModel realm, GroupModel group) UserCacheSession.getGroupMembersStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) boolean
UserAdapter.isMemberOf
(GroupModel group) void
UserAdapter.joinGroup
(GroupModel group) void
UserAdapter.leaveGroup
(GroupModel group) void
RealmAdapter.moveGroup
(GroupModel group, GroupModel toParent) void
RealmCacheSession.moveGroup
(RealmModel realm, GroupModel group, GroupModel toParent) void
UserCacheSession.preRemove
(RealmModel realm, GroupModel group) void
GroupAdapter.removeChild
(GroupModel subGroup) void
RealmAdapter.removeDefaultGroup
(GroupModel group) boolean
RealmAdapter.removeGroup
(GroupModel group) boolean
RealmCacheSession.removeGroup
(RealmModel realm, GroupModel group) void
GroupAdapter.setParent
(GroupModel group) -
Uses of GroupModel in org.keycloak.models.cache.infinispan.entities
Method parameters in org.keycloak.models.cache.infinispan.entities with type arguments of type GroupModelModifier and TypeMethodDescriptionCachedGroup.getAttributes
(Supplier<GroupModel> group) CachedGroup.getRoleMappings
(Supplier<GroupModel> group) CachedGroup.getSubGroups
(Supplier<GroupModel> group) Constructors in org.keycloak.models.cache.infinispan.entities with parameters of type GroupModel -
Uses of GroupModel in org.keycloak.models.cache.infinispan.events
Methods in org.keycloak.models.cache.infinispan.events with parameters of type GroupModelModifier and TypeMethodDescriptionstatic GroupMovedEvent
GroupMovedEvent.create
(GroupModel group, GroupModel toParent, String realmId) static GroupRemovedEvent
GroupRemovedEvent.create
(GroupModel group, String realmId) -
Uses of GroupModel in org.keycloak.models.jpa
Classes in org.keycloak.models.jpa that implement GroupModelMethods in org.keycloak.models.jpa that return GroupModelModifier and TypeMethodDescriptionJpaRealmProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) RealmAdapter.createGroup
(String id, String name, GroupModel toParent) JpaRealmProvider.getGroupById
(RealmModel realm, String id) RealmAdapter.getGroupById
(String id) JpaRealmProvider.getGroupByName
(RealmModel realm, GroupModel parent, String name) GroupAdapter.getParent()
Methods in org.keycloak.models.jpa that return types with arguments of type GroupModelModifier and TypeMethodDescriptionRealmAdapter.getDefaultGroupsStream()
JpaRealmProvider.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) JpaRealmProvider.getGroupsStream
(RealmModel realm) JpaRealmProvider.getGroupsStream
(RealmModel realm, Stream<String> ids) JpaRealmProvider.getGroupsStream
(RealmModel realm, Stream<String> ids, Integer first, Integer max) JpaRealmProvider.getGroupsStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) RealmAdapter.getGroupsStream()
UserAdapter.getGroupsStream()
UserAdapter.getGroupsStream
(String search, Integer first, Integer max) GroupAdapter.getSubGroupsStream()
JpaRealmProvider.getTopLevelGroupsStream
(RealmModel realm) JpaRealmProvider.getTopLevelGroupsStream
(RealmModel realm, Integer first, Integer max) RealmAdapter.getTopLevelGroupsStream()
RealmAdapter.getTopLevelGroupsStream
(Integer first, Integer max) JpaRealmProvider.searchForGroupByNameStream
(RealmModel realm, String search, Boolean exact, Integer first, Integer max) JpaRealmProvider.searchGroupsByAttributes
(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) Methods in org.keycloak.models.jpa with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
GroupAdapter.addChild
(GroupModel subGroup) void
RealmAdapter.addDefaultGroup
(GroupModel group) void
JpaRealmProvider.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) JpaRealmProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) RealmAdapter.createGroup
(String id, String name, GroupModel toParent) JpaRealmProvider.getGroupByName
(RealmModel realm, GroupModel parent, String name) JpaUserProvider.getGroupMembersStream
(RealmModel realm, GroupModel group) JpaUserProvider.getGroupMembersStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) protected jakarta.persistence.TypedQuery<UserGroupMembershipEntity>
UserAdapter.getUserGroupMappingQuery
(GroupModel group) boolean
UserAdapter.isMemberOf
(GroupModel group) void
UserAdapter.joinGroup
(GroupModel group) protected void
UserAdapter.joinGroupImpl
(GroupModel group) void
UserAdapter.leaveGroup
(GroupModel group) void
JpaRealmProvider.moveGroup
(RealmModel realm, GroupModel group, GroupModel toParent) void
RealmAdapter.moveGroup
(GroupModel group, GroupModel toParent) void
JpaUserProvider.preRemove
(RealmModel realm, GroupModel group) void
GroupAdapter.removeChild
(GroupModel subGroup) void
RealmAdapter.removeDefaultGroup
(GroupModel group) boolean
JpaRealmProvider.removeGroup
(RealmModel realm, GroupModel group) boolean
RealmAdapter.removeGroup
(GroupModel group) void
GroupAdapter.setParent
(GroupModel parent) static GroupEntity
GroupAdapter.toEntity
(GroupModel model, jakarta.persistence.EntityManager em) -
Uses of GroupModel in org.keycloak.models.map.group
Classes in org.keycloak.models.map.group that implement GroupModelMethods in org.keycloak.models.map.group that return GroupModelModifier and TypeMethodDescriptionMapGroupProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) MapGroupProvider.getGroupById
(RealmModel realm, String id) MapGroupProvider.getGroupByName
(RealmModel realm, GroupModel parent, String name) MapGroupAdapter.getParent()
Methods in org.keycloak.models.map.group that return types with arguments of type GroupModelModifier and TypeMethodDescriptionMapGroupProvider.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) MapGroupProvider.getGroupsStream
(RealmModel realm) MapGroupProvider.getGroupsStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) MapGroupProvider.getTopLevelGroupsStream
(RealmModel realm) MapGroupProvider.getTopLevelGroupsStream
(RealmModel realm, Integer firstResult, Integer maxResults) MapGroupProvider.searchForGroupByNameStream
(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults) MapGroupProvider.searchGroupsByAttributes
(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) Methods in org.keycloak.models.map.group with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
MapGroupAdapter.addChild
(GroupModel subGroup) void
MapGroupProvider.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) MapGroupProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) MapGroupProvider.getGroupByName
(RealmModel realm, GroupModel parent, String name) void
MapGroupProvider.moveGroup
(RealmModel realm, GroupModel group, GroupModel toParent) void
MapGroupAdapter.removeChild
(GroupModel subGroup) boolean
MapGroupProvider.removeGroup
(RealmModel realm, GroupModel group) void
MapGroupAdapter.setParent
(GroupModel group) Constructor parameters in org.keycloak.models.map.group with type arguments of type GroupModelModifierConstructorDescriptionMapGroupProvider
(KeycloakSession session, MapStorage<MapGroupEntity, GroupModel> groupStore) -
Uses of GroupModel in org.keycloak.models.map.realm
Methods in org.keycloak.models.map.realm that return GroupModelModifier and TypeMethodDescriptionMapRealmAdapter.createGroup
(String id, String name, GroupModel toParent) MapRealmAdapter.getGroupById
(String id) Methods in org.keycloak.models.map.realm that return types with arguments of type GroupModelModifier and TypeMethodDescriptionMapRealmAdapter.getDefaultGroupsStream()
MapRealmAdapter.getGroupsStream()
MapRealmAdapter.getTopLevelGroupsStream()
MapRealmAdapter.getTopLevelGroupsStream
(Integer first, Integer max) Methods in org.keycloak.models.map.realm with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
MapRealmAdapter.addDefaultGroup
(GroupModel group) MapRealmAdapter.createGroup
(String id, String name, GroupModel toParent) void
MapRealmAdapter.moveGroup
(GroupModel group, GroupModel toParent) void
MapRealmAdapter.removeDefaultGroup
(GroupModel group) boolean
MapRealmAdapter.removeGroup
(GroupModel group) -
Uses of GroupModel in org.keycloak.models.map.storage.chm
Fields in org.keycloak.models.map.storage.chm with type parameters of type GroupModelModifier and TypeFieldDescriptionstatic final Map<SearchableModelField<GroupModel>,
MapModelCriteriaBuilder.UpdatePredicatesFunc<Object, MapGroupEntity, GroupModel>> MapFieldPredicates.GROUP_PREDICATES
static final Map<SearchableModelField<GroupModel>,
MapModelCriteriaBuilder.UpdatePredicatesFunc<Object, MapGroupEntity, GroupModel>> MapFieldPredicates.GROUP_PREDICATES
-
Uses of GroupModel in org.keycloak.models.map.storage.jpa.group
Method parameters in org.keycloak.models.map.storage.jpa.group with type arguments of type GroupModelModifier and TypeMethodDescriptionJpaGroupModelCriteriaBuilder.compare
(SearchableModelField<? super GroupModel> modelField, ModelCriteriaBuilder.Operator op, Object... value) -
Uses of GroupModel in org.keycloak.models.map.user
Methods in org.keycloak.models.map.user that return types with arguments of type GroupModelMethods in org.keycloak.models.map.user with parameters of type GroupModelModifier and TypeMethodDescriptionMapUserProvider.getGroupMembersStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) boolean
MapUserAdapter.isMemberOf
(GroupModel group) void
MapUserAdapter.joinGroup
(GroupModel group) void
MapUserAdapter.leaveGroup
(GroupModel group) void
MapUserProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.models.utils
Methods in org.keycloak.models.utils that return GroupModelModifier and TypeMethodDescriptionstatic GroupModel
KeycloakModelUtils.findGroupByPath
(GroupProvider groupProvider, RealmModel realm, String path) static GroupModel
KeycloakModelUtils.findGroupByPath
(RealmModel realm, String path) Deprecated.Methods in org.keycloak.models.utils that return types with arguments of type GroupModelModifier and TypeMethodDescriptionUserModelDelegate.getGroupsStream()
static Stream<GroupModel>
ModelToRepresentation.searchForGroupModelByName
(KeycloakSession session, RealmModel realm, boolean full, String search, Boolean exact, Integer first, Integer max) static Stream<GroupModel>
ModelToRepresentation.searchGroupModelsByAttributes
(KeycloakSession session, RealmModel realm, boolean full, boolean populateHierarchy, Map<String, String> attributes, Integer first, Integer max) static Stream<GroupModel>
ModelToRepresentation.toGroupModelHierarchy
(RealmModel realm, boolean full, Integer first, Integer max) Methods in org.keycloak.models.utils with parameters of type GroupModelModifier and TypeMethodDescriptionstatic String
KeycloakModelUtils.buildGroupPath
(GroupModel group) static String
KeycloakModelUtils.buildGroupPath
(GroupModel group, GroupModel otherParentGroup) static String
ModelToRepresentation.buildGroupPath
(GroupModel group) static GroupRepresentation
ModelToRepresentation.groupToBriefRepresentation
(GroupModel g) static boolean
RoleUtils.hasRoleFromGroup
(GroupModel group, RoleModel targetRole, boolean checkParentGroup) Checks whether thetargetRole
is contained in the given group or its parents (if requested)static void
RepresentationToModel.importGroup
(RealmModel realm, GroupModel parent, GroupRepresentation group) static boolean
RoleUtils.isDirectMember
(Stream<GroupModel> groups, GroupModel targetGroup) static boolean
RoleUtils.isMember
(Stream<GroupModel> groups, GroupModel targetGroup) boolean
UserModelDelegate.isMemberOf
(GroupModel group) void
ReadOnlyUserModelDelegate.joinGroup
(GroupModel group) void
UserModelDelegate.joinGroup
(GroupModel group) void
ReadOnlyUserModelDelegate.leaveGroup
(GroupModel group) void
UserModelDelegate.leaveGroup
(GroupModel group) static Collection<String>
KeycloakModelUtils.resolveAttribute
(GroupModel group, String name, boolean aggregateAttrs) static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full) static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full, String search) Deprecated.static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full, String search, Boolean exact) static GroupRepresentation
ModelToRepresentation.toGroupHierarchy
(GroupModel group, boolean full, Map<String, String> attributes) static GroupRepresentation
ModelToRepresentation.toRepresentation
(GroupModel group, boolean full) Method parameters in org.keycloak.models.utils with type arguments of type GroupModelModifier and TypeMethodDescriptionstatic boolean
RoleUtils.hasRoleFromGroup
(Stream<GroupModel> groups, RoleModel targetRole, boolean checkParentGroup) Checks whether thetargetRole
is contained in any of thegroups
or their parents (if requested)static boolean
RoleUtils.isDirectMember
(Stream<GroupModel> groups, GroupModel targetGroup) static boolean
RoleUtils.isMember
(Stream<GroupModel> groups, GroupModel targetGroup) -
Uses of GroupModel in org.keycloak.protocol.saml.mappers
Methods in org.keycloak.protocol.saml.mappers with parameters of type GroupModelModifier and TypeMethodDescriptionSAMLGroupNameMapper.mapName
(ProtocolMapperModel model, GroupModel group) -
Uses of GroupModel in org.keycloak.services.resources.admin
Methods in org.keycloak.services.resources.admin with parameters of type GroupModelModifier and TypeMethodDescriptionGroupResource.toMgmtRef
(GroupModel group, AdminPermissionManagement permissions) static void
GroupResource.updateGroup
(GroupRepresentation rep, GroupModel model, RealmModel realm, KeycloakSession session) Constructors in org.keycloak.services.resources.admin with parameters of type GroupModelModifierConstructorDescriptionGroupResource
(RealmModel realm, GroupModel group, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Uses of GroupModel in org.keycloak.services.resources.admin.permissions
Methods in org.keycloak.services.resources.admin.permissions with parameters of type GroupModelModifier and TypeMethodDescriptionboolean
GroupPermissionEvaluator.canManage
(GroupModel group) boolean
GroupPermissionEvaluator.canManageMembers
(GroupModel group) boolean
GroupPermissionEvaluator.canManageMembership
(GroupModel group) boolean
GroupPermissionEvaluator.canView
(GroupModel group) boolean
GroupPermissionEvaluator.canViewMembers
(GroupModel group) GroupPermissionEvaluator.getAccess
(GroupModel group) boolean
GroupPermissionEvaluator.getGroupsWithViewPermission
(GroupModel group) GroupPermissionManagement.getPermissions
(GroupModel group) boolean
GroupPermissionManagement.isPermissionsEnabled
(GroupModel group) GroupPermissionManagement.manageMembershipPermission
(GroupModel group) GroupPermissionManagement.manageMembersPermission
(GroupModel group) GroupPermissionManagement.managePermission
(GroupModel group) void
GroupPermissionEvaluator.requireManage
(GroupModel group) void
GroupPermissionEvaluator.requireManageMembers
(GroupModel group) void
GroupPermissionEvaluator.requireManageMembership
(GroupModel group) void
GroupPermissionEvaluator.requireView
(GroupModel group) void
GroupPermissionEvaluator.requireViewMembers
(GroupModel group) GroupPermissionManagement.resource
(GroupModel group) void
GroupPermissionManagement.setPermissionsEnabled
(GroupModel group, boolean enable) GroupPermissionManagement.viewMembersPermission
(GroupModel group) GroupPermissionManagement.viewPermission
(GroupModel group) -
Uses of GroupModel in org.keycloak.storage
Methods in org.keycloak.storage that return GroupModelModifier and TypeMethodDescriptionGroupStorageManager.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) GroupStorageManager.getGroupById
(RealmModel realm, String id) GroupStorageManager.getGroupByName
(RealmModel realm, GroupModel parent, String name) Methods in org.keycloak.storage that return types with arguments of type GroupModelModifier and TypeMethodDescriptionGroupStorageManager.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) GroupStorageManager.getGroupsStream
(RealmModel realm) GroupStorageManager.getGroupsStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) GroupStorageManager.getTopLevelGroupsStream
(RealmModel realm) GroupStorageManager.getTopLevelGroupsStream
(RealmModel realm, Integer firstResult, Integer maxResults) GroupStorageManager.searchForGroupByNameStream
(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults) Obtaining groups from an external client storage is time-bounded.GroupStorageManager.searchGroupsByAttributes
(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) Methods in org.keycloak.storage with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
GroupStorageManager.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) GroupStorageManager.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) GroupStorageManager.getGroupByName
(RealmModel realm, GroupModel parent, String name) UserStorageManager.getGroupMembersStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) UserLookupProvider
methods implementations end hereUserQueryProvider
methods implementation start herevoid
GroupStorageManager.moveGroup
(RealmModel realm, GroupModel group, GroupModel toParent) void
UserStorageManager.preRemove
(RealmModel realm, GroupModel group) default void
UserStorageProvider.preRemove
(RealmModel realm, GroupModel group) Callback when a group is removed.boolean
GroupStorageManager.removeGroup
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.storage.adapter
Methods in org.keycloak.storage.adapter that return types with arguments of type GroupModelModifier and TypeMethodDescriptionAbstractUserAdapter.getGroups()
Deprecated.UseAbstractUserAdapter.getGroupsStream()
insteadAbstractUserAdapter.Streams.getGroups()
protected Set<GroupModel>
AbstractUserAdapter.getGroupsInternal()
Get group membership mappings that are managed by this storage providerprotected Set<GroupModel>
AbstractUserAdapterFederatedStorage.getGroupsInternal()
Get group membership mappings that are managed by this storage providerAbstractUserAdapter.getGroupsStream()
AbstractUserAdapter.Streams.getGroupsStream()
AbstractUserAdapterFederatedStorage.getGroupsStream()
Gets groups from federated storage and automatically appends default groups of realm.InMemoryUserAdapter.getGroupsStream()
Methods in org.keycloak.storage.adapter with parameters of type GroupModelModifier and TypeMethodDescriptionboolean
AbstractUserAdapter.isMemberOf
(GroupModel group) boolean
AbstractUserAdapter.Streams.isMemberOf
(GroupModel group) boolean
AbstractUserAdapterFederatedStorage.isMemberOf
(GroupModel group) boolean
InMemoryUserAdapter.isMemberOf
(GroupModel group) void
AbstractUserAdapter.joinGroup
(GroupModel group) void
AbstractUserAdapterFederatedStorage.joinGroup
(GroupModel group) void
InMemoryUserAdapter.joinGroup
(GroupModel group) void
UpdateOnlyChangeUserModelDelegate.joinGroup
(GroupModel group) void
AbstractUserAdapter.leaveGroup
(GroupModel group) void
AbstractUserAdapterFederatedStorage.leaveGroup
(GroupModel group) void
InMemoryUserAdapter.leaveGroup
(GroupModel group) void
UpdateOnlyChangeUserModelDelegate.leaveGroup
(GroupModel group) -
Uses of GroupModel in org.keycloak.storage.client
Methods in org.keycloak.storage.client with parameters of type GroupModelModifier and TypeMethodDescriptiondefault void
ClientStorageProvider.preRemove
(RealmModel realm, GroupModel group) Callback when a group is removed. -
Uses of GroupModel in org.keycloak.storage.federated
Methods in org.keycloak.storage.federated that return types with arguments of type GroupModelModifier and TypeMethodDescriptionUserGroupMembershipFederatedStorage.getGroupsStream
(RealmModel realm, String userId) Obtains the groups associated with the federated user.Methods in org.keycloak.storage.federated with parameters of type GroupModelModifier and TypeMethodDescriptionUserGroupMembershipFederatedStorage.getMembershipStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer max) Obtains the federated users that are members of the givengroup
in the specifiedrealm
.void
UserGroupMembershipFederatedStorage.joinGroup
(RealmModel realm, String userId, GroupModel group) void
UserGroupMembershipFederatedStorage.leaveGroup
(RealmModel realm, String userId, GroupModel group) void
UserFederatedStorageProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.storage.group
Methods in org.keycloak.storage.group that return GroupModelModifier and TypeMethodDescriptionGroupLookupProvider.getGroupById
(RealmModel realm, String id) Returns a group from the given realm with the corresponding iddefault GroupModel
GroupLookupProvider.getGroupByName
(RealmModel realm, GroupModel parent, String name) Returns a group from the given realm with the corresponding name and parentMethods in org.keycloak.storage.group that return types with arguments of type GroupModelModifier and TypeMethodDescriptionGroupLookupProvider.searchForGroupByNameStream
(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults) Returns the group hierarchy with the given string in name for the given realm.default Stream<GroupModel>
GroupLookupProvider.searchForGroupByNameStream
(RealmModel realm, String search, Integer firstResult, Integer maxResults) Deprecated.GroupLookupProvider.searchGroupsByAttributes
(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) Returns the groups filtered by attribute names and attribute values for the given realm.Methods in org.keycloak.storage.group with parameters of type GroupModelModifier and TypeMethodDescriptiondefault GroupModel
GroupLookupProvider.getGroupByName
(RealmModel realm, GroupModel parent, String name) Returns a group from the given realm with the corresponding name and parent -
Uses of GroupModel in org.keycloak.storage.jpa
Methods in org.keycloak.storage.jpa that return types with arguments of type GroupModelModifier and TypeMethodDescriptionJpaUserFederatedStorageProvider.getGroupsStream
(RealmModel realm, String userId) Methods in org.keycloak.storage.jpa with parameters of type GroupModelModifier and TypeMethodDescriptionJpaUserFederatedStorageProvider.getMembershipStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer max) void
JpaUserFederatedStorageProvider.joinGroup
(RealmModel realm, String userId, GroupModel group) void
JpaUserFederatedStorageProvider.leaveGroup
(RealmModel realm, String userId, GroupModel group) void
JpaUserFederatedStorageProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.storage.ldap
Methods in org.keycloak.storage.ldap with parameters of type GroupModelModifier and TypeMethodDescriptionLDAPStorageProvider.getGroupMembersStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) void
LDAPStorageProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.storage.ldap.mappers
Methods in org.keycloak.storage.ldap.mappers with parameters of type GroupModelModifier and TypeMethodDescriptionAbstractLDAPStorageMapper.getGroupMembers
(RealmModel realm, GroupModel group, int firstResult, int maxResults) LDAPStorageMapper.getGroupMembers
(RealmModel realm, GroupModel group, int firstResult, int maxResults) Return empty list if doesn't support storing of groups -
Uses of GroupModel in org.keycloak.storage.ldap.mappers.membership.group
Methods in org.keycloak.storage.ldap.mappers.membership.group that return GroupModelModifier and TypeMethodDescriptionprotected GroupModel
GroupLDAPStorageMapper.createKcGroup
(RealmModel realm, String ldapGroupName, GroupModel parentGroup) Creates a new KC group from given LDAP group name in given KC parent group or the groups path.protected GroupModel
GroupLDAPStorageMapper.findKcGroupByLDAPGroup
(RealmModel realm, GroupModel parent, LDAPObject ldapGroup) protected GroupModel
GroupLDAPStorageMapper.findKcGroupOrSyncFromLDAP
(RealmModel realm, GroupModel parent, LDAPObject ldapGroup, UserModel user) protected GroupModel
GroupLDAPStorageMapper.getKcGroupsPathGroup
(RealmModel realm) Provides KC group defined as groups path or null (top-level group) if corresponding group is not available.Methods in org.keycloak.storage.ldap.mappers.membership.group that return types with arguments of type GroupModelModifier and TypeMethodDescriptionprotected Stream<GroupModel>
GroupLDAPStorageMapper.getAllKcGroups
(RealmModel realm, GroupModel topParentGroup) Provides a stream of all KC groups (with their sub groups) from groups path configured by the "Groups Path" configuration property.GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate.getGroupsStream()
protected Stream<GroupModel>
GroupLDAPStorageMapper.getKcSubGroups
(RealmModel realm, GroupModel parentGroup) Provides a list of all KC sub groups from given parent group or from groups path.protected Stream<GroupModel>
GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate.getLDAPGroupMappingsConverted()
Methods in org.keycloak.storage.ldap.mappers.membership.group with parameters of type GroupModelModifier and TypeMethodDescriptionvoid
GroupLDAPStorageMapper.addGroupMappingInLDAP
(RealmModel realm, GroupModel kcGroup, LDAPObject ldapUser) protected GroupModel
GroupLDAPStorageMapper.createKcGroup
(RealmModel realm, String ldapGroupName, GroupModel parentGroup) Creates a new KC group from given LDAP group name in given KC parent group or the groups path.protected GroupModel
GroupLDAPStorageMapper.findKcGroupByLDAPGroup
(RealmModel realm, GroupModel parent, LDAPObject ldapGroup) protected GroupModel
GroupLDAPStorageMapper.findKcGroupOrSyncFromLDAP
(RealmModel realm, GroupModel parent, LDAPObject ldapGroup, UserModel user) protected Stream<GroupModel>
GroupLDAPStorageMapper.getAllKcGroups
(RealmModel realm, GroupModel topParentGroup) Provides a stream of all KC groups (with their sub groups) from groups path configured by the "Groups Path" configuration property.GroupLDAPStorageMapper.getGroupMembers
(RealmModel realm, GroupModel kcGroup, int firstResult, int maxResults) protected Stream<GroupModel>
GroupLDAPStorageMapper.getKcSubGroups
(RealmModel realm, GroupModel parentGroup) Provides a list of all KC sub groups from given parent group or from groups path.boolean
GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate.isMemberOf
(GroupModel group) void
GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate.joinGroup
(GroupModel group) void
GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate.leaveGroup
(GroupModel group) -
Uses of GroupModel in org.keycloak.storage.user
Methods in org.keycloak.storage.user with parameters of type GroupModelModifier and TypeMethodDescriptionUserQueryMethodsProvider.getGroupMembersStream
(RealmModel realm, GroupModel group) Obtains users that belong to a specific group.UserQueryMethodsProvider.getGroupMembersStream
(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults) Obtains users that belong to a specific group. -
Uses of GroupModel in org.keycloak.utils
Methods in org.keycloak.utils with parameters of type GroupModelModifier and TypeMethodDescriptionstatic GroupRepresentation
GroupUtils.toGroupHierarchy
(GroupPermissionEvaluator groupsEvaluator, GroupModel group, String search, boolean exact, boolean lazy) static GroupRepresentation
GroupUtils.toGroupHierarchy
(GroupPermissionEvaluator groupsEvaluator, GroupModel group, String search, boolean exact, boolean full, boolean lazy)
KeycloakModelUtils.findGroupByPath(GroupProvider, RealmModel, String)
instead