Class CatalogAccessPolicyValidator

java.lang.Object
com.broadleafcommerce.catalog.service.validation.CatalogAccessPolicyValidator
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator

public class CatalogAccessPolicyValidator extends Object implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
Author:
Nathan Moore (nathandmoore)
  • Constructor Details

    • CatalogAccessPolicyValidator

      public CatalogAccessPolicyValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      supports in interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
    • validate

      public void validate(@NonNull @NonNull Object businessInstance, @NonNull @NonNull org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      validate in interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
    • validateName

      protected void validateName(org.springframework.validation.Errors errors)
    • validateActiveStartDate

      protected void validateActiveStartDate(CatalogAccessPolicy tag, org.springframework.validation.Errors errors)
    • validateActiveEndDate

      protected void validateActiveEndDate(CatalogAccessPolicy tag, org.springframework.validation.Errors errors)
    • validateTargetCatalog

      protected void validateTargetCatalog(CatalogAccessPolicy tag, org.springframework.validation.Errors errors)