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 -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.extension.ExtensionResultStatusTypeupdateAndValidateCart(org.broadleafcommerce.core.order.domain.Order cart, org.broadleafcommerce.common.extension.ExtensionResultHolder resultHolder) Throws an exception if cart is invalid.org.broadleafcommerce.common.extension.ExtensionResultStatusTypevalidateAddToCartItem(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 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 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:
updateAndValidateCartin interfaceUpdateCartServiceExtensionHandler- 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: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
-