Uses of Interface
org.keycloak.models.GroupModel
-
Packages that use GroupModel Package Description org.keycloak.models org.keycloak.models.utils org.keycloak.storage.group org.keycloak.storage.user -
-
Uses of GroupModel in org.keycloak.models
Subinterfaces of GroupModel in org.keycloak.models Modifier and Type Interface Description static interfaceGroupModel.StreamsDeprecated.This interface is no longer necessary, collection-based methods were removed from the parent interface and therefore the parent interface can be used directlyFields in org.keycloak.models with type parameters of type GroupModel Modifier and Type Field Description static SearchableModelField<GroupModel>GroupModel.SearchableFields. ASSIGNED_ROLEField for comparison with roles granted to this group.static SearchableModelField<GroupModel>GroupModel.SearchableFields. ATTRIBUTESearch for attribute value.static Comparator<GroupModel>GroupModel. COMPARE_BY_NAMEstatic SearchableModelField<GroupModel>GroupModel.SearchableFields. IDstatic SearchableModelField<GroupModel>GroupModel.SearchableFields. NAMEstatic SearchableModelField<GroupModel>GroupModel.SearchableFields. PARENT_IDParent group IDstatic SearchableModelField<GroupModel>GroupModel.SearchableFields. REALM_IDMethods in org.keycloak.models that return GroupModel Modifier and Type Method Description default GroupModelGroupProvider. createGroup(RealmModel realm, String name)Creates a new group with the given name in the given realm.default GroupModelGroupProvider. createGroup(RealmModel realm, String id, String name)Creates a new group with the given id and name in the given realm.GroupModelGroupProvider. 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 GroupModelGroupProvider. createGroup(RealmModel realm, String name, GroupModel toParent)Creates a new group with the given name and parent to the given realm.default GroupModelRealmModel. createGroup(String name)default GroupModelRealmModel. createGroup(String id, String name)GroupModelRealmModel. createGroup(String id, String name, GroupModel toParent)default GroupModelRealmModel. createGroup(String name, GroupModel toParent)default GroupModelRealmProvider. createGroup(RealmModel realm, String name)Deprecated.Use the corresponding method fromGroupProvider.default GroupModelRealmProvider. createGroup(RealmModel realm, String id, String name)Deprecated.Use the corresponding method fromGroupProvider.GroupModelRealmProvider. createGroup(RealmModel realm, String id, String name, GroupModel toParent)Deprecated.Use the corresponding method fromGroupProvider.default GroupModelRealmProvider. createGroup(RealmModel realm, String name, GroupModel toParent)Deprecated.Use the corresponding method fromGroupProvider.GroupModelGroupModel.GroupRemovedEvent. getGroup()GroupModelRealmModel. getGroupById(String id)GroupModelRealmProvider. getGroupById(RealmModel realm, String id)Deprecated.Use the corresponding method fromGroupProvider.GroupModelGroupModel. getParent()Methods in org.keycloak.models that return types with arguments of type GroupModel Modifier and Type Method Description Stream<GroupModel>RealmModel. getDefaultGroupsStream()Returns default groups as a stream.Stream<GroupModel>GroupProvider. getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)Returns groups with the given role in the given realm.Stream<GroupModel>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.Stream<GroupModel>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.Stream<GroupModel>RealmModel. getGroupsStream()Returns groups as a stream.Stream<GroupModel>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 nameStream<GroupModel>GroupModel. getSubGroupsStream()Returns all sub groups for the parent group as a stream.Stream<GroupModel>GroupProvider. getTopLevelGroupsStream(RealmModel realm)Returns all top level groups (i.e.Stream<GroupModel>GroupProvider. getTopLevelGroupsStream(RealmModel realm, Integer firstResult, Integer maxResults)Returns top level groups (i.e.Stream<GroupModel>RealmModel. getTopLevelGroupsStream()Returns top level groups as a stream.Stream<GroupModel>RealmModel. getTopLevelGroupsStream(Integer first, Integer max)Returns top level groups as a stream.Stream<GroupModel>RealmModel. searchForGroupByNameStream(String search, Integer first, Integer max)Deprecated.Methods in org.keycloak.models with parameters of type GroupModel Modifier and Type Method Description voidGroupModel. addChild(GroupModel subGroup)Automatically calls setParent() on the subGroupvoidRealmModel. addDefaultGroup(GroupModel group)voidGroupProvider. addTopLevelGroup(RealmModel realm, GroupModel subGroup)Removes parent group for the given group in the given realm.voidRealmProvider. addTopLevelGroup(RealmModel realm, GroupModel subGroup)Deprecated.Use the corresponding method fromGroupProvider.GroupModelGroupProvider. 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 GroupModelGroupProvider. createGroup(RealmModel realm, String name, GroupModel toParent)Creates a new group with the given name and parent to the given realm.GroupModelRealmModel. createGroup(String id, String name, GroupModel toParent)default GroupModelRealmModel. createGroup(String name, GroupModel toParent)GroupModelRealmProvider. createGroup(RealmModel realm, String id, String name, GroupModel toParent)Deprecated.Use the corresponding method fromGroupProvider.default GroupModelRealmProvider. createGroup(RealmModel realm, String name, GroupModel toParent)Deprecated.Use the corresponding method fromGroupProvider.booleanUserModel. isMemberOf(GroupModel group)voidUserModel. joinGroup(GroupModel group)voidUserModel. leaveGroup(GroupModel group)voidGroupProvider. 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.voidRealmModel. moveGroup(GroupModel group, GroupModel toParent)voidRealmProvider. moveGroup(RealmModel realm, GroupModel group, GroupModel toParent)Deprecated.Use the corresponding method fromGroupProvider.voidUserProvider. preRemove(RealmModel realm, GroupModel group)Called when a group is removed.voidGroupModel. removeChild(GroupModel subGroup)Automatically calls setParent() on the subGroupvoidRealmModel. removeDefaultGroup(GroupModel group)booleanGroupProvider. removeGroup(RealmModel realm, GroupModel group)Removes the given group for the given realm.booleanRealmModel. removeGroup(GroupModel group)booleanRealmProvider. removeGroup(RealmModel realm, GroupModel group)Deprecated.Use the corresponding method fromGroupProvider.voidGroupModel. 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.utils
Methods in org.keycloak.models.utils that return types with arguments of type GroupModel Modifier and Type Method Description Stream<GroupModel>UserModelDelegate. getGroupsStream()Methods in org.keycloak.models.utils with parameters of type GroupModel Modifier and Type Method Description static booleanRoleUtils. hasRoleFromGroup(GroupModel group, RoleModel targetRole, boolean checkParentGroup)Checks whether thetargetRoleis contained in the given group or its parents (if requested)static booleanRoleUtils. isDirectMember(Stream<GroupModel> groups, GroupModel targetGroup)static booleanRoleUtils. isMember(Stream<GroupModel> groups, GroupModel targetGroup)booleanUserModelDelegate. isMemberOf(GroupModel group)voidUserModelDelegate. joinGroup(GroupModel group)voidUserModelDelegate. leaveGroup(GroupModel group)Method parameters in org.keycloak.models.utils with type arguments of type GroupModel Modifier and Type Method Description static booleanRoleUtils. hasRoleFromGroup(Stream<GroupModel> groups, RoleModel targetRole, boolean checkParentGroup)Checks whether thetargetRoleis contained in any of thegroupsor their parents (if requested)static booleanRoleUtils. isDirectMember(Stream<GroupModel> groups, GroupModel targetGroup)static booleanRoleUtils. isMember(Stream<GroupModel> groups, GroupModel targetGroup) -
Uses of GroupModel in org.keycloak.storage.group
Methods in org.keycloak.storage.group that return GroupModel Modifier and Type Method Description GroupModelGroupLookupProvider. getGroupById(RealmModel realm, String id)Returns a group from the given realm with the corresponding idMethods in org.keycloak.storage.group that return types with arguments of type GroupModel Modifier and Type Method Description Stream<GroupModel>GroupLookupProvider. 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.Stream<GroupModel>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.user
Methods in org.keycloak.storage.user with parameters of type GroupModel Modifier and Type Method Description default Stream<UserModel>UserQueryProvider. getGroupMembersStream(RealmModel realm, GroupModel group)Obtains users that belong to a specific group.Stream<UserModel>UserQueryProvider. getGroupMembersStream(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults)Obtains users that belong to a specific group.
-