Class DefaultRenderingComponentValidator

java.lang.Object
de.hybris.platform.cmsfacades.rendering.validators.component.DefaultRenderingComponentValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class DefaultRenderingComponentValidator extends Object implements org.springframework.validation.Validator
Validator to validate attributes used to extract a component for rendering.
  • Constructor Details

    • DefaultRenderingComponentValidator

      public DefaultRenderingComponentValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> clazz)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate(Object obj, org.springframework.validation.Errors errors)
      Specified by:
      validate in interface org.springframework.validation.Validator
    • checkCode

      protected void checkCode(String codeValue, String fieldName, org.springframework.validation.Errors errors, Predicate<String> predicate)
      Verifies whether the code exists using provided predicate.
      Parameters:
      codeValue - the code value
      fieldName - the code name field
      errors - the Errors object
      predicate - the predicate
    • getCategoryCodeExistsPredicate

      protected CategoryCodeExistsPredicate getCategoryCodeExistsPredicate()
    • setCategoryCodeExistsPredicate

      public void setCategoryCodeExistsPredicate(CategoryCodeExistsPredicate categoryCodeExistsPredicate)
    • getProductCodeExistsPredicate

      protected ProductCodeExistsPredicate getProductCodeExistsPredicate()
    • setProductCodeExistsPredicate

      public void setProductCodeExistsPredicate(ProductCodeExistsPredicate productCodeExistsPredicate)
    • getCatalogCodeExistsPredicate

      protected CatalogCodeExistsPredicate getCatalogCodeExistsPredicate()
    • setCatalogCodeExistsPredicate

      public void setCatalogCodeExistsPredicate(CatalogCodeExistsPredicate catalogCodeExistsPredicate)