Class AbstractCommerceAddToCartStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
-
- All Implemented Interfaces:
CommerceAddToCartStrategy
- Direct Known Subclasses:
DefaultCommerceAddToCartStrategy
public abstract class AbstractCommerceAddToCartStrategy extends AbstractCommerceCartStrategy implements CommerceAddToCartStrategy
Abstract strategy for adding items to the cart
-
-
Field Summary
Fields Modifier and Type Field Description protected static intAPPEND_AS_LAST-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity
-
-
Constructor Summary
Constructors Constructor Description AbstractCommerceAddToCartStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterAddToCart(CommerceCartParameter parameters, CommerceCartModification result)protected voidbeforeAddToCart(CommerceCartParameter parameters)protected java.util.List<CommerceAddToCartMethodHook>getCommerceAddToCartMethodHooks()protected ConfigurationServicegetConfigurationService()voidsetCommerceAddToCartMethodHooks(java.util.List<CommerceAddToCartMethodHook> commerceAddToCartMethodHooks)Optional setter for hooking into before and after execution ofCommerceAddToCartStrategy.addToCart(de.hybris.platform.commerceservices.service.data.CommerceCartParameter)voidsetConfigurationService(ConfigurationService configurationService)protected voidvalidateAddToCart(CommerceCartParameter parameters)-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
checkCartLevel, getAllowedCartAdjustmentForProduct, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.commerceservices.order.CommerceAddToCartStrategy
addToCart, addToCart
-
-
-
-
Field Detail
-
APPEND_AS_LAST
protected static final int APPEND_AS_LAST
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateAddToCart
protected void validateAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException
-
beforeAddToCart
protected void beforeAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException
-
afterAddToCart
protected void afterAddToCart(CommerceCartParameter parameters, CommerceCartModification result) throws CommerceCartModificationException
-
getCommerceAddToCartMethodHooks
protected java.util.List<CommerceAddToCartMethodHook> getCommerceAddToCartMethodHooks()
-
setCommerceAddToCartMethodHooks
public void setCommerceAddToCartMethodHooks(java.util.List<CommerceAddToCartMethodHook> commerceAddToCartMethodHooks)
Optional setter for hooking into before and after execution ofCommerceAddToCartStrategy.addToCart(de.hybris.platform.commerceservices.service.data.CommerceCartParameter)- Parameters:
commerceAddToCartMethodHooks-
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-