Class SyncJobRequestSourceValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    public class SyncJobRequestSourceValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Provides additional validation to the DTO of SyncJobData for SynchronizationFacade.

    Rules:

    • Source Catalog Version cannot be null
    • A catalog version should exist with Source Catalog Version

    • Constructor Detail

      • SyncJobRequestSourceValidator

        public SyncJobRequestSourceValidator()
    • Method Detail

      • supports

        public boolean supports​(java.lang.Class<?> clazz)
        Specified by:
        supports in interface org.springframework.validation.Validator
      • validate

        public void validate​(java.lang.Object obj,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • setCatalogVersionExistsPredicate

        public void setCatalogVersionExistsPredicate​(CatalogVersionExistsPredicate catalogVersionExistsPredicate)
      • setCatalogExistsPredicate

        public void setCatalogExistsPredicate​(CatalogExistsPredicate catalogExistsPredicate)