|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserManager
User Manager Interface
| Field Summary | |
|---|---|
static java.lang.String |
ROLE
|
| Method Summary | |
|---|---|
User |
addUser(User user)
Add a User. |
void |
addUserManagerListener(UserManagerListener listener)
Add a UserManagerListener to track major events in the
UserManager. |
void |
addUserUnchecked(User user)
Add a user to the database without checking for consistency or adjusting the password. |
User |
createUser(java.lang.String username,
java.lang.String fullName,
java.lang.String emailAddress)
Factory method to create new User Objects based on provider specific implementation. |
UserQuery |
createUserQuery()
Factory method to create UserQuerys based on provider specific
implementations. |
void |
deleteUser(java.lang.Object principal)
Delete a user using the principal. |
void |
deleteUser(java.lang.String username)
Delete a user using the username. |
void |
eraseDatabase()
|
User |
findUser(java.lang.Object principal)
Find a User using the principal. |
User |
findUser(java.lang.String username)
Find a User using a User name. |
java.util.List |
findUsersByEmailKey(java.lang.String emailKey,
boolean orderAscending)
|
java.util.List |
findUsersByFullNameKey(java.lang.String fullNameKey,
boolean orderAscending)
|
java.util.List |
findUsersByQuery(UserQuery query)
Find users matching properties, ordering and range as specified by the UserQuery. |
java.util.List |
findUsersByUsernameKey(java.lang.String usernameKey,
boolean orderAscending)
|
java.lang.String |
getId()
And Identifier for the UserManager. |
java.util.List |
getUsers()
Get the List of User objects. |
java.util.List |
getUsers(boolean orderAscending)
|
boolean |
isReadOnly()
Is the UserManager read only? if so then create and modify actions are to be disabled |
void |
removeUserManagerListener(UserManagerListener listener)
Remove a UserManagerListener from the collection of listeners. |
User |
updateUser(User user)
Update a User. |
boolean |
userExists(java.lang.Object principal)
true if the user exists, false if it doesn't |
| Field Detail |
|---|
static final java.lang.String ROLE
| Method Detail |
|---|
boolean isReadOnly()
java.lang.String getId()
void addUserManagerListener(UserManagerListener listener)
UserManagerListener to track major events in the
UserManager.
listener - the listener to add.void removeUserManagerListener(UserManagerListener listener)
UserManagerListener from the collection of listeners.
listener - the listener to remove.
User createUser(java.lang.String username,
java.lang.String fullName,
java.lang.String emailAddress)
addUser(User) is made.
username - the username for this user.fullName - the full name for this user.emailAddress - the email address for this user.
UserQuery createUserQuery()
UserQuerys based on provider specific
implementations.
java.util.List getUsers()
User objects.
User Objects.java.util.List getUsers(boolean orderAscending)
User addUser(User user)
user - the user to add.
User updateUser(User user)
throws UserNotFoundException
user - the user to update.
UserNotFoundException - if the user was not found to update.
User findUser(java.lang.String username)
throws UserNotFoundException
username - the username to find.
UserNotFoundException - if the user was not found.
java.util.List findUsersByUsernameKey(java.lang.String usernameKey,
boolean orderAscending)
java.util.List findUsersByFullNameKey(java.lang.String fullNameKey,
boolean orderAscending)
java.util.List findUsersByEmailKey(java.lang.String emailKey,
boolean orderAscending)
java.util.List findUsersByQuery(UserQuery query)
UserQuery.
query - the query.
User objects.
User findUser(java.lang.Object principal)
throws UserNotFoundException
principal - the principal to look for.
UserNotFoundException - if the user was not found.boolean userExists(java.lang.Object principal)
principal -
void deleteUser(java.lang.Object principal)
throws UserNotFoundException
principal - the principal to look for.
UserNotFoundException - the user was not found.
void deleteUser(java.lang.String username)
throws UserNotFoundException
username - the username to look for.
UserNotFoundException - the user was not found.void addUserUnchecked(User user)
user - the user to addvoid eraseDatabase()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||