Uses of Interface
org.keycloak.models.GroupModel
Package
Description
-
Uses of GroupModel in org.keycloak.federation.kerberos
Modifier and TypeMethodDescriptionvoid
KerberosFederationProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.federation.sssd
Modifier and TypeMethodDescriptionvoid
SSSDFederationProvider.preRemove
(RealmModel realm, GroupModel group) -
Uses of GroupModel in org.keycloak.models
Modifier 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
Modifier 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()
Modifier 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.Modifier 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
Modifier 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) GroupAdapter.getParent()
Modifier 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) Modifier 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) 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
Modifier and TypeMethodDescriptionCachedGroup.getAttributes
(Supplier<GroupModel> group) CachedGroup.getRoleMappings
(Supplier<GroupModel> group) CachedGroup.getSubGroups
(Supplier<GroupModel> group) -
Uses of GroupModel in org.keycloak.models.cache.infinispan.events
Modifier 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
Modifier 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) GroupAdapter.getParent()
Modifier 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) Modifier 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) 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
Modifier and TypeMethodDescriptionMapGroupProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) MapGroupProvider.getGroupById
(RealmModel realm, String id) MapGroupAdapter.getParent()
Modifier 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) Modifier and TypeMethodDescriptionvoid
MapGroupAdapter.addChild
(GroupModel subGroup) void
MapGroupProvider.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) MapGroupProvider.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) 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) ModifierConstructorDescriptionMapGroupProvider
(KeycloakSession session, MapStorage<MapGroupEntity, GroupModel> groupStore) -
Uses of GroupModel in org.keycloak.models.map.realm
Modifier and TypeMethodDescriptionMapRealmAdapter.createGroup
(String id, String name, GroupModel toParent) MapRealmAdapter.getGroupById
(String id) Modifier and TypeMethodDescriptionMapRealmAdapter.getDefaultGroupsStream()
MapRealmAdapter.getGroupsStream()
MapRealmAdapter.getTopLevelGroupsStream()
MapRealmAdapter.getTopLevelGroupsStream
(Integer first, Integer max) Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionJpaGroupModelCriteriaBuilder.compare
(SearchableModelField<? super GroupModel> modelField, ModelCriteriaBuilder.Operator op, Object... value) -
Uses of GroupModel in org.keycloak.models.map.user
Modifier 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
Modifier and TypeMethodDescriptionstatic GroupModel
KeycloakModelUtils.findGroupByPath
(RealmModel realm, String path) Modifier 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) Modifier 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) Modifier 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
Modifier and TypeMethodDescriptionSAMLGroupNameMapper.mapName
(ProtocolMapperModel model, GroupModel group) -
Uses of GroupModel in org.keycloak.services.resources.admin
Modifier and TypeMethodDescriptionGroupResource.toMgmtRef
(GroupModel group, AdminPermissionManagement permissions) static void
GroupResource.updateGroup
(GroupRepresentation rep, GroupModel model, RealmModel realm, KeycloakSession session) ModifierConstructorDescriptionGroupResource
(RealmModel realm, GroupModel group, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Uses of GroupModel in org.keycloak.services.resources.admin.permissions
Modifier 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
Modifier and TypeMethodDescriptionGroupStorageManager.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) GroupStorageManager.getGroupById
(RealmModel realm, String id) Modifier 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) Modifier and TypeMethodDescriptionvoid
GroupStorageManager.addTopLevelGroup
(RealmModel realm, GroupModel subGroup) GroupStorageManager.createGroup
(RealmModel realm, String id, String name, GroupModel toParent) 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
Modifier and TypeMethodDescriptionAbstractUserAdapter.getGroups()
Deprecated.AbstractUserAdapter.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()
Modifier 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
Modifier and TypeMethodDescriptiondefault void
ClientStorageProvider.preRemove
(RealmModel realm, GroupModel group) Callback when a group is removed. -
Uses of GroupModel in org.keycloak.storage.federated
Modifier and TypeMethodDescriptionUserGroupMembershipFederatedStorage.getGroupsStream
(RealmModel realm, String userId) Obtains the groups associated with the federated user.Modifier 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
Modifier and TypeMethodDescriptionGroupLookupProvider.getGroupById
(RealmModel realm, String id) Returns a group from the given realm with the corresponding idModifier 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. -
Uses of GroupModel in org.keycloak.storage.jpa
Modifier and TypeMethodDescriptionJpaUserFederatedStorageProvider.getGroupsStream
(RealmModel realm, String userId) Modifier 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
Modifier 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
Modifier 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
Modifier 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, LDAPObject ldapGroup) protected GroupModel
GroupLDAPStorageMapper.findKcGroupOrSyncFromLDAP
(RealmModel realm, 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.Modifier and TypeMethodDescriptionprotected Stream<GroupModel>
GroupLDAPStorageMapper.getAllKcGroups
(RealmModel realm) 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()
Modifier 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.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
Modifier 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
Modifier 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)
AbstractUserAdapter.getGroupsStream()
instead