Class AbstractUpdateCartServiceExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.web.service.AbstractUpdateCartServiceExtensionHandler
All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler, UpdateCartServiceExtensionHandler
Direct Known Subclasses:
i18nUpdateCartServiceExtensionHandler

public abstract class AbstractUpdateCartServiceExtensionHandler extends org.broadleafcommerce.common.extension.AbstractExtensionHandler implements UpdateCartServiceExtensionHandler
Author:
Andre Azzolini (apazzolini), bpolster
  • Field Summary

    Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    enabled, priority
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    updateAndValidateCart(org.broadleafcommerce.core.order.domain.Order cart, org.broadleafcommerce.common.extension.ExtensionResultHolder resultHolder)
    Throws an exception if cart is invalid.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    validateAddToCartItem(org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest, org.broadleafcommerce.core.order.domain.Order cart)
    Validates the item request just before it actually goes through the add or update workflow to get it into the cart

    Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    getPriority, isEnabled, setEnabled, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority, isEnabled
  • Constructor Details

    • AbstractUpdateCartServiceExtensionHandler

      public AbstractUpdateCartServiceExtensionHandler()
  • Method Details

    • updateAndValidateCart

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType updateAndValidateCart(org.broadleafcommerce.core.order.domain.Order cart, org.broadleafcommerce.common.extension.ExtensionResultHolder resultHolder)
      Throws an exception if cart is invalid.
      Specified by:
      updateAndValidateCart in interface UpdateCartServiceExtensionHandler
      Parameters:
      cart -
      resultHolder -
      Returns:
    • validateAddToCartItem

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType validateAddToCartItem(org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest, org.broadleafcommerce.core.order.domain.Order cart) throws IllegalArgumentException
      Description copied from interface: UpdateCartServiceExtensionHandler
      Validates the item request just before it actually goes through the add or update workflow to get it into the cart
      Specified by:
      validateAddToCartItem in interface UpdateCartServiceExtensionHandler
      Returns:
      Throws:
      IllegalArgumentException