Interface ReportTemplateService

  • All Superinterfaces:
    JAXRSService

    @Path("reportTemplates")
    public interface ReportTemplateService
    extends JAXRSService
    REST operations for report templates.
    • Method Detail

      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<ReportTemplateTO> list()
        Returns a list of all report templates.
        Returns:
        list of all report templates.
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull ReportTemplateTO reportTemplateTO)
        Creates a new report template.
        Parameters:
        reportTemplateTO - Creates a new report template.
        Returns:
        Response object featuring Location header of created report template
      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        ReportTemplateTO read​(@NotNull @PathParam("key")
                              @NotNull String key)
        Returns report template with matching key.
        Parameters:
        key - key of report template to be read
        Returns:
        report template with matching key
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Deletes the report template matching the given key.
        Parameters:
        key - key for report template to be deleted
      • getFormat

        @GET
        @Path("{key}/{format}")
        javax.ws.rs.core.Response getFormat​(@NotNull @PathParam("key")
                                            @NotNull String key,
                                            @NotNull @PathParam("format")
                                            @NotNull ReportTemplateFormat format)
        Gets the template for the given key and format, if available.
        Parameters:
        key - report template
        format - template format
        Returns:
        report template with matching key and format, if available
      • setFormat

        @PUT
        @Path("{key}/{format}")
        void setFormat​(@NotNull @PathParam("key")
                       @NotNull String key,
                       @NotNull @PathParam("format")
                       @NotNull ReportTemplateFormat format,
                       InputStream templateIn)
        Sets the template for the given key and format, if available.
        Parameters:
        key - report template
        format - template format
        templateIn - template to be set
      • removeFormat

        @DELETE
        @Path("{key}/{format}")
        void removeFormat​(@NotNull @PathParam("key")
                          @NotNull String key,
                          @NotNull @PathParam("format")
                          @NotNull ReportTemplateFormat format)
        Removes the template for the given key and format, if available.
        Parameters:
        key - report template
        format - template format