Interface StaleCartItemsService
-
- All Known Implementing Classes:
DefaultStaleCartItemsService
public interface StaleCartItemsService
Service for removing theCartItems
from the cart if the appropriate product doesn't exist.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.broadleafcommerce.cart.client.domain.Cart
removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, boolean price, boolean updateCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes theCartItems
from the cart if the appropriate product doesn't exist and creates theCartAlert
about removed items.com.broadleafcommerce.cart.client.domain.Cart
removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, ProductList productList, boolean price, boolean updateCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes theCartItems
from the cart if the appropriate product doesn't exist and creates theCartAlert
about removed items.com.broadleafcommerce.cart.client.domain.Cart
removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems, boolean price, boolean updateCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes the specified cart items from the cart and adds theCartAlert
about removed items.
-
-
-
Method Detail
-
removeStaleCartItems
com.broadleafcommerce.cart.client.domain.Cart removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, boolean price, boolean updateCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes theCartItems
from the cart if the appropriate product doesn't exist and creates theCartAlert
about removed items.- Parameters:
cart
- the cart to check the stale itemsprice
- whether or not to re-price the cartupdateCart
- whether or not to updateCart
pricing and save the cart after the removalcontextInfo
- context information about sandboxing and multitenant state- Returns:
- the cart without stale cart items
-
removeStaleCartItems
com.broadleafcommerce.cart.client.domain.Cart removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, ProductList productList, boolean price, boolean updateCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes theCartItems
from the cart if the appropriate product doesn't exist and creates theCartAlert
about removed items.- Parameters:
cart
- the cart to check the stale itemsproductList
- the list of the products for the cart itemsprice
- whether or not to re-price the cartupdateCart
- whether or not to updateCart
pricing and save the cart after the removalcontextInfo
- context information about sandboxing and multitenant state- Returns:
- the cart without stale cart items
-
removeStaleCartItems
com.broadleafcommerce.cart.client.domain.Cart removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems, boolean price, boolean updateCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes the specified cart items from the cart and adds theCartAlert
about removed items.- Parameters:
cart
- the cart to check the stale itemscartItems
- the list of the items to removeprice
- whether or not to re-price the cartupdateCart
- whether or not to updateCart
pricing and save the cart after the removalcontextInfo
- context information about sandboxing and multitenant state- Returns:
- the cart without stale cart items
-
-