Class DefaultPROSTravelBundleCommerceCartFacade
java.lang.Object
de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade
de.hybris.platform.travelfacades.facades.impl.DefaultTravelBundleCommerceCartFacade
de.hybris.platform.prosfacades.facades.impl.DefaultPROSTravelBundleCommerceCartFacade
- All Implemented Interfaces:
de.hybris.platform.configurablebundlefacades.order.BundleCartFacade,ShoppingTravelBundleCommerceCartFacade,TravelBundleCommerceCartFacade
public class DefaultPROSTravelBundleCommerceCartFacade
extends DefaultTravelBundleCommerceCartFacade
implements ShoppingTravelBundleCommerceCartFacade
The Pros implementation of
ShoppingTravelBundleCommerceCartFacade interface. This class overrides startBundle and
addToCart methods, in order to add the solutionId to the order entry.-
Field Summary
Fields inherited from class de.hybris.platform.configurablebundlefacades.order.impl.DefaultBundleCommerceCartFacade
FACET_SEPARATOR, NOT_FOUND_IN_CART -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a product to an existing bundle and set the solutionId.startBundle(String bundleTemplateId, String productCode, long quantity, OrderEntryType entryType, Integer solutionId) Starts new bundle in cart based on the given bundle template and add the product to it.Methods inherited from class de.hybris.platform.travelfacades.facades.impl.DefaultTravelBundleCommerceCartFacade
addToCart, startBundleMethods 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, startBundleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.configurablebundlefacades.order.BundleCartFacade
getAllowedProducts, startBundle
-
Constructor Details
-
DefaultPROSTravelBundleCommerceCartFacade
public DefaultPROSTravelBundleCommerceCartFacade()
-
-
Method Details
-
startBundle
public CartModificationData startBundle(@Nonnull String bundleTemplateId, @Nonnull String productCode, long quantity, OrderEntryType entryType, Integer solutionId) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Starts new bundle in cart based on the given bundle template and add the product to it. Assigns anOrderEntryTypeto every entry created during the process and a solutionId.- Specified by:
startBundlein interfaceShoppingTravelBundleCommerceCartFacade- Parameters:
bundleTemplateId- a component to add the product to. The whole bundle structure - starting from the root of the component - will be added to cart groupsproductCode- a product which will be added to the componentquantity- quantity for the product. Is limited by selection criteria of the componententryType- order entry type to be set against each created entrysolutionId- the solution id- Returns:
- information about the new cart entry
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- if the operation is not possible- See Also:
-
EntryGroupBundleSelectionCriteria
-
addToCart
public CartModificationData addToCart(@Nonnull String productCode, long quantity, int groupNumber, Integer solutionId) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Add a product to an existing bundle and set the solutionId.- Specified by:
addToCartin interfaceShoppingTravelBundleCommerceCartFacade- Parameters:
productCode- product to addquantity- quantity of the productgroupNumber- entry group number, that defines the bundle and the component within the bundlesolutionId- the solution id- Returns:
- information about the new cart entry
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- if the operation is not possible- See Also:
-