public class BundleSelectionCriteriaAddToCartMethodHook extends java.lang.Object implements CommerceAddToCartMethodHook
| Constructor and Description |
|---|
BundleSelectionCriteriaAddToCartMethodHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAddToCart(CommerceCartParameter parameters,
CommerceCartModification result)
Execute custom logic after adding product to cart
|
void |
beforeAddToCart(CommerceCartParameter parameter)
Execute custom logic before adding product to cart
|
protected BundleTemplateService |
getBundleTemplateService() |
protected L10NService |
getL10NService() |
protected long |
getTotalQuantityInBundle(CartModel cart,
java.lang.Integer entryGroupNumber) |
void |
setBundleTemplateService(BundleTemplateService bundleTemplateService) |
void |
setL10NService(L10NService l10NService) |
public BundleSelectionCriteriaAddToCartMethodHook()
public void beforeAddToCart(CommerceCartParameter parameter) throws CommerceCartModificationException
CommerceAddToCartMethodHookbeforeAddToCart in interface CommerceAddToCartMethodHookparameter - A parameter objectCommerceCartModificationExceptionprotected long getTotalQuantityInBundle(CartModel cart, java.lang.Integer entryGroupNumber)
public void afterAddToCart(CommerceCartParameter parameters, CommerceCartModification result) throws CommerceCartModificationException
CommerceAddToCartMethodHookafterAddToCart in interface CommerceAddToCartMethodHookparameters - A parameter objectresult - A return value of addToCart methodCommerceCartModificationExceptionprotected L10NService getL10NService()
public void setL10NService(L10NService l10NService)
protected BundleTemplateService getBundleTemplateService()
public void setBundleTemplateService(BundleTemplateService bundleTemplateService)
Copyright © 2018 SAP SE. All Rights Reserved.