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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface that throws exceptions in a Groovy script. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.springframework.context.ApplicationContextprotected final CurrentAuthenticationprotected final DataManagerprotected final Messagesprotected final Metadataprotected final ReportsPropertiesprotected final TimeSource -
Constructor Summary
ConstructorsConstructorDescriptionJmixGroovyScriptParametersProvider(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
-
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:GroovyScriptParametersProviderPrepares and return the map of objects- Specified by:
getParametersForDatasetParametersin interfaceGroovyScriptParametersProvider- Parameters:
reportQuery- report queryparentBand- parent bandreportParameters- - parameters to include into the map of parameters- Returns:
- map of objects
-
getParametersForValidationParameters
Description copied from interface:GroovyScriptParametersProviderPrepares and return the map of objects- Specified by:
getParametersForValidationParametersin interfaceGroovyScriptParametersProvider- Returns:
- map of objects
-
getCommonParameters
-
createParameterValidationExceptionCallable
protected JmixGroovyScriptParametersProvider.ExceptionCallable createParameterValidationExceptionCallable() -
createDatasetValidationExceptionCallable
protected JmixGroovyScriptParametersProvider.ExceptionCallable createDatasetValidationExceptionCallable()
-