public static interface UserQueryProvider.Streams extends UserQueryProvider
UserQueryProvider.Streams
interface makes all collection-based methods in UserQueryProvider
default by
providing implementations that delegate to the Stream
-based variants instead of the other way around.
It allows for implementations to focus on the Stream
-based approach for processing sets of data and benefit
from the potential memory and performance optimizations of that approach.UserQueryProvider.Streams
Modifier and Type | Method and Description |
---|---|
default List<UserModel> |
getGroupMembers(RealmModel realm,
GroupModel group)
Get users that belong to a specific group.
|
default List<UserModel> |
getGroupMembers(RealmModel realm,
GroupModel group,
int firstResult,
int maxResults)
Get users that belong to a specific group.
|
Stream<UserModel> |
getGroupMembersStream(RealmModel realm,
GroupModel group)
Obtains users that belong to a specific group.
|
Stream<UserModel> |
getGroupMembersStream(RealmModel realm,
GroupModel group,
Integer firstResult,
Integer maxResults)
Obtains users that belong to a specific group.
|
default List<UserModel> |
getUsers(RealmModel realm) |
default List<UserModel> |
getUsers(RealmModel realm,
int firstResult,
int maxResults) |
Stream<UserModel> |
getUsersStream(RealmModel realm)
Searches all users in the realm.
|
Stream<UserModel> |
getUsersStream(RealmModel realm,
int firstResult,
int maxResults)
Searches all users in the realm, starting from the
firstResult and containing at most maxResults . |
default List<UserModel> |
searchForUser(Map<String,String> params,
RealmModel realm)
Search for user by parameter.
|
default List<UserModel> |
searchForUser(Map<String,String> params,
RealmModel realm,
int firstResult,
int maxResults)
Search for user by parameter.
|
default List<UserModel> |
searchForUser(String search,
RealmModel realm)
Search for users with username, email or first + last name that is like search string.
|
default List<UserModel> |
searchForUser(String search,
RealmModel realm,
int firstResult,
int maxResults)
Search for users with username, email or first + last name that is like search string.
|
default List<UserModel> |
searchForUserByUserAttribute(String attrName,
String attrValue,
RealmModel realm)
Search for users that have a specific attribute with a specific value.
|
Stream<UserModel> |
searchForUserByUserAttributeStream(String attrName,
String attrValue,
RealmModel realm)
Searches for users that have a specific attribute with a specific value.
|
Stream<UserModel> |
searchForUserStream(Map<String,String> params,
RealmModel realm)
Searches for user by parameter.
|
Stream<UserModel> |
searchForUserStream(Map<String,String> params,
RealmModel realm,
Integer firstResult,
Integer maxResults)
Searches for user by parameter.
|
Stream<UserModel> |
searchForUserStream(String search,
RealmModel realm)
Searches for users with username, email or first + last name that is like search string.
|
Stream<UserModel> |
searchForUserStream(String search,
RealmModel realm,
Integer firstResult,
Integer maxResults)
Searches for users with username, email or first + last name that is like search string.
|
countUsersInGroups, getRoleMembers, getRoleMembers, getRoleMembersStream, getRoleMembersStream, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersCount, getUsersCount
default List<UserModel> getUsers(RealmModel realm)
getUsers
in interface UserQueryProvider
Stream<UserModel> getUsersStream(RealmModel realm)
UserQueryProvider
getUsersStream
in interface UserQueryProvider
realm
- a reference to the realm.Stream
of users.default List<UserModel> getUsers(RealmModel realm, int firstResult, int maxResults)
getUsers
in interface UserQueryProvider
Stream<UserModel> getUsersStream(RealmModel realm, int firstResult, int maxResults)
UserQueryProvider
firstResult
and containing at most maxResults
.getUsersStream
in interface UserQueryProvider
realm
- a reference to the realm.firstResult
- first result to return. Ignored if negative.maxResults
- maximum number of results to return. Ignored if negative.Stream
of users.default List<UserModel> searchForUser(String search, RealmModel realm)
UserQueryProvider
searchForUser
in interface UserQueryProvider
Stream<UserModel> searchForUserStream(String search, RealmModel realm)
UserQueryProvider
searchForUserStream
in interface UserQueryProvider
search
- case sensitive search string.realm
- a reference to the realm.Stream
of users that match the search string.default List<UserModel> searchForUser(String search, RealmModel realm, int firstResult, int maxResults)
UserQueryProvider
searchForUser
in interface UserQueryProvider
Stream<UserModel> searchForUserStream(String search, RealmModel realm, Integer firstResult, Integer maxResults)
UserQueryProvider
searchForUserStream
in interface UserQueryProvider
search
- case sensitive search string.realm
- a reference to the realm.firstResult
- first result to return. Ignored if negative.maxResults
- maximum number of results to return. Ignored if negative.Stream
of users that match the search criteria.default List<UserModel> searchForUser(Map<String,String> params, RealmModel realm)
UserQueryProvider
searchForUser
in interface UserQueryProvider
Stream<UserModel> searchForUserStream(Map<String,String> params, RealmModel realm)
UserQueryProvider
searchForUserStream
in interface UserQueryProvider
params
- a map containing the search parameters.realm
- a reference to the realm.Stream
of users that match the search parameters.default List<UserModel> searchForUser(Map<String,String> params, RealmModel realm, int firstResult, int maxResults)
UserQueryProvider
searchForUser
in interface UserQueryProvider
Stream<UserModel> searchForUserStream(Map<String,String> params, RealmModel realm, Integer firstResult, Integer maxResults)
UserQueryProvider
searchForUserStream
in interface UserQueryProvider
params
- a map containing the search parameters.realm
- a reference to the realm.firstResult
- first result to return. Ignored if negative.maxResults
- maximum number of results to return. Ignored if negative.Stream
of users that match the search criteria.default List<UserModel> getGroupMembers(RealmModel realm, GroupModel group)
UserQueryProvider
getGroupMembers
in interface UserQueryProvider
UserFederatedStorageProvider
Stream<UserModel> getGroupMembersStream(RealmModel realm, GroupModel group)
UserQueryProvider
UserFederatedStorageProvider
as this is done automatically.getGroupMembersStream
in interface UserQueryProvider
realm
- a reference to the realm.group
- a reference to the group.Stream
of users that belong to the group.UserFederatedStorageProvider
default List<UserModel> getGroupMembers(RealmModel realm, GroupModel group, int firstResult, int maxResults)
UserQueryProvider
getGroupMembers
in interface UserQueryProvider
UserFederatedStorageProvider
Stream<UserModel> getGroupMembersStream(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults)
UserQueryProvider
UserFederatedStorageProvider
as this is done automatically.getGroupMembersStream
in interface UserQueryProvider
realm
- a reference to the realm.group
- a reference to the group.firstResult
- first result to return. Ignored if negative.maxResults
- maximum number of results to return. Ignored if negative.Stream
of users that belong to the group.UserFederatedStorageProvider
default List<UserModel> searchForUserByUserAttribute(String attrName, String attrValue, RealmModel realm)
UserQueryProvider
searchForUserByUserAttribute
in interface UserQueryProvider
UserFederatedStorageProvider
Stream<UserModel> searchForUserByUserAttributeStream(String attrName, String attrValue, RealmModel realm)
UserQueryProvider
UserFederatedStorageProvider
as this is done automatically.searchForUserByUserAttributeStream
in interface UserQueryProvider
attrName
- the attribute name.attrValue
- the attribute value.realm
- a reference to the realm.Stream
of users that match the search criteria.UserFederatedStorageProvider
Copyright © 2020 JBoss by Red Hat. All rights reserved.