public interface UserService
Modifier and Type | Method and Description |
---|---|
User |
create(java.lang.String username,
User user)
Creates a new user.
|
void |
delete(java.lang.String username)
Deletes the user.
|
void |
modifyPassword(java.lang.String username,
User user)
Changes the password of the indicated user.
|
User |
read(java.lang.String username)
Returns the user details without the password.
|
User create(java.lang.String username, User user)
username
- the login nameuser
- the details of the user, containing username and new password. Username in here should be the same as the username in the URL path.User read(java.lang.String username)
username
- the login name of the user.void modifyPassword(java.lang.String username, User user)
username
- the login name of the user.user
- the details of the user, containing username and new password.void delete(java.lang.String username)
username
- the login name of the user.