Class ShoppingBundleAddToCartMethodHook

java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook
de.hybris.platform.travelservices.order.hook.TravelBundleAddToCartMethodHook
de.hybris.platform.shoppingservices.order.hooks.ShoppingBundleAddToCartMethodHook
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook

public class ShoppingBundleAddToCartMethodHook extends TravelBundleAddToCartMethodHook
Extending TravelBundleAddToCartMethodHook to skip the check if product is of type AllowanceProductModel or CarryOnAllowanceProductModel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    We could need to iterate though the bundle tree to find a match, that is a child bundle containing the product we are going to add
    protected List<String>
    Gets product to ignore list.
    void
    setProductToIgnoreList(List<String> productToIgnoreList)
    Sets product to ignore list.

    Methods inherited from class de.hybris.platform.travelservices.order.hook.TravelBundleAddToCartMethodHook

    checkBundleParameters

    Methods inherited from class de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook

    addEntryGroupsToEntry, addToBundle, afterAddToCart, beforeAddToCart, checkCanBeAddedToComponent, checkIsProductDisabledByRules, checkIsSoldIndividually, getBundleCartHookHelper, getBundleCartValidator, getBundleComponentEditableChecker, getBundleEntries, getBundleEntryGroup, getBundleRuleService, getBundleTemplateService, getCartService, getComponent, getEntryGroupService, getGroupForComponent, getL10NService, isAutoPickEnabled, isBundledEntry, isCalledFromStartBundle, setAutoPickEnabled, setBundleCartHookHelper, setBundleCartValidator, setBundleComponentEditableChecker, setBundleRuleService, setBundleTemplateService, setCartService, setEntryGroupService, setL10NService, startingNewBundle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook

    afterAddToCart, beforeAddToCart
  • Constructor Details

    • ShoppingBundleAddToCartMethodHook

      public ShoppingBundleAddToCartMethodHook()
  • Method Details

    • checkIsProductInComponentProductList

      protected void checkIsProductInComponentProductList(@Nonnull CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      We could need to iterate though the bundle tree to find a match, that is a child bundle containing the product we are going to add

      Skip the check if product is of type AllowanceProductModel or CarryOnAllowanceProductModel

      Overrides:
      checkIsProductInComponentProductList in class TravelBundleAddToCartMethodHook
      Parameters:
      parameter -
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • getProductToIgnoreList

      protected List<String> getProductToIgnoreList()
      Gets product to ignore list.
      Returns:
      the product to ignore list
    • setProductToIgnoreList

      public void setProductToIgnoreList(List<String> productToIgnoreList)
      Sets product to ignore list.
      Parameters:
      productToIgnoreList - the product to ignore list