Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected long getAllowedCartAdjustmentForProduct​(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)  
      protected SapOaaCartAdjustmentStrategy getCosCartAdjustmentStrategy()  
      ReservationStrategy getReservationStrategy()  
      protected CommerceCartModification modifyEntry​(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, java.lang.Integer maxOrderQuantity)  
      void setCosCartAdjustmentStrategy​(SapOaaCartAdjustmentStrategy oaaCartAdjustmentStrategy)  
      void setReservationStrategy​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCosCommerceUpdateCartEntryStrategy

        public DefaultCosCommerceUpdateCartEntryStrategy()
    • Method Detail

      • getAllowedCartAdjustmentForProduct

        protected long getAllowedCartAdjustmentForProduct​(CartModel cartModel,
                                                          ProductModel productModel,
                                                          long quantityToAdd,
                                                          PointOfServiceModel pointOfServiceModel)
        Overrides:
        getAllowedCartAdjustmentForProduct in class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
      • modifyEntry

        protected CommerceCartModification modifyEntry​(CartModel cartModel,
                                                       AbstractOrderEntryModel entryToUpdate,
                                                       long actualAllowedQuantityChange,
                                                       long newQuantity,
                                                       java.lang.Integer maxOrderQuantity)
        Overrides:
        modifyEntry in class de.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