@Path(value="/users")
public interface UserService
| 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
|
org.appfuse.model.User |
saveUser(org.appfuse.model.User user)
Saves a user's information
|
@Path(value="{id}")
org.appfuse.model.User getUser(String userId)
userId - the identifier for the userorg.appfuse.model.User getUserByUsername(String username)
username - the user's username used to loginList<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(String userId)
userId - the user's idCopyright © 2003-2012. All Rights Reserved.