Package io.jmix.reports.runner
Class ReportRunContext
java.lang.Object
io.jmix.reports.runner.ReportRunContext
Class stores the following information required for report running:
The instance of the class may be created using the constructor or using the
Creation examples:
Report
entityReportTemplate
entity: if not specified the default template is used- Input parameters
- Type of output document
- Output name pattern
The instance of the class may be created using the constructor or using the
ReportRunner
bean.
Creation examples:
ReportRunContext context = new ReportRunContext(report) .addParam("customer", customer) .addParam("minOrdersDate", date) .setOutputNamePattern("Orders"); ReportRunContext context = new ReportRunContext(report) .setReportTemplate(template) .setOutputType(ReportOutputType.PDF) .setParams(paramsMap);
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected ReportOutputType
protected Report
protected ReportTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetOutputNamePattern
(String outputNamePattern) setOutputType
(ReportOutputType outputType) setReportTemplate
(ReportTemplate reportTemplate)
-
Field Details
-
report
-
reportTemplate
-
outputType
-
params
-
outputNamePattern
-
-
Constructor Details
-
ReportRunContext
public ReportRunContext() -
ReportRunContext
-
-
Method Details
-
getReport
-
setReport
-
getReportTemplate
-
setReportTemplate
-
addParam
-
getOutputType
-
setOutputType
-
getParams
-
setParams
-
getOutputNamePattern
-
setOutputNamePattern
-