Class DefaultSapOaaCommerceUpdateCartEntryStrategy
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
com.sap.sapoaacarintegration.services.order.impl.DefaultSapOaaCommerceUpdateCartEntryStrategy
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy
public class DefaultSapOaaCommerceUpdateCartEntryStrategy
extends DefaultCosCommerceUpdateCartEntryStrategy
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) voidsetOaaCartAdjustmentStrategy(SapOaaCartAdjustmentStrategy oaaCartAdjustmentStrategy) voidsetReservationStrategy(ReservationStrategy reservationStrategy) Methods inherited from class com.sap.sapoaacosintegration.services.reservation.strategy.impl.DefaultCosCommerceUpdateCartEntryStrategy
getCosCartAdjustmentStrategy, getCosReservationStrategy, setCosCartAdjustmentStrategy, setCosReservationStrategyMethods 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
-
DefaultSapOaaCommerceUpdateCartEntryStrategy
public DefaultSapOaaCommerceUpdateCartEntryStrategy()
-
-
Method Details
-
getAllowedCartAdjustmentForProduct
protected long getAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel) - Overrides:
getAllowedCartAdjustmentForProductin classDefaultCosCommerceUpdateCartEntryStrategy
-
modifyEntry
protected CommerceCartModification modifyEntry(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, Integer maxOrderQuantity) - Overrides:
modifyEntryin classDefaultCosCommerceUpdateCartEntryStrategy
-
setOaaCartAdjustmentStrategy
- Parameters:
oaaCartAdjustmentStrategy- the oaaCartAdjustmentStrategy to set
-
getOaaCartAdjustmentStrategy
- Returns:
- the oaaCartAdjustmentStrategy
-
getReservationStrategy
- Returns:
- the reservationStrategy
-
setReservationStrategy
- Parameters:
reservationStrategy- the reservationStrategy to set
-
getCommonUtils
- Overrides:
getCommonUtilsin classDefaultCosCommerceUpdateCartEntryStrategy
-
setCommonUtils
- Overrides:
setCommonUtilsin classDefaultCosCommerceUpdateCartEntryStrategy
-