Class TravelBundleCommerceAddToCartStrategy

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.commerceservices.order.impl.BundleCommerceAddToCartStrategy
de.hybris.platform.travelservices.order.impl.TravelBundleCommerceAddToCartStrategy
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceAddToCartStrategy
Direct Known Subclasses:
ShoppingTravelBundleCommerceAddToCartStrategy

public class TravelBundleCommerceAddToCartStrategy extends de.hybris.platform.commerceservices.order.impl.BundleCommerceAddToCartStrategy
The type Travel bundle commerce add to cart strategy.
  • 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 CartEntryModel
    addCartEntry(CommerceCartParameter parameter, long actualAllowedQuantityChange)
    Creates and adds a new cart entry, setting proper OrderEntryType against it
     
    protected de.hybris.platform.order.CalculationService
    Gets calculation service.
    protected de.hybris.platform.servicelayer.session.SessionService
    Gets session service.
    void
    setCalculationService(de.hybris.platform.order.CalculationService calculationService)
    Sets calculation service.
    void
    setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
    Sets session service.

    Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy

    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, getAllowedCartAdjustmentForProduct, 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

    • TravelBundleCommerceAddToCartStrategy

      public TravelBundleCommerceAddToCartStrategy()
  • Method Details

    • addToCart

      public CommerceCartModification addToCart(CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Specified by:
      addToCart in interface de.hybris.platform.commerceservices.order.CommerceAddToCartStrategy
      Overrides:
      addToCart in class de.hybris.platform.commerceservices.order.impl.BundleCommerceAddToCartStrategy
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • addCartEntry

      protected CartEntryModel addCartEntry(CommerceCartParameter parameter, long actualAllowedQuantityChange) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Creates and adds a new cart entry, setting proper OrderEntryType against it
      Overrides:
      addCartEntry in class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
      Parameters:
      parameter -
      actualAllowedQuantityChange -
      Returns:
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Gets session service.
      Returns:
      the session service
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Sets session service.
      Parameters:
      sessionService - the session service
    • getCalculationService

      protected de.hybris.platform.order.CalculationService getCalculationService()
      Gets calculation service.
      Returns:
      the calculation service
    • setCalculationService

      public void setCalculationService(de.hybris.platform.order.CalculationService calculationService)
      Sets calculation service.
      Parameters:
      calculationService - the calculation service