Package io.jmix.reportsflowui.view
Class ReportParameterValidator
java.lang.Object
io.jmix.reportsflowui.view.ReportParameterValidator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.springframework.context.ApplicationContext
protected final CurrentAuthentication
protected final DataManager
protected final Metadata
protected final org.springframework.scripting.ScriptEvaluator
-
Constructor Summary
ConstructorDescriptionReportParameterValidator
(Metadata metadata, DataManager dataManager, org.springframework.scripting.ScriptEvaluator scripting, CurrentAuthentication currentAuthentication, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCommonContext
(Map<String, Object> context) createScriptContext
(Map<String, Object> contextParameters) void
crossValidateParameters
(Report report, Map<String, Object> reportParameters) Performs cross field parameters validation before running the report.protected void
invalidThrowMethod
(String message) 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
-
metadata
-
dataManager
-
scripting
protected final org.springframework.scripting.ScriptEvaluator scripting -
currentAuthentication
-
applicationContext
protected final org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
ReportParameterValidator
public ReportParameterValidator(Metadata metadata, DataManager dataManager, org.springframework.scripting.ScriptEvaluator scripting, CurrentAuthentication currentAuthentication, org.springframework.context.ApplicationContext applicationContext)
-
-
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
-
addCommonContext
-
invalidThrowMethod
-