public interface UserProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_ORGANIZATIONS
The constant indicating that a provider should be consulted for all organizations
|
| Modifier and Type | Method and Description |
|---|---|
long |
countUsers()
Returns the number of users in the provider
|
default Iterator<User> |
findUsers(Collection<String> userNames)
Find a list of users by their user names
Note that the default implementation of this might be slow, as it calls
loadUser on every single user. |
Iterator<User> |
findUsers(String query,
int offset,
int limit)
Return the found user's as an iterator.
|
String |
getName()
Gets the provider name
|
String |
getOrganization()
Returns the identifier for the organization that is associated with this user provider.
|
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 this provider.
|
static final String ALL_ORGANIZATIONS
String getName()
User loadUser(String userName)
userName - the usernamelong countUsers()
String getOrganization()
ALL_ORGANIZATIONS, this provider will always be consulted, regardless of the organization.Iterator<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 nulldefault Iterator<User> findUsers(Collection<String> userNames)
loadUser on every single user.userNames - A list of user namesvoid invalidate(String userName)
userName - the user nameCopyright © 2009–2020 Opencast Project. All rights reserved.