Class DefaultCartValidationStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.strategies.impl.DefaultCartValidationStrategy
-
- All Implemented Interfaces:
CartCleanStrategy
,CartValidationStrategy
- Direct Known Subclasses:
DefaultB2BCartValidationStrategy
,ProductConfigurationCartValidationStrategyImpl
public class DefaultCartValidationStrategy extends java.lang.Object implements CartValidationStrategy, CartCleanStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultCartValidationStrategy()
-
Method Summary
-
-
-
Method Detail
-
validateCartEntry
protected CommerceCartModification validateCartEntry(CartModel cartModel, CartEntryModel cartEntryModel)
-
getExistingShipCartEntryForProduct
protected CartEntryModel getExistingShipCartEntryForProduct(CartModel cartModel, ProductModel product)
-
isProductNotAvailableInPOS
protected boolean isProductNotAvailableInPOS(CartEntryModel cartEntryModel, java.lang.Long stockLevel)
-
validateDelivery
protected void validateDelivery(CartModel cartModel)
-
validatePayment
protected void validatePayment(CartModel cartModel)
-
isGuestUserCart
protected boolean isGuestUserCart(CartModel cartModel)
-
hasConfigurationErrors
protected boolean hasConfigurationErrors(CartEntryModel cartEntryModel)
-
validateCart
@Deprecated(since="5.2") public java.util.List<CommerceCartModification> validateCart(CartModel cartModel)
Deprecated.Since 5.2.- Specified by:
validateCart
in interfaceCartValidationStrategy
-
validateCart
public java.util.List<CommerceCartModification> validateCart(CommerceCartParameter parameter)
- Specified by:
validateCart
in interfaceCartValidationStrategy
-
beforeValidateCart
protected void beforeValidateCart(CommerceCartParameter parameter, java.util.List<CommerceCartModification> modifications)
-
afterValidateCart
protected void afterValidateCart(CommerceCartParameter parameter, java.util.List<CommerceCartModification> modifications)
-
cleanCart
public void cleanCart(CartModel cartModel)
- Specified by:
cleanCart
in interfaceCartCleanStrategy
-
getStockLevel
protected java.lang.Long getStockLevel(CartEntryModel cartEntryModel)
-
hasPointOfService
protected boolean hasPointOfService(CartEntryModel cartEntryModel)
-
getCartLevel
protected long getCartLevel(CartEntryModel cartEntryModel, CartModel cartModel)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getCartService
public CartService getCartService()
-
setCartService
public void setCartService(CartService cartService)
-
getProductService
public ProductService getProductService()
-
setProductService
public void setProductService(ProductService productService)
-
getCommerceStockService
public CommerceStockService getCommerceStockService()
-
setCommerceStockService
public void setCommerceStockService(CommerceStockService commerceStockService)
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCartValidationHooks
protected java.util.List<CartValidationHook> getCartValidationHooks()
-
setCartValidationHooks
public void setCartValidationHooks(java.util.List<CartValidationHook> cartValidationHooks)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-