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 Details

    • TmaResourcesCommerceAddToCartMethodHook

      public TmaResourcesCommerceAddToCartMethodHook(TmaCommerceCartResourceService tmaCommerceCartResourceService)
  • Method Details

    • beforeAddToCart

      public void beforeAddToCart(CommerceCartParameter parameter)
      Perform validation operations for cart entries containing resources.
      Specified by:
      beforeAddToCart in interface de.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 the CommerceCartParameter
      Specified by:
      afterAddToCart in interface de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
      Parameters:
      parameter - details for the new cart entry, before to be added to cart
      result - details for the new cart entry, after it was added to cart
    • getTmaCommerceCartResourceService

      protected TmaCommerceCartResourceService getTmaCommerceCartResourceService()