Package io.jmix.reportsui.screen
Class ReportParameterValidator
java.lang.Object
io.jmix.reportsui.screen.ReportParameterValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected CurrentAuthenticationprotected DataManagerprotected Metadataprotected org.springframework.scripting.ScriptEvaluator -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
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
-