@Beta
@Consumes(value="application/json")
@Path(value="/users")
public interface UserAdminApi
Modifier and Type | Method and Description |
---|---|
User |
create(String name,
String password)
Creates a new user
|
User |
create(String name,
String password,
CreateUserOptions options)
Creates a new user
|
boolean |
delete(String userId)
Deletes an user
|
User |
update(String id,
UpdateUserOptions options)
Updates an user
|
@Named(value="user:create") @POST @Nullable User create(String name, String password)
@Named(value="user:create") @POST @Nullable User create(String name, String password, CreateUserOptions options)
@Named(value="user:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String userId)
@Named(value="user:updateUser") @PUT @Path(value="/{id}") @Nullable User update(@PathParam(value="id") String id, UpdateUserOptions options)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.