Interface ReportService

All Superinterfaces:
ExecutableService, JAXRSService
All Known Implementing Classes:
ReportServiceImpl

@Path("reports") public interface ReportService extends ExecutableService
REST operations for reports.
  • 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

      @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"}) 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