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:
- Reportentity
- ReportTemplateentity: 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 SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected ReportOutputTypeprotected Reportprotected ReportTemplate
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionsetOutputNamePattern(String outputNamePattern) setOutputType(ReportOutputType outputType) setReportTemplate(ReportTemplate reportTemplate) 
- 
Field Details- 
report
- 
reportTemplate
- 
outputType
- 
params
- 
outputNamePattern
 
- 
- 
Constructor Details- 
ReportRunContextpublic ReportRunContext()
- 
ReportRunContext
 
- 
- 
Method Details- 
getReport
- 
setReport
- 
getReportTemplate
- 
setReportTemplate
- 
addParam
- 
getOutputType
- 
setOutputType
- 
getParams
- 
setParams
- 
getOutputNamePattern
- 
setOutputNamePattern
 
-