Class SyncJobRequestValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.synchronization.validator.SyncJobRequestValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class SyncJobRequestValidator extends java.lang.Object implements org.springframework.validation.Validator
Validates the DTO ofSyncJobData
forSynchronizationFacade
.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 Modifier and Type Field Description static java.lang.String
CATALOG
static java.lang.String
SYNCJOBREQUEST
static java.lang.String
TARGET_VERSION
-
Constructor Summary
Constructors Constructor Description SyncJobRequestValidator()
-
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
-
SYNCJOBREQUEST
public static final java.lang.String SYNCJOBREQUEST
- See Also:
- Constant Field Values
-
CATALOG
public static final java.lang.String CATALOG
- See Also:
- Constant Field Values
-
TARGET_VERSION
public static final java.lang.String TARGET_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)
-
-