Class ReportParameterValidator

java.lang.Object
io.jmix.reportsui.screen.ReportParameterValidator

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

    • metadata

      @Autowired protected Metadata metadata
    • dataManager

      @Autowired protected DataManager dataManager
    • scripting

      @Autowired protected org.springframework.scripting.ScriptEvaluator scripting
    • currentAuthentication

      @Autowired protected CurrentAuthentication currentAuthentication
    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • ReportParameterValidator

      public ReportParameterValidator()
  • 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)