|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Path(value="/users") public interface UserService
Web Service interface so hierarchy of Generic Manager isn't carried through.
| Method Summary | |
|---|---|
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 |
org.appfuse.model.User |
saveUser(org.appfuse.model.User user)
Saves a user's information |
| Method Detail |
|---|
@Path(value="{id}")
org.appfuse.model.User getUser(String userId)
userId - the identifier for the user
org.appfuse.model.User getUserByUsername(String username)
username - the user's username used to login
List<org.appfuse.model.User> getUsers()
org.appfuse.model.User saveUser(org.appfuse.model.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 | |||||||||