Constructor and Description |
---|
UserService() |
Modifier and Type | Method and Description |
---|---|
User |
getUser(String id)
Gets a user by the given id
|
Collection<User> |
listUsers()
List all users
|
void |
updateUser(User user)
Updates or creates the given user
|
public User getUser(String id)
id
- the id of the userpublic Collection<User> listUsers()
public void updateUser(User user)
user
- the userApache Camel