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, getUsersCountdefault List<UserModel> getUsers(RealmModel realm)
getUsers in interface UserQueryProviderStream<UserModel> getUsersStream(RealmModel realm)
UserQueryProvidergetUsersStream in interface UserQueryProviderrealm - a reference to the realm.Stream of users.default List<UserModel> getUsers(RealmModel realm, int firstResult, int maxResults)
getUsers in interface UserQueryProviderStream<UserModel> getUsersStream(RealmModel realm, int firstResult, int maxResults)
UserQueryProviderfirstResult and containing at most maxResults.getUsersStream in interface UserQueryProviderrealm - 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)
UserQueryProvidersearchForUser in interface UserQueryProviderStream<UserModel> searchForUserStream(String search, RealmModel realm)
UserQueryProvidersearchForUserStream in interface UserQueryProvidersearch - 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)
UserQueryProvidersearchForUser in interface UserQueryProviderStream<UserModel> searchForUserStream(String search, RealmModel realm, Integer firstResult, Integer maxResults)
UserQueryProvidersearchForUserStream in interface UserQueryProvidersearch - 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)
UserQueryProvidersearchForUser in interface UserQueryProviderStream<UserModel> searchForUserStream(Map<String,String> params, RealmModel realm)
UserQueryProvidersearchForUserStream in interface UserQueryProviderparams - 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)
UserQueryProvidersearchForUser in interface UserQueryProviderStream<UserModel> searchForUserStream(Map<String,String> params, RealmModel realm, Integer firstResult, Integer maxResults)
UserQueryProvidersearchForUserStream in interface UserQueryProviderparams - 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)
UserQueryProvidergetGroupMembers in interface UserQueryProviderUserFederatedStorageProviderStream<UserModel> getGroupMembersStream(RealmModel realm, GroupModel group)
UserQueryProviderUserFederatedStorageProvider
as this is done automatically.getGroupMembersStream in interface UserQueryProviderrealm - a reference to the realm.group - a reference to the group.Stream of users that belong to the group.UserFederatedStorageProviderdefault List<UserModel> getGroupMembers(RealmModel realm, GroupModel group, int firstResult, int maxResults)
UserQueryProvidergetGroupMembers in interface UserQueryProviderUserFederatedStorageProviderStream<UserModel> getGroupMembersStream(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults)
UserQueryProviderUserFederatedStorageProvider
as this is done automatically.getGroupMembersStream in interface UserQueryProviderrealm - 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.UserFederatedStorageProviderdefault List<UserModel> searchForUserByUserAttribute(String attrName, String attrValue, RealmModel realm)
UserQueryProvidersearchForUserByUserAttribute in interface UserQueryProviderUserFederatedStorageProviderStream<UserModel> searchForUserByUserAttributeStream(String attrName, String attrValue, RealmModel realm)
UserQueryProviderUserFederatedStorageProvider as this is done automatically.searchForUserByUserAttributeStream in interface UserQueryProviderattrName - the attribute name.attrValue - the attribute value.realm - a reference to the realm.Stream of users that match the search criteria.UserFederatedStorageProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.