Class DefaultTravelBundleCommerceCartFacade

java.lang.Object
de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade
de.hybris.platform.travelfacades.facades.impl.DefaultTravelBundleCommerceCartFacade
All Implemented Interfaces:
de.hybris.platform.configurablebundlefacades.order.BundleCartFacade, TravelBundleCommerceCartFacade
Direct Known Subclasses:
DefaultPROSTravelBundleCommerceCartFacade

public class DefaultTravelBundleCommerceCartFacade extends de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade implements TravelBundleCommerceCartFacade
Concrete implementation of TravelBundleCommerceCartFacade
  • Field Summary

    Fields inherited from class de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade

    FACET_SEPARATOR, NOT_FOUND_IN_CART
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addToCart(String productCode, long quantity, int groupNumber)
     
    startBundle(String bundleTemplateId, String productCode, long quantity, OrderEntryType entryType)
    Starts new bundle in cart based on the given bundle template and add the product to it.

    Methods inherited from class de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade

    addProductsIfAutoPickSelectionCriteria, applyDisableRules, createCommerceCartParametersForAutoPickComponent, createSearchStateWithBundleComponentFilter, encodeSearchPageData, encodeURL, enrichProductData, getAllowedProducts, getBundleEntryGroupNumber, getBundleRuleService, getBundleTemplateService, getCartModificationConverter, getCartService, getCommerceCartService, getEntryGroupService, getProductSearchFacade, getProductService, isAutoPickEnabled, patchURLs, processFacetData, processFacetDatas, removeEntriesByGroupNumber, setAutoPickEnabled, setBundleRuleService, setBundleTemplateService, setCartModificationConverter, setCartService, setCommerceCartService, setEntryGroupService, setProductSearchFacade, setProductService, startBundle

    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.configurablebundlefacades.order.BundleCartFacade

    getAllowedProducts, startBundle
  • Constructor Details

    • DefaultTravelBundleCommerceCartFacade

      public DefaultTravelBundleCommerceCartFacade()
  • Method Details

    • startBundle

      public CartModificationData startBundle(@Nonnull String bundleTemplateId, @Nonnull String productCode, long quantity, OrderEntryType entryType) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Description copied from interface: TravelBundleCommerceCartFacade
      Starts new bundle in cart based on the given bundle template and add the product to it. Assigns an OrderEntryType to every entry created during the process.
      Specified by:
      startBundle in interface TravelBundleCommerceCartFacade
      Parameters:
      bundleTemplateId - a component to add the product to. He whole bundle structure - starting from the root of the component - will be added to cart groups
      productCode - a product which will be added to the component
      quantity - quantity for the product. Is limited by selection criteria of the component
      entryType - order entry type to be set against each created entry
      Returns:
      information about the new cart entry
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - if the operation is not possible
      See Also:
    • addToCart

      public CartModificationData addToCart(@Nonnull String productCode, long quantity, int groupNumber) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Specified by:
      addToCart in interface de.hybris.platform.configurablebundlefacades.order.BundleCartFacade
      Overrides:
      addToCart in class de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException