Interface UpdateCartServiceExtensionHandler
- All Superinterfaces:
ExtensionHandler
- All Known Implementing Classes:
AbstractUpdateCartServiceExtensionHandler,i18nUpdateCartServiceExtensionHandler
- Author:
- Andre Azzolini (apazzolini), bpolster
-
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 interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Method Details
-
updateAndValidateCart
Throws an exception if cart is invalid.- Parameters:
cart-resultHolder-- Returns:
-
validateAddToCartItem
ExtensionResultStatusType validateAddToCartItem(OrderItemRequestDTO itemRequest, Order cart) throws IllegalArgumentException Validates the item request just before it actually goes through the add or update workflow to get it into the cart- Parameters:
itemRequest-cart-- Returns:
- Throws:
IllegalArgumentException
-