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 java.lang.Object implements de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHookResource specific add to cart operations.- Since:
- 1911
-
-
Constructor Summary
Constructors Constructor Description TmaResourcesCommerceAddToCartMethodHook(TmaCommerceCartResourceService tmaCommerceCartResourceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAddToCart(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 TmaCommerceCartResourceServicegetTmaCommerceCartResourceService()
-
-
-
Constructor Detail
-
TmaResourcesCommerceAddToCartMethodHook
public TmaResourcesCommerceAddToCartMethodHook(TmaCommerceCartResourceService tmaCommerceCartResourceService)
-
-
Method Detail
-
beforeAddToCart
public void beforeAddToCart(CommerceCartParameter parameter)
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
public void afterAddToCart(CommerceCartParameter parameter, CommerceCartModification result)
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
protected TmaCommerceCartResourceService getTmaCommerceCartResourceService()
-
-