Package io.jmix.reports.libintegration
Class JmixGroovyScriptParametersProvider
java.lang.Object
io.jmix.reports.libintegration.JmixGroovyScriptParametersProvider
- All Implemented Interfaces:
GroovyScriptParametersProvider
@Component("report_GroovyParametersProvider")
public class JmixGroovyScriptParametersProvider
extends Object
implements GroovyScriptParametersProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface that throws exceptions in a Groovy script. -
Field Summary
Modifier and TypeFieldDescriptionprotected final org.springframework.context.ApplicationContext
protected final CurrentAuthentication
protected final DataManager
protected final Messages
protected final Metadata
protected final ReportsProperties
protected final TimeSource
-
Constructor Summary
ConstructorDescriptionJmixGroovyScriptParametersProvider
(ReportsProperties reportsProperties, Metadata metadata, DataManager dataManager, CurrentAuthentication currentAuthentication, TimeSource timeSource, org.springframework.context.ApplicationContext applicationContext, Messages messages) -
Method Summary
Modifier and TypeMethodDescriptiongetParametersForDatasetParameters
(ReportQuery reportQuery, BandData parentBand, Map<String, Object> reportParameters) Prepares and return the map of objectsPrepares and return the map of objects for value formatterPrepares and return the map of objects
-
Field Details
-
reportsProperties
-
metadata
-
dataManager
-
currentAuthentication
-
timeSource
-
applicationContext
protected final org.springframework.context.ApplicationContext applicationContext -
messages
-
-
Constructor Details
-
JmixGroovyScriptParametersProvider
public JmixGroovyScriptParametersProvider(ReportsProperties reportsProperties, Metadata metadata, DataManager dataManager, CurrentAuthentication currentAuthentication, TimeSource timeSource, org.springframework.context.ApplicationContext applicationContext, Messages messages)
-
-
Method Details
-
getParametersForDatasetParameters
public Map<String,Object> getParametersForDatasetParameters(ReportQuery reportQuery, BandData parentBand, Map<String, Object> reportParameters) Description copied from interface:GroovyScriptParametersProvider
Prepares and return the map of objects- Specified by:
getParametersForDatasetParameters
in interfaceGroovyScriptParametersProvider
- Parameters:
reportQuery
- report queryparentBand
- parent bandreportParameters
- - parameters to include into the map of parameters- Returns:
- map of objects
-
getParametersForValidationParameters
Description copied from interface:GroovyScriptParametersProvider
Prepares and return the map of objects- Specified by:
getParametersForValidationParameters
in interfaceGroovyScriptParametersProvider
- Returns:
- map of objects
-
getParametersForFormatterParameters
Description copied from interface:GroovyScriptParametersProvider
Prepares and return the map of objects for value formatter- Specified by:
getParametersForFormatterParameters
in interfaceGroovyScriptParametersProvider
- Returns:
- map of objects
-
getCommonParameters
-
createParameterValidationExceptionCallable
protected JmixGroovyScriptParametersProvider.ExceptionCallable createParameterValidationExceptionCallable() -
createDatasetValidationExceptionCallable
protected JmixGroovyScriptParametersProvider.ExceptionCallable createDatasetValidationExceptionCallable()
-