Class TmaDeleteFromCartStrategy

java.lang.Object
de.hybris.platform.b2ctelcoservices.order.impl.TmaDeleteFromCartStrategy
All Implemented Interfaces:
TmaCartStrategy

public class TmaDeleteFromCartStrategy extends Object implements TmaCartStrategy
Cart strategy implementation for deleting product offering from cart.
Since:
2102
  • Constructor Details

    • TmaDeleteFromCartStrategy

      public TmaDeleteFromCartStrategy(de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy updateCartEntryStrategy, TmaAbstractOrderEntryService abstractOrderEntryService, de.hybris.platform.servicelayer.model.ModelService modelService)
  • Method Details

    • processCartAction

      public List<CommerceCartModification> processCartAction(List<CommerceCartParameter> commerceCartParameterList) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Description copied from interface: TmaCartStrategy
      Processes cart updates.
      Specified by:
      processCartAction in interface TmaCartStrategy
      Parameters:
      commerceCartParameterList - contains attributes used for cart updates
      Returns:
      list CommerceCartModification
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - in case of any error occurs during cart update
    • removeEntry

      protected List<CommerceCartModification> removeEntry(@Nonnull CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Traverses the hierarchical structure and removes the specified entry and all its children
      Parameters:
      parameter - contains attribute for cart update
      Returns:
      list CommerceCartModification
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - if the entry number does not exist in cart
    • getUpdateCartEntryStrategy

      protected de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy getUpdateCartEntryStrategy()
    • getAbstractOrderEntryService

      protected TmaAbstractOrderEntryService getAbstractOrderEntryService()
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()