Class SyncJobRequestSourceValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.synchronization.validator.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 ofSyncJobData
forSynchronizationFacade
.Rules:
- Source Catalog Version cannot be null
- A catalog version should exist with Source Catalog Version
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SOURCE_VERSION
-
Constructor Summary
Constructors Constructor Description SyncJobRequestSourceValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CatalogExistsPredicate
getCatalogExistsPredicate()
protected CatalogVersionExistsPredicate
getCatalogVersionExistsPredicate()
protected CatalogVersionService
getCatalogVersionService()
void
setCatalogExistsPredicate(CatalogExistsPredicate catalogExistsPredicate)
void
setCatalogVersionExistsPredicate(CatalogVersionExistsPredicate catalogVersionExistsPredicate)
void
setCatalogVersionService(CatalogVersionService catalogVersionService)
boolean
supports(java.lang.Class<?> clazz)
void
validate(java.lang.Object obj, org.springframework.validation.Errors errors)
-
-
-
Field Detail
-
SOURCE_VERSION
public static final java.lang.String SOURCE_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> clazz)
- Specified by:
supports
in interfaceorg.springframework.validation.Validator
-
validate
public void validate(java.lang.Object obj, org.springframework.validation.Errors errors)
- Specified by:
validate
in interfaceorg.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)
-
-