Interface RuleValidationAttribute


public interface RuleValidationAttribute
A simple interface for handling validation of rules. Validation results are returned in a ValidationResults object which consists of a series of error messages regarding the rule. The user who is adding or editing the rule is passed to validate as well as the rule to be validated.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Details

    • validate

      ValidationResults validate(RuleValidationContext validationContext)
      Validates the rule within the given RuleValidationContext.
      Returns:
      a ValidationResults object representing the results of the validation, if this is empty or null this signifies that validation was successful.