Interface ReportService
-
- All Superinterfaces:
ExecutableService,JAXRSService
- All Known Implementing Classes:
ReportServiceImpl
@Path("reports") public interface ReportService extends ExecutableServiceREST 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(@NotNull ReportTO reportTO)Creates a new report.voiddelete(@NotNull String key)Deletes report with matching key.javax.ws.rs.core.ResponseexportExecutionResult(@NotNull String executionKey)Exports the report execution with matching key in the requested format.List<ReportTO>list()Returns a list of all existing reports.ReportTOread(@NotNull String key)Returns report with matching key.voidupdate(@NotNull ReportTO reportTO)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 Detail
-
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
@GET @Produces({"application/json","application/yaml","application/xml"}) List<ReportTO> 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"}) javax.ws.rs.core.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"}) javax.ws.rs.core.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
-
-