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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig>
void
setInventoryLocationService
(FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> configService) boolean
supports
(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validate
(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validateForCreate
(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
validateForReplace, validateForUpdate
-
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 interfacecom.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 interfacecom.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 interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
getConfigService
protected FulfillmentPricingConfigService<com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig> getConfigService()
-