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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogExistsPredicateprotected CatalogVersionExistsPredicateprotected CatalogVersionServicevoidsetCatalogExistsPredicate(CatalogExistsPredicate catalogExistsPredicate) voidsetCatalogVersionExistsPredicate(CatalogVersionExistsPredicate catalogVersionExistsPredicate) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) booleanvoid
-
Field Details
-
SYNCJOBREQUEST
- See Also:
-
CATALOG
- See Also:
-
TARGET_VERSION
- See Also:
-
-
Constructor Details
-
SyncJobRequestValidator
public SyncJobRequestValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
getCatalogVersionService
-
setCatalogVersionService
-
getCatalogVersionExistsPredicate
-
setCatalogVersionExistsPredicate
public void setCatalogVersionExistsPredicate(CatalogVersionExistsPredicate catalogVersionExistsPredicate) -
getCatalogExistsPredicate
-
setCatalogExistsPredicate
-