Package io.jmix.reports.yarg.reporting
Class Reporting
java.lang.Object
io.jmix.reports.yarg.reporting.Reporting
- All Implemented Interfaces:
ReportingAPI
- Direct Known Subclasses:
JmixReporting
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataExtractor
protected ReportFormatterFactory
protected org.slf4j.Logger
protected ObjectToStringConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ReportOutputDocument
createReportOutputDocument
(Report report, ReportOutputType outputType, String outputName, BandData rootBand) protected void
generateReport
(Report report, ReportTemplate reportTemplate, ReportOutputType outputType, OutputStream outputStream, Map<String, Object> handledParams, BandData rootBand) handleParameters
(Report report, Map<String, Object> params) protected BandData
loadBandData
(Report report, Map<String, Object> handledParams) protected void
protected void
protected String
resolveOutputFileName
(RunParams runParams, BandData rootBand) This method generates report and put result to ReportOutputDocument.content fieldrunReport
(RunParams runParams, OutputStream outputStream) This method generates report and put result to output stream.void
setDataExtractor
(DataExtractorImpl dataExtractor) void
setFormatterFactory
(ReportFormatterFactory formatterFactory) void
setLoaderFactory
(ReportLoaderFactory loaderFactory) void
setObjectToStringConverter
(ObjectToStringConverter objectToStringConverter)
-
Field Details
-
formatterFactory
-
dataExtractor
-
objectToStringConverter
-
logger
protected org.slf4j.Logger logger
-
-
Constructor Details
-
Reporting
public Reporting()
-
-
Method Details
-
setFormatterFactory
-
setLoaderFactory
-
setDataExtractor
-
setObjectToStringConverter
-
runReport
Description copied from interface:ReportingAPI
This method generates report and put result to output stream. ! Attention : ReportOutputDocument.content field is null in this case !- Specified by:
runReport
in interfaceReportingAPI
- Parameters:
runParams
- - parameters for report printingoutputStream
- - the stream which accept binary file generated by reporting- Returns:
- ReportOutputDocument - object which describes generated report - its name, type etc
-
runReport
Description copied from interface:ReportingAPI
This method generates report and put result to ReportOutputDocument.content field- Specified by:
runReport
in interfaceReportingAPI
- Parameters:
runParams
- - parameters for report printing- Returns:
- ReportOutputDocument - object which describes generated report - its name, type etc
-
generateReport
protected void generateReport(Report report, ReportTemplate reportTemplate, ReportOutputType outputType, OutputStream outputStream, Map<String, Object> handledParams, BandData rootBand) -
loadBandData
-
handleParameters
-
logReport
-
logException
-
createReportOutputDocument
protected ReportOutputDocument createReportOutputDocument(Report report, ReportOutputType outputType, String outputName, BandData rootBand) -
resolveOutputFileName
-