Class AbstractUpdateCartServiceExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.web.service.AbstractUpdateCartServiceExtensionHandler
- All Implemented Interfaces:
ExtensionHandler,UpdateCartServiceExtensionHandler
- Direct Known Subclasses:
i18nUpdateCartServiceExtensionHandler
public abstract class AbstractUpdateCartServiceExtensionHandler
extends AbstractExtensionHandler
implements UpdateCartServiceExtensionHandler
- Author:
- Andre Azzolini (apazzolini), bpolster
-
Field Summary
Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionupdateAndValidateCart(Order cart, ExtensionResultHolder resultHolder) Throws an exception if cart is invalid.validateAddToCartItem(OrderItemRequestDTO itemRequest, Order cart) Validates the item request just before it actually goes through the add or update workflow to get it into the cartMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Constructor Details
-
AbstractUpdateCartServiceExtensionHandler
public AbstractUpdateCartServiceExtensionHandler()
-
-
Method Details
-
updateAndValidateCart
public ExtensionResultStatusType updateAndValidateCart(Order cart, ExtensionResultHolder resultHolder) Throws an exception if cart is invalid.- Specified by:
updateAndValidateCartin interfaceUpdateCartServiceExtensionHandler- Parameters:
cart-resultHolder-- Returns:
-
validateAddToCartItem
public ExtensionResultStatusType validateAddToCartItem(OrderItemRequestDTO itemRequest, Order cart) throws IllegalArgumentException Description copied from interface:UpdateCartServiceExtensionHandlerValidates the item request just before it actually goes through the add or update workflow to get it into the cart- Specified by:
validateAddToCartItemin interfaceUpdateCartServiceExtensionHandler- Returns:
- Throws:
IllegalArgumentException
-