Class CommerceConfigAddToCartStrategy

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.sapordermgmtcfgfacades.impl.CommerceConfigAddToCartStrategy
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceAddToCartStrategy

public class CommerceConfigAddToCartStrategy extends de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
DefaultAddToCartStrategy is being overriden by ProductConfigAddToCartStrategy and this class makes sure that the functionality offered by both classes do not get lost.
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected long
    getAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)
     
    protected boolean
     

    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, getAddToCartValidators, getCommerceAddToCartMethodHooks, getConfigurationService, getFallbackAddToCartValidator, setAddToCartValidators, setCommerceAddToCartMethodHooks, setConfigurationService, setFallbackAddToCartValidator, 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

    Methods inherited from class java.lang.Object

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

    • CommerceConfigAddToCartStrategy

      public CommerceConfigAddToCartStrategy()
  • Method Details

    • getAllowedCartAdjustmentForProduct

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

      protected boolean isSyncOrdermgmtEnabled()