Class FulfillmentPricingConfigValidator

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

public class FulfillmentPricingConfigValidator extends Object implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
Entity validator to validate FulfillmentPricingConfig prior to persistence.
Author:
Kelly Tisdell (ktisdell)
  • Constructor Details

    • FulfillmentPricingConfigValidator

      public FulfillmentPricingConfigValidator()
  • Method Details

    • setInventoryLocationService

      @Autowired @Lazy public void setInventoryLocationService(FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> configService)
    • 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 Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      validate in interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
    • validateForCreate

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

      protected FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> getConfigService()