Package io.jmix.reports.libintegration
Class JmixJsonDataLoader
java.lang.Object
io.jmix.reports.yarg.loaders.impl.AbstractDataLoader
io.jmix.reports.yarg.loaders.impl.JsonDataLoader
io.jmix.reports.libintegration.JmixJsonDataLoader
- All Implemented Interfaces:
ReportDataLoader
-
Field Summary
Modifier and TypeFieldDescriptionprotected GroovyScriptParametersProvider
protected Resources
protected Scripting
Fields inherited from class io.jmix.reports.yarg.loaders.impl.JsonDataLoader
parameterPattern
Fields inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDataLoader
fieldsConverter, parametersConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getJsonPathScript
(ReportQuery reportQuery) protected String
getJsonSourceText
(ReportQuery reportQuery) This method MUST return list of mutable maps.loadDataFromGroovyScript
(ReportQuery reportQuery, BandData parentBand, Map<String, Object> reportParams) loadDataFromParameter
(ReportQuery reportQuery, Map<String, Object> reportParams) loadDataFromUrl
(ReportQuery reportQuery) protected String
readJsonFromGroovyScript
(ReportQuery reportQuery, BandData parentBand, Map<String, Object> reportParams) protected String
readJsonFromParameter
(ReportQuery reportQuery, Map<String, Object> reportParams) protected String
readJsonFromUrl
(String url) Methods inherited from class io.jmix.reports.yarg.loaders.impl.JsonDataLoader
addParentBandDataToParameters, addParentBandDataToParametersRecursively, copyParameters, createMap, extractScriptResult, getParameterName, loadDataFromScript, parseScriptResult
Methods inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDataLoader
convertOutputValue, convertParameter, getFieldsConverter, getParametersConverter, setFieldsConverter, setParametersConverter
-
Field Details
-
scripting
-
groovyScriptParametersProvider
-
resources
-
-
Constructor Details
-
JmixJsonDataLoader
-
-
Method Details
-
loadData
public List<Map<String,Object>> loadData(ReportQuery reportQuery, BandData parentBand, Map<String, Object> reportParams) Description copied from interface:ReportDataLoader
This method MUST return list of mutable maps. We need mutability to put there some values implicitly.- Specified by:
loadData
in interfaceReportDataLoader
- Overrides:
loadData
in classJsonDataLoader
-
loadDataFromParameter
-
loadDataFromGroovyScript
-
loadDataFromUrl
-
readJsonFromGroovyScript
-
readJsonFromUrl
-
getJsonSourceText
-
getJsonPathScript
-
readJsonFromParameter
-