public class UserService extends Object
User
service which we rest enable from the UserRouteBuilder
.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
|
User |
updateUser(User user)
Updates or creates the given user
|
public User getUser(String id)
id
- the id of the userpublic Collection<User> listUsers()
Apache Camel