Package io.jmix.reportsflowui.view
Class ReportParameterValidator
java.lang.Object
io.jmix.reportsflowui.view.ReportParameterValidator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final GroovyScriptParametersProvider
protected final Scripting
-
Constructor Summary
ConstructorDescriptionReportParameterValidator
(GroovyScriptParametersProvider groovyScriptParametersProvider, Scripting scripting) -
Method Summary
Modifier and TypeMethodDescriptioncreateScriptContext
(Map<String, Object> contextParameters) void
crossValidateParameters
(Report report, Map<String, Object> reportParameters) Performs cross field parameters validation before running the report.protected void
runValidationScript
(String groovyScript, Map<String, Object> scriptContext) void
validateParameterValue
(ReportInputParameter parameter, Object value) Checking validation for an input parameter field before running the report.
-
Field Details
-
groovyScriptParametersProvider
-
scripting
-
-
Constructor Details
-
ReportParameterValidator
public ReportParameterValidator(GroovyScriptParametersProvider groovyScriptParametersProvider, Scripting scripting)
-
-
Method Details
-
validateParameterValue
Checking validation for an input parameter field before running the report.- Parameters:
parameter
- data info which describes report's parametervalue
- parameter's value
-
crossValidateParameters
Performs cross field parameters validation before running the report.- Parameters:
report
- report instancereportParameters
- map of parameters values taken from components
-
runValidationScript
-
createScriptContext
-