public interface UserQueryProvider
| Modifier and Type | Method and Description |
|---|---|
static int |
countUsersInGroups(List<UserModel> users,
Set<String> groupIds)
Returns the number of users from the given list of users that are in at
least one of the groups given in the groups set.
|
List<UserModel> |
getGroupMembers(RealmModel realm,
GroupModel group)
Get users that belong to a specific group.
|
List<UserModel> |
getGroupMembers(RealmModel realm,
GroupModel group,
int firstResult,
int maxResults)
Get users that belong to a specific group.
|
default List<UserModel> |
getRoleMembers(RealmModel realm,
RoleModel role)
Get users that belong to a specific role.
|
default List<UserModel> |
getRoleMembers(RealmModel realm,
RoleModel role,
int firstResult,
int maxResults)
Search for users that have a specific role with a specific roleId.
|
List<UserModel> |
getUsers(RealmModel realm) |
List<UserModel> |
getUsers(RealmModel realm,
int firstResult,
int maxResults) |
default int |
getUsersCount(Map<String,String> params,
RealmModel realm)
Returns the number of users that match the given filter parameters.
|
default int |
getUsersCount(Map<String,String> params,
RealmModel realm,
Set<String> groupIds)
Returns the number of users that match the given filter parameters and is in
at least one of the given groups.
|
int |
getUsersCount(RealmModel realm)
Returns the number of users, without consider any service account.
|
default int |
getUsersCount(RealmModel realm,
boolean includeServiceAccount)
Returns the number of users.
|
default int |
getUsersCount(RealmModel realm,
Set<String> groupIds)
Returns the number of users that are in at least one of the groups
given.
|
default int |
getUsersCount(String search,
RealmModel realm)
Returns the number of users that match the given criteria.
|
default int |
getUsersCount(String search,
RealmModel realm,
Set<String> groupIds)
Returns the number of users that match the given criteria and are in
at least one of the groups given.
|
List<UserModel> |
searchForUser(Map<String,String> params,
RealmModel realm)
Search for user by parameter.
|
List<UserModel> |
searchForUser(Map<String,String> params,
RealmModel realm,
int firstResult,
int maxResults)
Search for user by parameter.
|
List<UserModel> |
searchForUser(String search,
RealmModel realm)
Search for users with username, email or first + last name that is like search string.
|
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.
|
List<UserModel> |
searchForUserByUserAttribute(String attrName,
String attrValue,
RealmModel realm)
Search for users that have a specific attribute with a specific value.
|
int getUsersCount(RealmModel realm)
realm - the realmdefault int getUsersCount(RealmModel realm, Set<String> groupIds)
realm - the realmgroupIds - set of groups id to check fordefault int getUsersCount(String search, RealmModel realm)
search - search criteriarealm - the realmdefault int getUsersCount(String search, RealmModel realm, Set<String> groupIds)
search - search criteriarealm - the realmgroupIds - set of groups to check fordefault int getUsersCount(Map<String,String> params, RealmModel realm)
params - filter parametersrealm - the realmdefault int getUsersCount(Map<String,String> params, RealmModel realm, Set<String> groupIds)
params - filter parametersrealm - the realmgroupIds - set if groups to check forstatic int countUsersInGroups(List<UserModel> users, Set<String> groupIds)
users - list of users to checkgroupIds - id of groups that should be checked fordefault int getUsersCount(RealmModel realm, boolean includeServiceAccount)
realm - the realmincludeServiceAccount - if true, the number of users will also include service accounts. Otherwise, only the number of users.List<UserModel> getUsers(RealmModel realm)
List<UserModel> getUsers(RealmModel realm, int firstResult, int maxResults)
List<UserModel> searchForUser(String search, RealmModel realm)
search - realm - List<UserModel> searchForUser(String search, RealmModel realm, int firstResult, int maxResults)
search - realm - firstResult - maxResults - List<UserModel> searchForUser(Map<String,String> params, RealmModel realm)
params - realm - List<UserModel> searchForUser(Map<String,String> params, RealmModel realm, int firstResult, int maxResults)
params - realm - firstResult - maxResults - List<UserModel> getGroupMembers(RealmModel realm, GroupModel group, int firstResult, int maxResults)
realm - group - firstResult - maxResults - UserFederatedStorageProviderdefault List<UserModel> getRoleMembers(RealmModel realm, RoleModel role)
realm - role - default List<UserModel> getRoleMembers(RealmModel realm, RoleModel role, int firstResult, int maxResults)
firstResult - maxResults - role - List<UserModel> getGroupMembers(RealmModel realm, GroupModel group)
realm - group - UserFederatedStorageProviderList<UserModel> searchForUserByUserAttribute(String attrName, String attrValue, RealmModel realm)
attrName - attrValue - realm - UserFederatedStorageProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.