DefaultBundleCommerceCartFacade instead.@Deprecated public class DefaultBundleCartFacade extends DefaultBundleCommerceCartFacade
BundleCartFacade.FACET_SEPARATOR| Constructor and Description |
|---|
DefaultBundleCartFacade()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CartModificationData> |
addToCart(java.lang.String productCode,
long quantity,
int bundleNo,
java.lang.String bundleTemplateId,
boolean removeCurrentProducts)
Deprecated.
Adds the product with the productId and with the given
quantity to the cart. |
protected BundleCommerceCartService |
getBundleCommerceCartService()
Deprecated.
|
protected Converter<CommerceCartModification,CartModificationData> |
getCartModificationConverter()
Deprecated.
|
protected SubscriptionCartFacade |
getSubscriptionCartFacade()
Deprecated.
|
void |
setBundleCommerceCartService(BundleCommerceCartService bundleCommerceCartService)
Deprecated.
|
void |
setCartModificationConverter(Converter<CommerceCartModification,CartModificationData> cartModificationConverter)
Deprecated.
|
void |
setSubscriptionCartFacade(SubscriptionCartFacade defaultSubscriptionCartFacade)
Deprecated.
|
addToCart, addToCart, applyDisableRules, createBundleStructure, createSearchStateWithBundleComponentFilter, deleteCartBundle, encodeSearchPageData, encodeURL, enrichProductData, getAllowedProducts, getBundleRuleService, getBundleTemplateService, getCartService, getCommerceCartService, getEntryGroupNumber, getEntryGroupService, getModelService, getProductSearchFacade, getProductService, isCartValid, patchURLs, processFacetData, processFacetDatas, removeEntriesByGroupNumber, setBundleRuleService, setBundleTemplateService, setCartService, setCommerceCartService, setEntryGroupNumber, setEntryGroupService, setModelService, setProductSearchFacade, setProductService, startBundlepublic java.util.List<CartModificationData> addToCart(java.lang.String productCode, long quantity, int bundleNo, java.lang.String bundleTemplateId, boolean removeCurrentProducts) throws CommerceCartModificationException
BundleCartFacadequantity to the cart. If an entry with the
given product exists in the cart already, then the given quantity is added to the quantity of this
cart entry. Dependent on the parameter bundleNo the product is added to an existing or new bundle or
treated as a standalone product. In case a new bundle is created the method also adds auto-pick products to the
cart if there are any setup for the bundle template. After this the multi-cart is calculated.addToCart in interface BundleCartFacadeaddToCart in class DefaultBundleCommerceCartFacadeproductCode - the product id that will be added to the cartquantity - the quantity of the productbundleNo - indicates to which bundle the product shall be added (-1=create new bundle; 0=standalone product/no
bundle; >0=number of existing bundle)bundleTemplateId - The bundletemplate id to add the product toremoveCurrentProducts - whether to remove existing products in that componentCartModificationDataCommerceCartModificationExceptionprotected BundleCommerceCartService getBundleCommerceCartService()
public void setBundleCommerceCartService(BundleCommerceCartService bundleCommerceCartService)
protected Converter<CommerceCartModification,CartModificationData> getCartModificationConverter()
getCartModificationConverter in class DefaultBundleCommerceCartFacadepublic void setCartModificationConverter(Converter<CommerceCartModification,CartModificationData> cartModificationConverter)
setCartModificationConverter in class DefaultBundleCommerceCartFacadeprotected SubscriptionCartFacade getSubscriptionCartFacade()
public void setSubscriptionCartFacade(SubscriptionCartFacade defaultSubscriptionCartFacade)
Copyright © 2018 SAP SE. All Rights Reserved.