Class CustomFormatter

java.lang.Object
io.jmix.reports.libintegration.CustomFormatter
All Implemented Interfaces:
CustomReport

@NullMarked @Component("report_CustomFormatter") @Scope("prototype") public class CustomFormatter extends Object implements CustomReport
  • Field Details

  • Constructor Details

  • Method Details

    • createReport

      public byte[] createReport(Report report, BandData rootBand, Map<String,Object> params)
      Description copied from interface: CustomReport
      Generate output document using given bands structure and data, input parameters and root Report object. The output document may be a file, or a serialized Java object which will be interpreted later, e.g. for displaying in UI.
      Specified by:
      createReport in interface CustomReport
      Parameters:
      report - root Report object
      rootBand - expanded tree structure of bands with their loaded data entries
      params - input parameters
      Returns:
      output document in binary form
    • createDocument

      public byte[] createDocument(BandData rootBand)
    • generateReportWithClass

      protected byte[] generateReportWithClass(BandData rootBand, String customDefinition)
    • generateReportWithScript

      protected byte[] generateReportWithScript(BandData rootBand, String customDefinition)
    • generateReportWithUrl

      protected byte[] generateReportWithUrl(BandData rootBand, String customDefinition)
    • doReadBytesFromUrl

      protected byte[] doReadBytesFromUrl(String url)