Interface RemediationService
-
- All Superinterfaces:
JAXRSService
- All Known Implementing Classes:
RemediationServiceImpl
@Path("remediations") public interface RemediationService extends JAXRSServiceREST operations for remediations.
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Responsedelete(@NotNull String key)Deletes the remediation matching the given key.PagedResult<RemediationTO>list(RemediationQuery query)Returns a list of all remediations.RemediationTOread(@NotNull String key)Returns remediation with matching key.javax.ws.rs.core.Responseremedy(@NotNull String remediationKey, @NotNull String anyKey)Perform remediation by deleting the provided user, group or any object.javax.ws.rs.core.Responseremedy(@NotNull String remediationKey, @NotNull AnyCR createReq)Perform remediation by creating the provided user, group or any object.javax.ws.rs.core.Responseremedy(@NotNull String remediationKey, @NotNull AnyUR updateReq)Perform remediation by updating the provided user, group or any object.
-
-
-
Method Detail
-
list
@GET @Produces({"application/json","application/yaml","application/xml"}) PagedResult<RemediationTO> list(@BeanParam RemediationQuery query)Returns a list of all remediations.- Parameters:
query- query conditions- Returns:
- list of all remediations.
-
read
@GET @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) RemediationTO read(@NotNull @PathParam("key") @NotNull String key)Returns remediation with matching key.- Parameters:
key- key of remediation to be read- Returns:
- remediation with matching key
-
delete
@DELETE @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response delete(@NotNull @PathParam("key") @NotNull String key)Deletes the remediation matching the given key.- Parameters:
key- key for remediation to be deleted- Returns:
- an empty response if operation was successful
-
remedy
@POST @Path("{remediationKey}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response remedy(@NotNull @PathParam("remediationKey") @NotNull String remediationKey, @NotNull @NotNull AnyCR createReq)Perform remediation by creating the provided user, group or any object.- Parameters:
remediationKey- key for remediation to act oncreateReq- user, group or any object to create- Returns:
- Response object featuring Location header of created object as well as the object itself enriched with propagation status information
-
remedy
@PATCH @Path("{remediationKey}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response remedy(@NotNull @PathParam("remediationKey") @NotNull String remediationKey, @NotNull @NotNull AnyUR updateReq)Perform remediation by updating the provided user, group or any object.- Parameters:
remediationKey- key for remediation to act onupdateReq- user, group or any object to update- Returns:
- Response object featuring the updated object enriched with propagation status information
-
remedy
@DELETE @Path("{remediationKey}/{anyKey}") @Produces({"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response remedy(@NotNull @PathParam("remediationKey") @NotNull String remediationKey, @NotNull @PathParam("anyKey") @NotNull String anyKey)Perform remediation by deleting the provided user, group or any object.- Parameters:
remediationKey- key for remediation to act onanyKey- user's, group's or any object's key to delete- Returns:
- Response object featuring the deleted object enriched with propagation status information
-
-