|
||||||||||
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(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. |
Methods inherited from interface com.gisgraphy.service.UniversalManager |
---|
get, getAll, remove, save |
Method Detail |
---|
void setUserDao(UserDao userDao)
userDao
- the UserDao implementation to useUser getUser(String userId)
userId
- the identifier for the user
User getUserByUsername(String username) throws org.acegisecurity.userdetails.UsernameNotFoundException
username
- the user's username used to login
org.acegisecurity.userdetails.UsernameNotFoundException
- exception thrown when user not foundList<User> getUsers(User user)
user
- parameters to filter on
User saveUser(User user) throws UserExistsException
user
- the user's information
UserExistsException
- thrown when user already existsvoid removeUser(String userId)
userId
- the user's id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |