|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserProvider
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
ServiceProvider,
User,
UserTemplate,
UserNotificationEvent| Method Summary | |
|---|---|
User |
create(UserTemplate user)
Creates a user based on the data passed in the UserTemplate |
void |
delete(User user)
Deletes a user |
boolean |
exists(java.lang.String username)
Returns true if a user exitst whose username matches. |
boolean |
exists(UserTemplate user)
Returns true if the user that matches the template exists |
int |
getCount()
Returns total number of users in the system. |
User |
getUser(java.lang.String username)
returns the user associated to the username. |
User |
getUser(UserTemplate template)
returns the specified user. |
java.lang.Iterable<java.lang.String> |
getUsernames()
Returns an unmodifiable Collection of usernames of all users in the system. |
java.lang.Iterable<User> |
getUsers()
Returns an unmodifiable Collections of all users in the system. |
java.lang.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 and delete operations. |
| Methods inherited from interface com.jivesoftware.spi.ServiceProvider |
|---|
destroy, getConfigurationMap, initialize |
| Methods inherited from interface com.jivesoftware.spi.ServiceEventSource |
|---|
addListener, removeListener |
| Method Detail |
|---|
User getUser(java.lang.String username)
throws NotFoundException,
java.lang.UnsupportedOperationException
username - the username
NotFoundException - if the User could not be found.
java.lang.UnsupportedOperationException - if the provider doesn't implement this methodgetUser(UserTemplate)
User getUser(UserTemplate template)
throws NotFoundException
template - the template used to locate the user
NotFoundException - if the User could not be found.java.lang.Iterable<User> getUsers()
java.lang.Iterable<java.lang.String> getUsernames()
boolean exists(java.lang.String username)
throws java.lang.UnsupportedOperationException
username - the username to match.
java.lang.UnsupportedOperationException - if the provider doesn't implement this method
boolean exists(UserTemplate user)
throws java.lang.UnsupportedOperationException
user - the template to use when searching.
java.lang.UnsupportedOperationException - if the provider doesn't implement this methodboolean supportsUpdate()
User create(UserTemplate user)
throws AlreadyExistsException
user - template to base the new user of
AlreadyExistsException - if the user is duplicatevoid delete(User user)
user - user to deleteboolean supportsPagination()
int getCount()
java.lang.Iterable<User> getUsers(int startIndex,
int size)
startIndex - index to start the result set fromsize - maximum size of the result set returned
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||