public interface UserManager extends UniversalManager
| Modifier and Type | Method and Description |
|---|---|
User |
getUser(String userId)
Retrieves a user by userId.
|
User |
getUserByUsername(String username)
Finds a user by their username.
|
List<User> |
getUsers(User user)
Retrieves a list of users, filtering with parameters on a user object
|
void |
removeUser(String userId)
Removes a user from the database by their userId
|
User |
saveUser(User user)
Saves a user's information
|
void |
setUserDao(UserDao userDao)
Convenience method for testing - allows you to mock the DAO and set it on
an interface.
|
get, getAll, remove, savevoid setUserDao(UserDao userDao)
userDao - the UserDao implementation to useUser getUser(String userId)
userId - the identifier for the userUser getUserByUsername(String username) throws org.springframework.security.userdetails.UsernameNotFoundException
username - the user's username used to loginorg.acegisecurity.userdetails.UsernameNotFoundException - exception thrown when user not foundorg.springframework.security.userdetails.UsernameNotFoundExceptionList<User> getUsers(User user)
user - parameters to filter onUser saveUser(User user) throws UserExistsException
user - the user's informationUserExistsException - thrown when user already existsvoid removeUser(String userId)
userId - the user's idCopyright © 2015. All rights reserved.