Class DefaultAddToCartStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
-
- de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultAddToCartStrategy
-
- All Implemented Interfaces:
CommerceAddToCartStrategy
public class DefaultAddToCartStrategy extends DefaultCommerceAddToCartStrategy
AddToCart strategy which bypasses some checks of the standard strategy (as those checks are done in the SAP back end
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
APPEND_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 DefaultAddToCartStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)Work out the allowed quantity adjustment for a product in the cart given a requested quantity change.-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
addCartEntry, addToCart, addToCart, createAddToCartResp, createEmptyCartEntry, doAddToCart, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategy
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
afterAddToCart, beforeAddToCart, getCommerceAddToCartMethodHooks, getConfigurationService, setCommerceAddToCartMethodHooks, setConfigurationService, validateAddToCart
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
checkCartLevel, 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
-
-
-
-
Method Detail
-
getAllowedCartAdjustmentForProduct
protected long getAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)
Description copied from class:AbstractCommerceCartStrategyWork out the allowed quantity adjustment for a product in the cart given a requested quantity change.- Overrides:
getAllowedCartAdjustmentForProductin classAbstractCommerceCartStrategy- Parameters:
cartModel- the cartproductModel- the product in the cartquantityToAdd- the amount to increase the quantity of the product in the cart, may be negative if the request is to reduce the quantitypointOfServiceModel- the PointOfService to check stock at, can be null- Returns:
- the allowed adjustment
-
-