public class JsonReportViewConverterStrategy extends java.lang.Object implements ReportViewConverterStrategy
ReportViewConverterStrategy generated JSON representation of the given collection of
ReportViews.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_FILE_NAME |
| Constructor and Description |
|---|
JsonReportViewConverterStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ReportConversionData> |
convert(java.util.List<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.
|
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.
|
protected byte[] |
convertToJson(java.util.List<ReportView> reports,
java.util.Map<java.lang.String,java.lang.Object> context)
Deprecated.
since 1811
|
protected java.io.InputStream |
convertToJson(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.
|
java.lang.String |
getReportName() |
void |
setReportName(java.lang.String reportName)
Sets a name of the report.
|
public static final java.lang.String DEFAULT_FILE_NAME
public java.util.List<ReportConversionData> convert(java.util.List<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context)
ReportViewConverterStrategyconvert in interface ReportViewConverterStrategyreports - the list with reports to convert.context - a map used to pass in additional data needed by the strategy.public java.util.List<ReportConversionData> convert(java.util.stream.Stream<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context)
ReportViewConverterStrategyconvert in interface ReportViewConverterStrategyreports - the list with reports to convert.context - a map used to pass in additional data needed by the strategy.@Deprecated protected byte[] convertToJson(java.util.List<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
reports - the list with reports to convert.context - a map used to pass in additional data needed by the strategy.java.io.IOException - if any I/O errors occurred.protected java.io.InputStream convertToJson(java.util.stream.Stream<ReportView> reports, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
reports - the list with reports to convert.context - a map used to pass in additional data needed by the strategy.java.io.IOException - if any I/O errors occurred.public java.lang.String getReportName()
public void setReportName(java.lang.String reportName)
DEFAULT_FILE_NAME.reportName - the report name.Copyright © 2018 SAP SE. All Rights Reserved.