Interface ContentValidator

All Known Implementing Classes:
AbstractContentValidator, AbstractIntervalValidator, AbstractNumberIntervalValidator, AbstractRepeaterWithUniqueContentValidator, CourseListChoiceValidator, DateIntervalValidator, DateTimeIntervalValidator, DegreesInCategoryConsistencyValidator, DoubleIntervalValidator, LongIntervalValidator, NormeValidator, PotentielEnseignantValidator, ProgramItemHierarchyValidator

public interface ContentValidator
Global validator for Content
  • Method Details

    • setContentType

      void setContentType(ContentType cTypeId)
      Set the content type
      Parameters:
      cTypeId - The content type
    • getContentType

      Get the content type
      Returns:
      ContentType
    • validate

      void validate(Content content, Errors errors)
      Validates a content.
      Parameters:
      content - the content to validate
      errors - the structure to populate if the validation failed.
    • validate

      void validate(Content content, Map<String,Object> values, View view, Errors errors)
      Validates a content being edited
      Parameters:
      content - the content to validate
      values - the values being set
      view - the view
      errors - the structure to populate if the validation failed.