Interface ReportService
- All Superinterfaces:
ExecutableService
,JAXRSService
- All Known Implementing Classes:
ReportServiceImpl
REST operations for reports.
-
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 TypeMethodDescriptionCreates a new report.void
Deletes report with matching key.exportExecutionResult
(@NotNull String executionKey) Exports the report execution with matching key in the requested format.list()
Returns a list of all existing reports.Returns report with matching key.void
Updates report with matching key.Methods inherited from interface org.apache.syncope.common.rest.api.service.ExecutableService
actionJob, deleteExecution, deleteExecutions, execute, getJob, listExecutions, listJobs, listRecentExecutions
-
Method Details
-
read
@GET @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) ReportTO read(@NotNull @PathParam("key") @NotNull String key) Returns report with matching key.- Parameters:
key
- key of report to be read- Returns:
- report with matching key
-
list
Returns a list of all existing reports.- Returns:
- paged list of existing reports matching the given query
-
create
@POST @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) Response create(@NotNull @NotNull ReportTO reportTO) Creates a new report.- Parameters:
reportTO
- report to be created- Returns:
- Response object featuring Location header of created report
-
update
@PUT @Path("{key}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) void update(@NotNull @NotNull ReportTO reportTO) Updates report with matching key.- Parameters:
reportTO
- report to be stored
-
delete
@DELETE @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) void delete(@NotNull @PathParam("key") @NotNull String key) Deletes report with matching key.- Parameters:
key
- Deletes report with matching key
-
exportExecutionResult
@GET @Path("executions/{executionKey}/stream") @Consumes({"application/json","application/yaml","application/xml"}) Response exportExecutionResult(@NotNull @PathParam("executionKey") @NotNull String executionKey) Exports the report execution with matching key in the requested format.- Parameters:
executionKey
- key of execution report to be selected- Returns:
- a stream for content download
-