Class TmaResourcesCommerceAddToCartMethodHook
java.lang.Object
de.hybris.platform.b2ctelcoservices.hook.impl.TmaResourcesCommerceAddToCartMethodHook
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
public class TmaResourcesCommerceAddToCartMethodHook
extends Object
implements de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
Resource specific add to cart operations.
- Since:
- 1911
-
Constructor Summary
ConstructorsConstructorDescriptionTmaResourcesCommerceAddToCartMethodHook(TmaCommerceCartResourceService tmaCommerceCartResourceService) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAddToCart(CommerceCartParameter parameter, CommerceCartModification result) Updates the newly added order entry with resources from theCommerceCartParametervoidbeforeAddToCart(CommerceCartParameter parameter) Perform validation operations for cart entries containing resources.protected TmaCommerceCartResourceService
-
Constructor Details
-
TmaResourcesCommerceAddToCartMethodHook
public TmaResourcesCommerceAddToCartMethodHook(TmaCommerceCartResourceService tmaCommerceCartResourceService)
-
-
Method Details
-
beforeAddToCart
Perform validation operations for cart entries containing resources.- Specified by:
beforeAddToCartin interfacede.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook- Parameters:
parameter- cart parameter containing new cart entry details
-
afterAddToCart
Updates the newly added order entry with resources from theCommerceCartParameter- Specified by:
afterAddToCartin interfacede.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook- Parameters:
parameter- details for the new cart entry, before to be added to cartresult- details for the new cart entry, after it was added to cart
-
getTmaCommerceCartResourceService
-