Interface FacadeValidationService

  • All Known Implementing Classes:
    DefaultFacadeValidationService

    public interface FacadeValidationService
    Service used to perform validation in the facade.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void validate​(org.springframework.validation.Validator validator, java.lang.Object validatee)
      Validate the given DTO.
      void validate​(org.springframework.validation.Validator validator, java.lang.Object validatee, java.lang.Object bindingObject)
      Validate the given DTO.
    • Method Detail

      • validate

        void validate​(org.springframework.validation.Validator validator,
                      java.lang.Object validatee)
               throws ValidationException
        Validate the given DTO.
        Parameters:
        validator - - the validator to use for the validation
        validatee - - the object being validated
        Throws:
        ValidationException - when validation errors were found
      • validate

        void validate​(org.springframework.validation.Validator validator,
                      java.lang.Object validatee,
                      java.lang.Object bindingObject)
               throws ValidationException
        Validate the given DTO.
        Parameters:
        validator - - the validator to use for the validation
        validatee - - the object being validated
        bindingObject - - the object to use for binding the field errors
        Throws:
        ValidationException - when validation errors were found