Package io.jmix.reports.libintegration
Class CustomFormatter
java.lang.Object
io.jmix.reports.libintegration.CustomFormatter
- All Implemented Interfaces:
com.haulmont.yarg.formatters.CustomReport
@Component("report_CustomFormatter")
@Scope("prototype")
public class CustomFormatter
extends Object
implements com.haulmont.yarg.formatters.CustomReport
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected ClassManager
protected CoreProperties
protected static final ScheduledExecutorService
static final String
protected Report
protected ReportsProperties
protected org.springframework.scripting.ScriptEvaluator
protected ReportTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
createDocument
(com.haulmont.yarg.structure.BandData rootBand) byte[]
createReport
(com.haulmont.yarg.structure.Report report, com.haulmont.yarg.structure.BandData rootBand, Map<String, Object> params) protected byte[]
doReadBytesFromUrl
(String url) protected byte[]
generateReportWithClass
(com.haulmont.yarg.structure.BandData rootBand, String customDefinition) protected byte[]
generateReportWithScript
(com.haulmont.yarg.structure.BandData rootBand, String customDefinition) protected byte[]
generateReportWithUrl
(com.haulmont.yarg.structure.BandData rootBand, String customDefinition)
-
Field Details
-
scriptEvaluator
@Autowired protected org.springframework.scripting.ScriptEvaluator scriptEvaluator -
classManager
-
reportsProperties
-
coreProperties
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
PARAMS
- See Also:
-
executor
-
report
-
template
-
params
-
-
Constructor Details
-
CustomFormatter
-
-
Method Details
-
createReport
public byte[] createReport(com.haulmont.yarg.structure.Report report, com.haulmont.yarg.structure.BandData rootBand, Map<String, Object> params) - Specified by:
createReport
in interfacecom.haulmont.yarg.formatters.CustomReport
-
createDocument
public byte[] createDocument(com.haulmont.yarg.structure.BandData rootBand) -
generateReportWithClass
protected byte[] generateReportWithClass(com.haulmont.yarg.structure.BandData rootBand, String customDefinition) -
generateReportWithScript
protected byte[] generateReportWithScript(com.haulmont.yarg.structure.BandData rootBand, String customDefinition) -
generateReportWithUrl
protected byte[] generateReportWithUrl(com.haulmont.yarg.structure.BandData rootBand, String customDefinition) -
doReadBytesFromUrl
-