Class ReportsSerialization

java.lang.Object
io.jmix.reports.ReportsSerialization

@Component("report_ReportsSerialization") public class ReportsSerialization extends Object
Class to serialize and deserialize reports
  • Field Details

  • Constructor Details

    • ReportsSerialization

      public ReportsSerialization()
  • Method Details

    • convertToString

      public String convertToString(Report report)
      Serializes specified report to JSON string.
      Parameters:
      report - report
      Returns:
      report that serialized to JSON
    • convertToReport

      public Report convertToReport(String serializedReport)
      Deserializes a report from a specified string
      Parameters:
      serializedReport - serialized report in XML or JSON string
      Returns:
      report entity