@Path(value="/security/user")
@Consumes(value={"application/xml","application/json"})
@Produces(value={"application/xml","application/json"})
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.
|
@POST
@Path(value="{username}")
User create(@PathParam(value="username")
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.@GET
@Path(value="{username}")
User read(@PathParam(value="username")
java.lang.String username)
username - the login name of the user.@PUT
@Path(value="{username}")
void modifyPassword(@PathParam(value="username")
java.lang.String username,
User user)
username - the login name of the user.user - the details of the user, containing username and new password.@DELETE
@Path(value="{username}")
void delete(@PathParam(value="username")
java.lang.String username)
username - the login name of the user.