Class SpreadsheetRestService

java.lang.Object
org.imixs.workflow.poi.SpreadsheetRestService

@Path("/poi") @Produces({"application/xml","application/json","text/html","text/xml"}) public class SpreadsheetRestService extends Object
The SpreadsheetRestService provides a Rest API resource to export the result of a Imixs Report into a .xlsx spredsheet file. The implementation is based on Apache POI.
Version:
1.0
Author:
rsoika
  • Constructor Details

    • SpreadsheetRestService

      public SpreadsheetRestService()
  • Method Details

    • getPOIResult

      @GET @Produces("application/vnd.ms-excel") @Path("report/{name}.xlsx") public jakarta.ws.rs.core.Response getPOIResult(@PathParam("name") String reportName, @DefaultValue("1000") @QueryParam("pageSize") int pageSize, @DefaultValue("0") @QueryParam("pageIndex") int pageIndex, @QueryParam("sortBy") String sortBy, @QueryParam("sortReverse") boolean sortReverse, @DefaultValue("") @QueryParam("encoding") String encoding, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletResponse servlerResponse)
      Returns a excel file with the report data
      Parameters:
      name - reportname or uniqueid of report
      Returns: