Class AddTransportBundleToCartStrategy
java.lang.Object
de.hybris.platform.travelfacades.packages.strategies.impl.AddTransportBundleToCartStrategy
- All Implemented Interfaces:
AddBundleToCartByTypeStrategy
- Direct Known Subclasses:
AddDealBundleToCartStartegy
public class AddTransportBundleToCartStrategy
extends Object
implements AddBundleToCartByTypeStrategy
Concrete implementation of
AddBundleToCartByTypeStrategy allowing to add products belonging to an
TransportBundleTemplate to the cart-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBundleToCart(BundleTemplateModel bundleTemplate, AddDealToCartData addDealToCartData) Adds the products relative to the specified bundle to the cart.protected AddBundleToCartRequestDatabuildAddBundleToCartRequestData(BundleTemplateModel bundleTemplate, AddDealToCartData addDealToCartData) protected TravelCartFacadevoidsetCartFacade(TravelCartFacade cartFacade)
-
Constructor Details
-
AddTransportBundleToCartStrategy
public AddTransportBundleToCartStrategy()
-
-
Method Details
-
addBundleToCart
public List<CartModificationData> addBundleToCart(BundleTemplateModel bundleTemplate, AddDealToCartData addDealToCartData) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:AddBundleToCartByTypeStrategyAdds the products relative to the specified bundle to the cart. Each implementation covers a specific bundle type.- Specified by:
addBundleToCartin interfaceAddBundleToCartByTypeStrategy- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
buildAddBundleToCartRequestData
protected AddBundleToCartRequestData buildAddBundleToCartRequestData(BundleTemplateModel bundleTemplate, AddDealToCartData addDealToCartData) -
getCartFacade
- Returns:
- cartFacade
-
setCartFacade
- Parameters:
cartFacade- the cartFacade
-