Interface ReportViewConverterStrategy

All Known Implementing Classes:
AbstractTemplateViewConverterStrategy, DefaultReportViewConverterStrategy, JsonReportViewConverterStrategy

public interface ReportViewConverterStrategy
This interface defines API of strategies used to generate binary representation of the report. The binary content is intended to be saved as a file (PDF, HTML, JSON).
  • Method Details

    • convert

      @Deprecated(since="1811", forRemoval=true) List<ReportConversionData> convert(List<ReportView> reports, Map<String,Object> context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1811
      Converts the given reports to list of generated binary representation of the reports.
      Parameters:
      reports - the list with reports to convert.
      context - a map used to pass in additional data needed by the strategy.
      Returns:
      a list of objects representing the generated files.
    • convert

      default List<ReportConversionData> convert(Stream<ReportView> reports, Map<String,Object> context)
      Converts the given reports to list of generated binary representation of the reports.
      Parameters:
      reports - the list with reports to convert.
      context - a map used to pass in additional data needed by the strategy.
      Returns:
      a list of objects representing the generated files.