Interface CartItemProductService
-
- All Known Implementing Classes:
DefaultCartItemProductService
public interface CartItemProductService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description com.broadleafcommerce.cart.client.domain.CartItem
populateProductInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, List<Product> productList, boolean isAdd)
com.broadleafcommerce.cart.client.domain.CartItem
populateProductInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, List<Product> productList, boolean isAdd, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Populate product information within theCartItem
based on the provided product and the merchandising context
-
-
-
Method Detail
-
populateProductInformation
@Deprecated com.broadleafcommerce.cart.client.domain.CartItem populateProductInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, List<Product> productList, boolean isAdd)
Populate product information within theCartItem
based on the provided product- Parameters:
cartItem
- The CartItem that is to be updated with product dataproduct
- The product that this CartItem is intended to representproductList
- The products that were retrieved for the add-to-cart, including dependent item productsisAdd
- Whether we are in an add-to-cart flow- Returns:
- the updated CartItem that now contains Product data
-
populateProductInformation
com.broadleafcommerce.cart.client.domain.CartItem populateProductInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, List<Product> productList, boolean isAdd, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Populate product information within theCartItem
based on the provided product and the merchandising context- Parameters:
cartItem
- The CartItem that is to be updated with product dataproduct
- The product that this CartItem is intended to representproductList
- The products that were retrieved for the add-to-cart, including dependent item productsisAdd
- Whether we are in an add-to-cart flowcontextInfo
- Context information around sandbox and multitenant state- Returns:
- the updated CartItem that now contains Product data
-
-