|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManager
Centralized management of users in the Jive system including creating, retrieving, and deleting User objects.
Instructions for those that wish to implement this interface to provide a custom implementation appear in red. If you wish to use a custom implementation, you must set the Jive property UserManager.className with the name of your UserManager class. Your class must have a public, no-argument constructor. The class must also create and return User object implementations as necessary.
User| Method Summary | |
|---|---|
User |
createApplicationUser(User userTemplate)
Creates a Clearspace-only user representation. |
User |
createUser(User userTemplate)
Factory method for creating a new User with all required values: a password, email address, and unique username. |
void |
deleteUser(User user)
Deletes a user. |
void |
deleteUserAndContent(User user)
Deletes a user and the user's associated content (to maintain data consistency). |
void |
disableUser(User user)
Disable the given user |
void |
enableUser(User user)
Enable the given user |
int |
getApplicationUserCount()
Returns the number of application users in the system. |
List<User> |
getApplicationUsers()
Returns a list of application users - users who have active accounts and can authenticate with the system. |
List<User> |
getApplicationUsers(int start,
int end)
Returns a list of enabled application users from start to end params. |
int |
getAuthenticatedUserCount()
Returns the number of application users in the system who have authenticated at least once. |
int |
getRecentUserCount(Date cutoffDate)
Returns the number of application users in the system who have been created since a given date. |
int |
getTotalUserCount()
Returns the number of user identities known to the system, including external relationships and representations of external users. |
User |
getUser(long userId)
Retrives a user based on their unique system ID. |
User |
getUser(String userName)
Loads the user by unique username. |
User |
getUser(User userTemplate)
Returns a user matching the given user template. |
User |
getUser(User userTemplate,
boolean caseInsensitive)
Searches for a user with the given template. |
List<User> |
getUsers()
Returns a list of all users including external users and relationships. |
List<User> |
getUsers(int startIndex,
int numResults)
Returns a set of users starting with the beginning and ending with the ending params. |
boolean |
isCreationSupported()
Indicates whether user creation is supported. |
User |
updateUser(User user)
Updates the existing user. |
| Method Detail |
|---|
User createUser(User userTemplate)
throws UserAlreadyExistsException,
UnsupportedOperationException,
EmailAlreadyExistsException
userTemplate - User data that will be persisted to the application store and
any user providers if they support creation.
UserAlreadyExistsException - if the username already exists in the system.
UnsupportedOperationException - if the back-end user store doesn't support this operation
EmailAlreadyExistsException - if the email is already in use in the system.
User createApplicationUser(User userTemplate)
throws UserAlreadyExistsException
userTemplate - the template to use to create the new user
UserAlreadyExistsException - if the user already exists in the systemUser getUser(User userTemplate)
Note that unlike other methods on the API, this returns null if the user is not found.
userTemplate - the user template for the user to load
User getUser(User userTemplate,
boolean caseInsensitive)
userTemplate - the user template for the user to loadcaseInsensitive - true if the case doesn't matter, false otherwise
User getUser(String userName)
throws UserNotFoundException
userName - the username of the user to load
UserNotFoundException - if the user cannot be found
User getUser(long userId)
throws UserNotFoundException
userId - the id of the user to load
UserNotFoundException - if the user cannot be found
void deleteUser(User user)
throws UnsupportedOperationException,
UserNotFoundException
user - the user to delete.
UnauthorizedException - if not an administrator
UnsupportedOperationException - if the system of record does not support user updates
UserNotFoundException - if the user cannot be founddeleteUserAndContent(User user)
void deleteUserAndContent(User user)
throws UnsupportedOperationException,
UserNotFoundException
user - the user to delete.
UnauthorizedException - if not an administrator
UnsupportedOperationException - if the system of record does not support user updates
UserNotFoundException - if the user cannot be founddeleteUser(User user)int getApplicationUserCount()
List<User> getApplicationUsers()
List<User> getApplicationUsers(int start,
int end)
start - the start indexend - the end index
int getAuthenticatedUserCount()
int getTotalUserCount()
int getRecentUserCount(Date cutoffDate)
cutoffDate - The Date after which users created will be counted.
List<User> getUsers()
List<User> getUsers(int startIndex,
int numResults)
startIndex - the starting index of the result setnumResults - the number of results to return
less rows)
boolean isCreationSupported()
User updateUser(User user)
throws UserNotFoundException,
UserAlreadyExistsException
user - the existing user
UserNotFoundException - if the user cannot be found
UserAlreadyExistsException - if the underlying implementation doesn't allow for updating user informationvoid enableUser(User user)
user - the user to enablevoid disableUser(User user)
user - the user to disable
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||