Interface UpdateCartServiceExtensionHandler
- All Superinterfaces:
org.broadleafcommerce.common.extension.ExtensionHandler
- All Known Implementing Classes:
AbstractUpdateCartServiceExtensionHandler,i18nUpdateCartServiceExtensionHandler
public interface UpdateCartServiceExtensionHandler
extends org.broadleafcommerce.common.extension.ExtensionHandler
- Author:
- Andre Azzolini (apazzolini), bpolster
-
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 interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Method Details
-
updateAndValidateCart
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.- Parameters:
cart-resultHolder-- Returns:
-
validateAddToCartItem
org.broadleafcommerce.common.extension.ExtensionResultStatusType validateAddToCartItem(org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO itemRequest, org.broadleafcommerce.core.order.domain.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
-