Package io.jmix.reports.libintegration
Class CustomFormatter
java.lang.Object
io.jmix.reports.libintegration.CustomFormatter
- All Implemented Interfaces:
CustomReport
@Component("report_CustomFormatter")
@Scope("prototype")
public class CustomFormatter
extends Object
implements CustomReport
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ClassManagerprotected CorePropertiesprotected static final ScheduledExecutorServicestatic final Stringprotected Reportprotected ReportsPropertiesprotected org.springframework.scripting.ScriptEvaluatorprotected ReportTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]createDocument(BandData rootBand) byte[]Generate output document using given bands structure and data, input parameters and root Report object.protected byte[]doReadBytesFromUrl(String url) protected byte[]generateReportWithClass(BandData rootBand, String customDefinition) protected byte[]generateReportWithScript(BandData rootBand, String customDefinition) protected byte[]generateReportWithUrl(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
Description copied from interface:CustomReportGenerate output document using given bands structure and data, input parameters and root Report object. The output document may be a file, or a serialized Java object which will be interpreted later, e.g. for displaying in UI.- Specified by:
createReportin interfaceCustomReport- Parameters:
report- root Report objectrootBand- expanded tree structure of bands with their loaded data entriesparams- input parameters- Returns:
- output document in binary form
-
createDocument
-
generateReportWithClass
-
generateReportWithScript
-
generateReportWithUrl
-
doReadBytesFromUrl
-