@Consumes(value="application/json")
@Path(value="/users")
public interface UserApi
Modifier and Type | Method and Description |
---|---|
void |
changePassword(String id,
String originalPassword,
String newPassword) |
User |
create(String name,
String password,
Boolean enabled,
String domainId,
String defaultProjectId) |
boolean |
delete(String id) |
User |
get(String id) |
List<User> |
list() |
List<Group> |
listGroups(String id) |
List<Project> |
listProjects(String id) |
User |
update(String id,
String name,
String password,
Boolean enabled,
String domainId,
String defaultProjectId) |
@Named(value="users:create") @POST User create(String name, @Nullable String password, @Nullable Boolean enabled, @Nullable String domainId, @Nullable String defaultProjectId)
@Named(value="users:update") @Path(value="/{id}") User update(@PathParam(value="id") String id, String name, @Nullable String password, @Nullable Boolean enabled, @Nullable String domainId, @Nullable String defaultProjectId)
@Named(value="users:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String id)
@Named(value="users:groups") @GET @Path(value="/{id}/groups") List<Group> listGroups(@PathParam(value="id") String id)
@Named(value="users:projects") @GET @Path(value="/{id}/projects") List<Project> listProjects(@PathParam(value="id") String id)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.