Package io.jmix.reports.libintegration
Class JmixJsonDataLoader
java.lang.Object
com.haulmont.yarg.loaders.impl.AbstractDataLoader
com.haulmont.yarg.loaders.impl.JsonDataLoader
io.jmix.reports.libintegration.JmixJsonDataLoader
- All Implemented Interfaces:
com.haulmont.yarg.loaders.ReportDataLoader
public class JmixJsonDataLoader
extends com.haulmont.yarg.loaders.impl.JsonDataLoader
-
Field Summary
Modifier and TypeFieldDescriptionprotected GroovyScriptParametersProvider
protected Resources
protected com.haulmont.yarg.util.groovy.Scripting
Fields inherited from class com.haulmont.yarg.loaders.impl.JsonDataLoader
parameterPattern
Fields inherited from class com.haulmont.yarg.loaders.impl.AbstractDataLoader
fieldsConverter, parametersConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getJsonPathScript
(com.haulmont.yarg.structure.ReportQuery reportQuery) protected String
getJsonSourceText
(com.haulmont.yarg.structure.ReportQuery reportQuery) loadData
(com.haulmont.yarg.structure.ReportQuery reportQuery, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> reportParams) loadDataFromGroovyScript
(com.haulmont.yarg.structure.ReportQuery reportQuery, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> reportParams) loadDataFromParameter
(com.haulmont.yarg.structure.ReportQuery reportQuery, Map<String, Object> reportParams) loadDataFromUrl
(com.haulmont.yarg.structure.ReportQuery reportQuery) protected String
readJsonFromGroovyScript
(com.haulmont.yarg.structure.ReportQuery reportQuery, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> reportParams) protected String
readJsonFromParameter
(com.haulmont.yarg.structure.ReportQuery reportQuery, Map<String, Object> reportParams) protected String
readJsonFromUrl
(String url) Methods inherited from class com.haulmont.yarg.loaders.impl.JsonDataLoader
addParentBandDataToParameters, addParentBandDataToParametersRecursively, copyParameters, createMap, extractScriptResult, getParameterName, loadDataFromScript, parseScriptResult
Methods inherited from class com.haulmont.yarg.loaders.impl.AbstractDataLoader
convertOutputValue, convertParameter, getFieldsConverter, getParametersConverter, setFieldsConverter, setParametersConverter
-
Field Details
-
scripting
protected com.haulmont.yarg.util.groovy.Scripting scripting -
groovyScriptParametersProvider
-
resources
-
-
Constructor Details
-
JmixJsonDataLoader
@Autowired public JmixJsonDataLoader(com.haulmont.yarg.util.groovy.Scripting scripting)
-
-
Method Details
-
loadData
public List<Map<String,Object>> loadData(com.haulmont.yarg.structure.ReportQuery reportQuery, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> reportParams) - Specified by:
loadData
in interfacecom.haulmont.yarg.loaders.ReportDataLoader
- Overrides:
loadData
in classcom.haulmont.yarg.loaders.impl.JsonDataLoader
-
loadDataFromParameter
-
loadDataFromGroovyScript
-
loadDataFromUrl
-
readJsonFromGroovyScript
-
readJsonFromUrl
-
getJsonSourceText
-
getJsonPathScript
-
readJsonFromParameter
-