Class TmaCommerceDeleteFromCartStrategy

  • All Implemented Interfaces:
    TmaCartStrategy, de.hybris.platform.commerceservices.order.CommerceRemoveEntryGroupStrategy

    public class TmaCommerceDeleteFromCartStrategy
    extends de.hybris.platform.commerceservices.order.impl.DefaultCommerceRemoveEntryGroupStrategy
    implements TmaCartStrategy
    Cart strategy implementation for deleting product offering from cart.
    Since:
    1907
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<CommerceCartModification> processCartAction​(java.util.List<CommerceCartParameter> commerceCartParameterList)
      Processes cart updates.
      protected void validateEntryGroupNumber​(CommerceCartParameter parameter)
      Checks if cart has PO with entry group number provided in parameter.
      • Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceRemoveEntryGroupStrategy

        afterRemoveEntryGroup, beforeRemoveEntryGroup, createRemoveEntryGroupResp, doRemoveEntryGroup, excludeEntryGroup, getAllSubsequentGroupNumbers, getCommerceRemoveEntryGroupHooks, getConfigurationService, getEntryGroupService, getUpdateCartEntryStrategy, removeEntriesByGroupNumber, removeEntryGroup, setCommerceRemoveEntryGroupHooks, setConfigurationService, setEntryGroupService, setUpdateCartEntryStrategy, validateRemoveEntryGroupParameter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TmaCommerceDeleteFromCartStrategy

        public TmaCommerceDeleteFromCartStrategy()
    • Method Detail

      • processCartAction

        public java.util.List<CommerceCartModification> processCartAction​(java.util.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
      • validateEntryGroupNumber

        protected void validateEntryGroupNumber​(CommerceCartParameter parameter)
                                         throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
        Checks if cart has PO with entry group number provided in parameter.
        Parameters:
        parameter - contains attributes used for cart entry updates
        Throws:
        de.hybris.platform.commerceservices.order.CommerceCartModificationException - if the cart does not have the entry group number provided in the parameter