Package io.jmix.reportsui.screen
Class ReportParameterValidator
java.lang.Object
io.jmix.reportsui.screen.ReportParameterValidator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected CurrentAuthenticationprotected DataManagerprotected Metadataprotected org.springframework.scripting.ScriptEvaluator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCommonContext(Map<String, Object> context) createScriptContext(Map<String, Object> contextParameters) voidcrossValidateParameters(Report report, Map<String, Object> reportParameters) Performs cross field parameters validation before running the report.protected voidinvalidThrowMethod(String message) protected voidrunValidationScript(String groovyScript, Map<String, Object> scriptContext) voidvalidateParameterValue(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- 
ReportParameterValidatorpublic ReportParameterValidator()
 
- 
- 
Method Details- 
validateParameterValueChecking validation for an input parameter field before running the report.- Parameters:
- parameter- data info which describes report's parameter
- value- parameter's value
 
- 
crossValidateParametersPerforms cross field parameters validation before running the report.- Parameters:
- report- report instance
- reportParameters- map of parameters values taken from components
 
- 
runValidationScript
- 
createScriptContext
- 
addCommonContext
- 
invalidThrowMethod
 
-