@Path(value="users") public interface UserService extends AnyService<UserTO>
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(@NotNull UserTO userTO,
boolean storePassword)
Creates a new user.
|
UserTO |
read(String key)
Reads the any object matching the provided key.
|
PagedResult<UserTO> |
search(AnyQuery anyQuery)
Returns a paged list of any objects matching the given query.
|
javax.ws.rs.core.Response |
status(@NotNull StatusPatch statusPatch)
Performs a status update on given user.
|
javax.ws.rs.core.Response |
update(@NotNull UserPatch userPatch)
Updates user matching the provided key.
|
javax.ws.rs.core.Response |
update(@NotNull UserTO userTO)
Updates user matching the provided key.
|
associate, deassociate, delete, delete, read, read, update
UserTO read(String key)
AnyService
read
in interface AnyService<UserTO>
key
- if value looks like a UUID then it is interpreted as key, otherwise as a (user)namePagedResult<UserTO> search(AnyQuery anyQuery)
AnyService
search
in interface AnyService<UserTO>
anyQuery
- query conditions@POST @Produces(value={"application/json","application/yaml","application/xml"}) @Consumes(value={"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response create(@NotNull @NotNull UserTO userTO, @DefaultValue(value="true") @QueryParam(value="storePassword") boolean storePassword)
userTO
- user to be createdstorePassword
- whether password shall be stored internally@PATCH @Path(value="{key}") @Produces(value={"application/json","application/yaml","application/xml"}) @Consumes(value={"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response update(@NotNull @NotNull UserPatch userPatch)
userPatch
- modification to be applied to user matching the provided key@PUT @Path(value="{key}") @Produces(value={"application/json","application/yaml","application/xml"}) @Consumes(value={"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response update(@NotNull @NotNull UserTO userTO)
userTO
- complete update@POST @Path(value="{key}/status") @Produces(value={"application/json","application/yaml","application/xml"}) @Consumes(value={"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response status(@NotNull @NotNull StatusPatch statusPatch)
statusPatch
- status update detailsCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.