Interface CartItemCatalogInformationService<P extends CatalogItem>
-
- All Known Implementing Classes:
DefaultCartItemCatalogInformationService
public interface CartItemCatalogInformationService<P extends CatalogItem>MapsCatalogIteminformation into theCartItem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.broadleafcommerce.cart.client.domain.CartItempopulateCatalogItemInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, CatalogItemList<? extends CatalogItem> catalogItemList, boolean isAdd, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Populate catalog information within theCartItembased on the providedCatalogItemand the merchandising contextcom.broadleafcommerce.cart.client.domain.CartItempopulateCatalogItemInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, P catalogItem, List<P> catalogItemList, boolean isAdd, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Populate catalog information within theCartItembased on the providedCatalogItemand the merchandising context
-
-
-
Method Detail
-
populateCatalogItemInformation
com.broadleafcommerce.cart.client.domain.CartItem populateCatalogItemInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, CatalogItemList<? extends CatalogItem> catalogItemList, boolean isAdd, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Populate catalog information within theCartItembased on the providedCatalogItemand the merchandising context- Parameters:
cartItem- The CartItem that is to be updated with catalog item datacatalogItemList- The catalog items that were retrieved for the add-to-cart, including dependent catalog itemsisAdd- Whether we are in an add-to-cart flowcontextInfo- Context information around sandbox and multitenant state- Returns:
- the updated CartItem that now contains CatalogItem data
-
populateCatalogItemInformation
com.broadleafcommerce.cart.client.domain.CartItem populateCatalogItemInformation(com.broadleafcommerce.cart.client.domain.CartItem cartItem, P catalogItem, List<P> catalogItemList, boolean isAdd, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Populate catalog information within theCartItembased on the providedCatalogItemand the merchandising context- Parameters:
cartItem- The CartItem that is to be updated with catalog item datacatalogItem- The CatalogItem that this CartItem is intended to representcatalogItemList- The catalog items that were retrieved for the add-to-cart, including dependent catalog itemsisAdd- Whether we are in an add-to-cart flowcontextInfo- Context information around sandbox and multitenant state- Returns:
- the updated CartItem that now contains CatalogItem data
-
-