public interface UserDirectoryService
UserProviders.| Modifier and Type | Method and Description |
|---|---|
long |
countUsers()
Returns the total number of users
|
Iterator<User> |
findUsers(String query,
int offset,
int limit)
Return the found user's as an iterator.
|
Iterator<User> |
getUsers()
Gets all known users.
|
void |
invalidate(String userName)
Discards any cached value for given user name.
|
User |
loadUser(String userName)
Loads a user by username, or returns null if this user is not known to the thread's current organization.
|
default Iterator<User> |
loadUsers(Collection<String> userNames)
Loads multiple users by a list of user names.
|
User loadUser(String userName)
userName - the usernameIllegalStateException - if no organization is set for the current threaddefault Iterator<User> loadUsers(Collection<String> userNames)
userNames - the user names to look forIllegalStateException - if no organization is set for the current threadIterator<User> findUsers(String query, int offset, int limit)
query - the query. Use the wildcards "_" to match any single character and "%" to match an arbitrary number of
characters (including zero characters).offset - the offsetlimit - the limit. 0 means no limitIllegalArgumentException - if the query is nulllong countUsers()
void invalidate(String userName)
userName - the user nameCopyright © 2009–2021 Opencast Project. All rights reserved.