Class ReportParameterValidator

java.lang.Object
io.jmix.reportsflowui.view.ReportParameterValidator

@Component("report_ReportParameterValidator") public class ReportParameterValidator extends Object
  • Field Details

    • metadata

      protected final Metadata metadata
    • dataManager

      protected final DataManager dataManager
    • scripting

      protected final org.springframework.scripting.ScriptEvaluator scripting
    • currentAuthentication

      protected final CurrentAuthentication 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

      public void validateParameterValue(ReportInputParameter parameter, Object value)
      Checking validation for an input parameter field before running the report.
      Parameters:
      parameter - data info which describes report's parameter
      value - parameter's value
    • crossValidateParameters

      public void crossValidateParameters(Report report, Map<String,Object> reportParameters)
      Performs cross field parameters validation before running the report.
      Parameters:
      report - report instance
      reportParameters - map of parameters values taken from components
    • runValidationScript

      protected void runValidationScript(String groovyScript, Map<String,Object> scriptContext)
    • createScriptContext

      protected Map<String,Object> createScriptContext(Map<String,Object> contextParameters)
    • addCommonContext

      protected void addCommonContext(Map<String,Object> context)
    • invalidThrowMethod

      protected void invalidThrowMethod(String message)