Interface ReportViewConverterStrategy
-
- All Known Implementing Classes:
AbstractTemplateViewConverterStrategy,DefaultReportViewConverterStrategy,JsonReportViewConverterStrategy
public interface ReportViewConverterStrategyThis 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.util.List<ReportConversionData>convert(java.util.List<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context)Deprecated, for removal: This API element is subject to removal in a future version.since 1811default java.util.List<ReportConversionData>convert(java.util.stream.Stream<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context)Converts the given reports to list of generated binary representation of the reports.
-
-
-
Method Detail
-
convert
@Deprecated(since="1811", forRemoval=true) java.util.List<ReportConversionData> convert(java.util.List<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context)Deprecated, for removal: This API element is subject to removal in a future version.since 1811Converts 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 java.util.List<ReportConversionData> convert(java.util.stream.Stream<ReportView> reports, java.util.Map<java.lang.String,java.lang.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.
-
-