Class DefaultCosCommerceUpdateCartEntryStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy
com.sap.sapoaacosintegration.services.reservation.strategy.impl.DefaultCosCommerceUpdateCartEntryStrategy
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy
public class DefaultCosCommerceUpdateCartEntryStrategy
extends de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy
Update Cart Entry Strategy for Omni Channel Availability. Check Allowed quantity on cart update
-
Field Summary
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel) protected SapOaaCartAdjustmentStrategyprotected CommerceCartModificationmodifyEntry(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, Integer maxOrderQuantity) voidsetCommonUtils(CommonUtils commonUtils) voidsetCosCartAdjustmentStrategy(SapOaaCartAdjustmentStrategy oaaCartAdjustmentStrategy) voidsetCosReservationStrategy(ReservationStrategy cosReservationStrategy) Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy
afterUpdateCartEntry, beforeUpdateCartEntry, getCommerceUpdateCartEntryHooks, getConfigurationService, getEntryMergeStrategy, mergeEntries, setCommerceUpdateCartEntryHooks, setConfigurationService, setEntryMergeStrategy, updatePointOfServiceForCartEntry, updateQuantityForCartEntry, updateToShippingModeForCartEntry, validateEntryBeforeModification, validateEntryBeforeSetShippingModeMethods 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
-
Constructor Details
-
DefaultCosCommerceUpdateCartEntryStrategy
public DefaultCosCommerceUpdateCartEntryStrategy()
-
-
Method Details
-
getAllowedCartAdjustmentForProduct
protected long getAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel) - Overrides:
getAllowedCartAdjustmentForProductin classde.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
modifyEntry
protected CommerceCartModification modifyEntry(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, Integer maxOrderQuantity) - Overrides:
modifyEntryin classde.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy
-
setCosCartAdjustmentStrategy
- Parameters:
oaaCartAdjustmentStrategy- the oaaCartAdjustmentStrategy to set
-
getCosCartAdjustmentStrategy
- Returns:
- the oaaCartAdjustmentStrategy
-
getCosReservationStrategy
-
setCosReservationStrategy
-
getCommonUtils
-
setCommonUtils
-