public class DefaultCartValidationStrategy extends java.lang.Object implements CartValidationStrategy, CartCleanStrategy
| Constructor and Description |
|---|
DefaultCartValidationStrategy() |
protected CommerceCartModification validateCartEntry(CartModel cartModel, CartEntryModel cartEntryModel)
protected CartEntryModel getExistingShipCartEntryForProduct(CartModel cartModel, ProductModel product)
protected boolean isProductNotAvailableInPOS(CartEntryModel cartEntryModel, java.lang.Long stockLevel)
protected void validateDelivery(CartModel cartModel)
protected void validatePayment(CartModel cartModel)
protected boolean isGuestUserCart(CartModel cartModel)
protected boolean hasConfigurationErrors(CartEntryModel cartEntryModel)
@Deprecated public java.util.List<CommerceCartModification> validateCart(CartModel cartModel)
validateCart in interface CartValidationStrategypublic java.util.List<CommerceCartModification> validateCart(CommerceCartParameter parameter)
validateCart in interface CartValidationStrategyprotected void beforeValidateCart(CommerceCartParameter parameter, java.util.List<CommerceCartModification> modifications)
protected void afterValidateCart(CommerceCartParameter parameter, java.util.List<CommerceCartModification> modifications)
public void cleanCart(CartModel cartModel)
cleanCart in interface CartCleanStrategyprotected java.lang.Long getStockLevel(CartEntryModel cartEntryModel)
protected boolean hasPointOfService(CartEntryModel cartEntryModel)
protected long getCartLevel(CartEntryModel cartEntryModel, CartModel cartModel)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public CartService getCartService()
public void setCartService(CartService cartService)
public ProductService getProductService()
public void setProductService(ProductService productService)
public CommerceStockService getCommerceStockService()
public void setCommerceStockService(CommerceStockService commerceStockService)
public BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected java.util.List<CartValidationHook> getCartValidationHooks()
public void setCartValidationHooks(java.util.List<CartValidationHook> cartValidationHooks)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2018 SAP SE. All Rights Reserved.