Interface ItemListAddToCartService

  • All Known Implementing Classes:
    DefaultItemListAddToCartService

    public interface ItemListAddToCartService
    Service for adding ItemList(s) to the cart
    Author:
    Chris Kittrell (ckittrell)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ItemListAddToCartResponse addItemListsToCart​(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, Set<String> itemListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Adds all ItemListItems to the cart from the ItemLists identified by the provided itemListIds
      ItemListAddToCartResponse addItemListToCart​(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, String itemListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Adds all ItemListItems to the cart from the ItemList identified by the provided itemListId
    • Method Detail

      • addItemListToCart

        ItemListAddToCartResponse addItemListToCart​(com.broadleafcommerce.cart.client.domain.Cart cart,
                                                    com.broadleafcommerce.order.common.domain.CustomerRef customerRef,
                                                    String itemListId,
                                                    com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Adds all ItemListItems to the cart from the ItemList identified by the provided itemListId
        Parameters:
        cart - The cart that is to be added to
        customerRef - The current customer & owner of the cart
        itemListId - The id of the ItemList that is to be added to cart
        contextInfo - The context of the current request
        Returns:
        A DTO representing the updated cart & any individual add to cart failures
      • addItemListsToCart

        ItemListAddToCartResponse addItemListsToCart​(com.broadleafcommerce.cart.client.domain.Cart cart,
                                                     com.broadleafcommerce.order.common.domain.CustomerRef customerRef,
                                                     Set<String> itemListIds,
                                                     @Nullable
                                                     com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Adds all ItemListItems to the cart from the ItemLists identified by the provided itemListIds
        Parameters:
        cart - The cart that is to be added to
        customerRef - The current customer & owner of the cart
        itemListIds - The ids of the ItemLists that are to be added to cart
        contextInfo - The context of the current request
        Returns:
        A DTO representing the updated cart & any individual add to cart failures