Interface AnyObjectService
- All Superinterfaces:
AnyService<AnyObjectTO>
,JAXRSService
- All Known Implementing Classes:
AnyObjectServiceImpl
REST operations for anyObjects.
-
Field Summary
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(@NotNull AnyObjectCR createReq) Creates a new any object.Reads the any object matching the provided key.Returns a paged list of any objects matching the given query.update
(@NotNull AnyObjectUR updateReq) Updates any object matching the provided key.Methods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, update
-
Method Details
-
read
Description copied from interface:AnyService
Reads the any object matching the provided key.- Specified by:
read
in interfaceAnyService<AnyObjectTO>
- Parameters:
key
- if value looks like a UUID then it is interpreted as key, otherwise as a (user)name- Returns:
- any object with matching key
-
read
@GET @Path("byName/{type}/{name}") @Produces({"application/json","application/yaml","application/xml"}) AnyObjectTO read(@NotNull @PathParam("type") @NotNull String type, @NotNull @PathParam("name") @NotNull String name) -
search
Description copied from interface:AnyService
Returns a paged list of any objects matching the given query.- Specified by:
search
in interfaceAnyService<AnyObjectTO>
- Parameters:
anyQuery
- query conditions- Returns:
- paged list of any objects matching the given query
-
create
@POST @Produces({"application/json","application/yaml","application/xml"}) @Consumes({"application/json","application/yaml","application/xml"}) Response create(@NotNull @NotNull AnyObjectCR createReq) Creates a new any object.- Parameters:
createReq
- any object create request- Returns:
- Response object featuring Location header of created any object as well as the any object itself enriched with propagation status information
-
update
@PATCH @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) @Consumes({"application/json","application/yaml","application/xml"}) Response update(@NotNull @NotNull AnyObjectUR updateReq) Updates any object matching the provided key.- Parameters:
updateReq
- modification to be applied to any object matching the provided key- Returns:
- Response object featuring the updated any object enriched with propagation status information
-