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.DefaultCommerceUpdateCartEntryStrategyUpdate Cart Entry Strategy for Omni Channel Availability. Check Allowed quantity on cart update
-
-
Constructor Summary
Constructors Constructor Description DefaultCosCommerceUpdateCartEntryStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)protected SapOaaCartAdjustmentStrategygetCosCartAdjustmentStrategy()ReservationStrategygetReservationStrategy()protected CommerceCartModificationmodifyEntry(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, java.lang.Integer maxOrderQuantity)voidsetCosCartAdjustmentStrategy(SapOaaCartAdjustmentStrategy oaaCartAdjustmentStrategy)voidsetReservationStrategy(ReservationStrategy reservationStrategy)-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy
afterUpdateCartEntry, beforeUpdateCartEntry, getCommerceUpdateCartEntryHooks, getConfigurationService, getEntryMergeStrategy, mergeEntries, setCommerceUpdateCartEntryHooks, setConfigurationService, setEntryMergeStrategy, updatePointOfServiceForCartEntry, updateQuantityForCartEntry, updateToShippingModeForCartEntry, validateEntryBeforeModification, validateEntryBeforeSetShippingMode
-
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)
- Overrides:
getAllowedCartAdjustmentForProductin classde.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
modifyEntry
protected CommerceCartModification modifyEntry(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, java.lang.Integer maxOrderQuantity)
- Overrides:
modifyEntryin classde.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategy
-
setCosCartAdjustmentStrategy
public void setCosCartAdjustmentStrategy(SapOaaCartAdjustmentStrategy oaaCartAdjustmentStrategy)
- Parameters:
oaaCartAdjustmentStrategy- the oaaCartAdjustmentStrategy to set
-
getCosCartAdjustmentStrategy
protected SapOaaCartAdjustmentStrategy getCosCartAdjustmentStrategy()
- Returns:
- the oaaCartAdjustmentStrategy
-
getReservationStrategy
public ReservationStrategy getReservationStrategy()
- Returns:
- the reservationStrategy
-
setReservationStrategy
public void setReservationStrategy(ReservationStrategy reservationStrategy)
- Parameters:
reservationStrategy- the reservationStrategy to set
-
-