Class ComponentExistsInSlotValidator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pagescontentslotscomponents.validator.ComponentExistsInSlotValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class ComponentExistsInSlotValidator extends java.lang.Object implements org.springframework.validation.ValidatorValidates DTO for adding existing component to content slot.Rules:
- component already in content slot:
ComponentAlreadyInContentSlotPredicate
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_ID
-
Constructor Summary
Constructors Constructor Description ComponentExistsInSlotValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.function.Predicate<ComponentAndContentSlotValidationDto>getComponentAlreadyInContentSlotPredicate()protected java.util.function.Predicate<java.lang.String>getComponentExistsPredicate()protected ValidationDtoFactorygetValidationDtoFactory()voidsetComponentAlreadyInContentSlotPredicate(java.util.function.Predicate<ComponentAndContentSlotValidationDto> componentAlreadyInContentSlotPredicate)voidsetComponentExistsPredicate(java.util.function.Predicate<java.lang.String> componentExistsPredicate)voidsetValidationDtoFactory(ValidationDtoFactory validationDtoFactory)booleansupports(java.lang.Class<?> clazz)voidvalidate(java.lang.Object obj, org.springframework.validation.Errors errors)
-
-
-
Field Detail
-
COMPONENT_ID
public static final java.lang.String COMPONENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> clazz)
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
public void validate(java.lang.Object obj, org.springframework.validation.Errors errors)- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
getComponentAlreadyInContentSlotPredicate
protected java.util.function.Predicate<ComponentAndContentSlotValidationDto> getComponentAlreadyInContentSlotPredicate()
-
setComponentAlreadyInContentSlotPredicate
public void setComponentAlreadyInContentSlotPredicate(java.util.function.Predicate<ComponentAndContentSlotValidationDto> componentAlreadyInContentSlotPredicate)
-
getComponentExistsPredicate
protected java.util.function.Predicate<java.lang.String> getComponentExistsPredicate()
-
setComponentExistsPredicate
public void setComponentExistsPredicate(java.util.function.Predicate<java.lang.String> componentExistsPredicate)
-
getValidationDtoFactory
protected ValidationDtoFactory getValidationDtoFactory()
-
setValidationDtoFactory
public void setValidationDtoFactory(ValidationDtoFactory validationDtoFactory)
-
-