Class SyncJobRequestValidator

java.lang.Object
de.hybris.platform.cmsfacades.synchronization.validator.SyncJobRequestValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class SyncJobRequestValidator extends 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

  • Field Details

  • Constructor Details

    • SyncJobRequestValidator

      public SyncJobRequestValidator()
  • Method Details

    • supports

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

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

      protected CatalogVersionService getCatalogVersionService()
    • setCatalogVersionService

      public void setCatalogVersionService(CatalogVersionService catalogVersionService)
    • getCatalogVersionExistsPredicate

      protected CatalogVersionExistsPredicate getCatalogVersionExistsPredicate()
    • setCatalogVersionExistsPredicate

      public void setCatalogVersionExistsPredicate(CatalogVersionExistsPredicate catalogVersionExistsPredicate)
    • getCatalogExistsPredicate

      protected CatalogExistsPredicate getCatalogExistsPredicate()
    • setCatalogExistsPredicate

      public void setCatalogExistsPredicate(CatalogExistsPredicate catalogExistsPredicate)