|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserProvider
API for defining custom systems of record for user management. Implementations of user providers can optionally be chained into a UserManager that will consult the provider as the system of record and if supported, pass changes for a given user through to the underlying provider of record. Service for querying users and notifying listeners when operations that modify users occur. All implementations of this interface must support the basic query and listing methods. These are
User,
UserManager| Method Summary | |
|---|---|
User |
create(User user)
Creates a user based on the data passed in the UserTemplate |
void |
delete(User user)
Deletes a user in the underlying provider store. |
int |
getCount()
Returns total number of users in the system. |
String |
getName()
Returns the name of the provider for system reporting and logging purposes. |
User |
getUser(User template)
Template-driven search approach. |
Iterable<String> |
getUsernames()
Returns an unmodifiable Collection of usernames of all users in the system. |
Iterable<User> |
getUsers()
Returns an unmodifiable Collections of all users in the system. |
Iterable<User> |
getUsers(int startIndex,
int size)
Returns iterable result set of users, containing size> or less users and starting at startIndex. |
boolean |
supportsPagination()
Returns true if this provider supports pagination. |
boolean |
supportsUpdate()
Returns true if this provider supports create, update and delete operations. |
void |
update(User user)
Updates the user via the user provider, if the provider supports updates. |
| Method Detail |
|---|
User getUser(User template)
template - the template used to locate the user
Iterable<User> getUsers()
Iterable<String> getUsernames()
boolean supportsUpdate()
void update(User user)
throws UnsupportedOperationException
user -
UnsupportedOperationException
User create(User user)
throws AlreadyExistsException,
UnsupportedOperationException
user - template to base the new user of
AlreadyExistsException - if the user is duplicate
UnsupportedOperationException - if new users cannot be created via the provider.void delete(User user)
user - user to deleteboolean supportsPagination()
int getCount()
throws UnsupportedOperationException
UnsupportedOperationException
Iterable<User> getUsers(int startIndex,
int size)
startIndex - index to start the result set fromsize - maximum size of the result set returned
String getName()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||