public abstract class AbstractCommerceAddToCartStrategy extends AbstractCommerceCartStrategy implements CommerceAddToCartStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static int |
APPEND_AS_LAST |
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity| Constructor and Description |
|---|
AbstractCommerceAddToCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterAddToCart(CommerceCartParameter parameters,
CommerceCartModification result) |
protected void |
beforeAddToCart(CommerceCartParameter parameters) |
protected java.util.List<CommerceAddToCartMethodHook> |
getCommerceAddToCartMethodHooks() |
protected ConfigurationService |
getConfigurationService() |
void |
setCommerceAddToCartMethodHooks(java.util.List<CommerceAddToCartMethodHook> commerceAddToCartMethodHooks)
Optional setter for hooking into before and after execution of
CommerceAddToCartStrategy.addToCart(de.hybris.platform.commerceservices.service.data.CommerceCartParameter) |
void |
setConfigurationService(ConfigurationService configurationService) |
protected void |
validateAddToCart(CommerceCartParameter parameters) |
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, setProductServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddToCart, addToCartprotected static final int APPEND_AS_LAST
protected void validateAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException
protected void beforeAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException
protected void afterAddToCart(CommerceCartParameter parameters, CommerceCartModification result) throws CommerceCartModificationException
protected java.util.List<CommerceAddToCartMethodHook> getCommerceAddToCartMethodHooks()
public void setCommerceAddToCartMethodHooks(java.util.List<CommerceAddToCartMethodHook> commerceAddToCartMethodHooks)
CommerceAddToCartStrategy.addToCart(de.hybris.platform.commerceservices.service.data.CommerceCartParameter)commerceAddToCartMethodHooks - protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2018 SAP SE. All Rights Reserved.