|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManager
Business Service Interface to handle communication between web and persistence layer.
| Method Summary | |
|---|---|
User |
getUser(java.lang.String userId)
Retrieves a user by userId. |
User |
getUserByUsername(java.lang.String username)
Finds a user by their username. |
java.util.List<User> |
getUsers()
Retrieves a list of all users. |
void |
removeUser(java.lang.String userId)
Removes a user from the database by their userId |
User |
saveUser(User user)
Saves a user's information. |
java.util.List<User> |
search(java.lang.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. |
| Methods inherited from interface net.ramapuram.thomas.service.GenericManager |
|---|
exists, get, getAll, remove, save, search |
| Method Detail |
|---|
void setUserDao(UserDao userDao)
userDao - the UserDao implementation to useUser getUser(java.lang.String userId)
userId - the identifier for the user
User getUserByUsername(java.lang.String username)
throws org.springframework.security.core.userdetails.UsernameNotFoundException
username - the user's username used to login
org.springframework.security.core.userdetails.UsernameNotFoundException - exception thrown when user not foundjava.util.List<User> getUsers()
User saveUser(User user)
throws UserExistsException
user - the user's information
UserExistsException - thrown when user already existsvoid removeUser(java.lang.String userId)
userId - the user's idjava.util.List<User> search(java.lang.String searchTerm)
searchTerm - the search terms.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||