Class ComponentExistsInSlotValidator
java.lang.Object
de.hybris.platform.cmsfacades.pagescontentslotscomponents.validator.ComponentExistsInSlotValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class ComponentExistsInSlotValidator
extends Object
implements org.springframework.validation.Validator
Validates DTO for adding existing component to content slot.
component already in content slot:
Rules:
ComponentAlreadyInContentSlotPredicate-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<ComponentAndContentSlotValidationDto>protected ValidationDtoFactoryvoidsetComponentAlreadyInContentSlotPredicate(Predicate<ComponentAndContentSlotValidationDto> componentAlreadyInContentSlotPredicate) voidsetComponentExistsPredicate(Predicate<String> componentExistsPredicate) voidsetValidationDtoFactory(ValidationDtoFactory validationDtoFactory) booleanvoid
-
Field Details
-
COMPONENT_ID
- See Also:
-
-
Constructor Details
-
ComponentExistsInSlotValidator
public ComponentExistsInSlotValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
getComponentAlreadyInContentSlotPredicate
protected Predicate<ComponentAndContentSlotValidationDto> getComponentAlreadyInContentSlotPredicate() -
setComponentAlreadyInContentSlotPredicate
public void setComponentAlreadyInContentSlotPredicate(Predicate<ComponentAndContentSlotValidationDto> componentAlreadyInContentSlotPredicate) -
getComponentExistsPredicate
-
setComponentExistsPredicate
-
getValidationDtoFactory
-
setValidationDtoFactory
-