@Path(value="users") public interface UserService extends AnyService<UserTO>
PARAM_ANYTYPE_KIND, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_RESOURCE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(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(StatusPatch statusPatch)
Performs a status update on given user.
|
javax.ws.rs.core.Response |
update(UserPatch userPatch)
Updates user matching the provided key.
|
javax.ws.rs.core.Response |
update(UserTO userTO)
Updates user matching the provided key.
|
associate, bulk, deassociate, delete, delete, read, read, updateUserTO read(String key)
AnyServiceread 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)
AnyServicesearch 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
UserTO userTO,
@DefaultValue(value="true") @QueryParam(value="storePassword")
boolean storePassword)
userTO - user to be createdstorePassword - whether password shall be stored internally@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
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
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
StatusPatch statusPatch)
statusPatch - status update detailsCopyright © 2010–2019 The Apache Software Foundation. All rights reserved.