Class SyncJobRequestValidator

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

    public class SyncJobRequestValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Validates the DTO of SyncJobData for SynchronizationFacade.

    Rules:

    • Catalog ID cannot be null
    • A catalog should exist with Catalog ID
    • Target Catalog Version cannot be null
    • A catalog version should exist with Target Catalog Version
    • syncJobRequest cannot be null

    • Constructor Detail

      • SyncJobRequestValidator

        public SyncJobRequestValidator()
    • 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)