Interface ValidationContext

All Known Implementing Classes:
DefaultValidationContext

public interface ValidationContext
A context for a validator to use to access user data and report validation failures.
Author:
Keith Donald, Scott Andrews
  • Method Details

    • getMessageContext

      MessageContext getMessageContext()
      A context for adding failure messages to display to the user directly.
    • getUserPrincipal

      Principal getUserPrincipal()
      The current user.
    • getUserEvent

      String getUserEvent()
      The current user event that triggered validation.
    • getUserValue

      Object getUserValue(String property)
      Obtain the value entered by the current user in the UI field bound to the property provided.
      Parameters:
      property - the name of a bound property
      Returns:
      the value the user entered in the field bound to the property