Package io.jmix.reportsui.screen
Class ReportParameterValidator
java.lang.Object
io.jmix.reportsui.screen.ReportParameterValidator
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected CurrentAuthentication
protected DataManager
protected Metadata
protected org.springframework.scripting.ScriptEvaluator
-
Constructor Summary
-
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
@Autowired protected org.springframework.scripting.ScriptEvaluator scripting -
currentAuthentication
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
ReportParameterValidator
public ReportParameterValidator()
-
-
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
-