public interface UserManager extends GenericManager<org.appfuse.model.User,Long>
| Modifier and Type | Method and Description |
|---|---|
org.appfuse.model.User |
getUser(String userId)
Retrieves a user by userId.
|
org.appfuse.model.User |
getUserByUsername(String username)
Finds a user by their username.
|
List<org.appfuse.model.User> |
getUsers()
Retrieves a list of all users.
|
void |
removeUser(String userId)
Removes a user from the database by their userId
|
void |
removeUser(org.appfuse.model.User user)
Removes a user from the database
|
org.appfuse.model.User |
saveUser(org.appfuse.model.User user)
Saves a user's information.
|
List<org.appfuse.model.User> |
search(String searchTerm)
Search a user for search terms.
|
void |
setUserDao(UserDao userDao)
Convenience method for testing - allows you to mock the DAO and set it on an interface.
|
exists, get, getAll, reindex, reindexAll, remove, remove, save, searchvoid setUserDao(UserDao userDao)
userDao - the UserDao implementation to useorg.appfuse.model.User getUser(String userId)
userId - the identifier for the userorg.appfuse.model.User getUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
username - the user's username used to loginorg.springframework.security.core.userdetails.UsernameNotFoundException - exception thrown when user not foundList<org.appfuse.model.User> getUsers()
org.appfuse.model.User saveUser(org.appfuse.model.User user)
throws UserExistsException
user - the user's informationUserExistsException - thrown when user already existsvoid removeUser(org.appfuse.model.User user)
user - the user to removevoid removeUser(String userId)
userId - the user's idCopyright © 2003-2012. All Rights Reserved.