Interface UserAdminApi
-
@Beta @Consumes("application/json") @Path("/users") public interface UserAdminApi
Provides access to User Administration actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description User
create(String name, String password)
Creates a new userUser
create(String name, String password, CreateUserOptions options)
Creates a new userboolean
delete(String userId)
Deletes an userUser
update(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
-
-