Interface CartItemCatalogInformationService<P extends CatalogItem>

All Known Implementing Classes:
DefaultCartItemCatalogInformationService

public interface CartItemCatalogInformationService<P extends CatalogItem>
Maps CatalogItem information into the CartItem.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.cart.client.domain.CartItem
    populateCatalogItemInformation(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 the CartItem based on the provided CatalogItem and the merchandising context
    com.broadleafcommerce.cart.client.domain.CartItem
    populateCatalogItemInformation(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 the CartItem based on the provided CatalogItem and the merchandising context
  • Method Details

    • 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 the CartItem based on the provided CatalogItem and the merchandising context
      Parameters:
      cartItem - The CartItem that is to be updated with catalog item data
      catalogItemList - The catalog items that were retrieved for the add-to-cart, including dependent catalog items
      isAdd - Whether we are in an add-to-cart flow
      contextInfo - 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 the CartItem based on the provided CatalogItem and the merchandising context
      Parameters:
      cartItem - The CartItem that is to be updated with catalog item data
      catalogItem - The CatalogItem that this CartItem is intended to represent
      catalogItemList - The catalog items that were retrieved for the add-to-cart, including dependent catalog items
      isAdd - Whether we are in an add-to-cart flow
      contextInfo - Context information around sandbox and multitenant state
      Returns:
      the updated CartItem that now contains CatalogItem data