Interface UserAdminApi
-
@Beta @Consumes("application/json") @Path("/users") public interface UserAdminApiProvides access to User Administration actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Usercreate(String name, String password)Creates a new userUsercreate(String name, String password, CreateUserOptions options)Creates a new userbooleandelete(String userId)Deletes an userUserupdate(String id, UpdateUserOptions options)Updates an user
-
-
-
Method Detail
-
create
@Named("user:create") @POST @Nullable User create(String name, String password)Creates a new user- Returns:
- the new user
-
create
@Named("user:create") @POST @Nullable User create(String name, String password, CreateUserOptions options)Creates a new user- Returns:
- the new user
-
delete
@Named("user:delete") @DELETE @Path("/{id}") boolean delete(@PathParam("id") String userId)Deletes an user- Returns:
- true if successful
-
update
@Named("user:updateUser") @PUT @Path("/{id}") @Nullable User update(@PathParam("id") String id, UpdateUserOptions options)Updates an user- Returns:
- the updated user
-
-