Interface StaleCartItemsService

All Known Implementing Classes:
DefaultStaleCartItemsService

public interface StaleCartItemsService
Service for removing the CartItems from the cart if the appropriate product doesn't exist.
Author:
Dima Myroniuk (dmyroniuk)
  • Method Summary

    Modifier and Type
    Method
    Description
    default 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 the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
    com.broadleafcommerce.cart.client.domain.Cart
    removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, boolean price, boolean updateCart, Map<String,String> paymentLockTokens, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Removes the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
    default com.broadleafcommerce.cart.client.domain.Cart
    removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, CatalogItemList<? extends CatalogItem> catalogItemList, boolean price, boolean updateCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Removes the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
    com.broadleafcommerce.cart.client.domain.Cart
    removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, CatalogItemList<? extends CatalogItem> catalogItemList, boolean price, boolean updateCart, Map<String,String> paymentLockTokens, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Removes the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
    default com.broadleafcommerce.cart.client.domain.Cart
    removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItemsToRemove, boolean price, boolean updateCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Removes the specified cart items from the cart and adds the CartAlert about removed items.
    com.broadleafcommerce.cart.client.domain.Cart
    removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItemsToRemove, boolean price, boolean updateCart, Map<String,String> paymentLockTokens, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Removes the specified cart items from the cart and adds the CartAlert about removed items.
  • Method Details

    • removeStaleCartItems

      default 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 the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
      Parameters:
      cart - the cart to check the stale items
      price - whether or not to re-price the cart
      updateCart - whether or not to update Cart pricing and save the cart after the removal
      contextInfo - 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, boolean price, boolean updateCart, Map<String,String> paymentLockTokens, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Removes the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
      Parameters:
      cart - the cart to check the stale items
      price - whether or not to re-price the cart
      updateCart - whether or not to update Cart pricing and save the cart after the removal
      paymentLockTokens - Tokens that grant this service access to act upon the payment. The presence of these tokens indicates that this execution flow owns the lock.
      contextInfo - context information about sandboxing and multitenant state
      Returns:
      the cart without stale cart items
    • removeStaleCartItems

      default com.broadleafcommerce.cart.client.domain.Cart removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, CatalogItemList<? extends CatalogItem> catalogItemList, boolean price, boolean updateCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Removes the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
      Parameters:
      cart - the cart to check the stale items
      catalogItemList - the list of the products for the cart items
      price - whether or not to re-price the cart
      updateCart - whether or not to update Cart pricing and save the cart after the removal
      contextInfo - 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, CatalogItemList<? extends CatalogItem> catalogItemList, boolean price, boolean updateCart, Map<String,String> paymentLockTokens, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Removes the CartItems from the cart if the appropriate product doesn't exist and creates the CartAlert about removed items.
      Parameters:
      cart - the cart to check the stale items
      catalogItemList - the list of the products for the cart items
      price - whether or not to re-price the cart
      updateCart - whether or not to update Cart pricing and save the cart after the removal
      paymentLockTokens - Tokens that grant this service access to act upon the payment. The presence of these tokens indicates that this execution flow owns the lock.
      contextInfo - context information about sandboxing and multitenant state
      Returns:
      the cart without stale cart items
    • removeStaleCartItems

      default com.broadleafcommerce.cart.client.domain.Cart removeStaleCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItemsToRemove, boolean price, boolean updateCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Removes the specified cart items from the cart and adds the CartAlert about removed items.
      Parameters:
      cart - the cart to check the stale items
      cartItemsToRemove - the list of the items to remove
      price - whether or not to re-price the cart
      updateCart - whether or not to update Cart pricing and save the cart after the removal
      contextInfo - 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> cartItemsToRemove, boolean price, boolean updateCart, Map<String,String> paymentLockTokens, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Removes the specified cart items from the cart and adds the CartAlert about removed items.
      Parameters:
      cart - the cart to check the stale items
      cartItemsToRemove - the list of the items to remove
      price - whether or not to re-price the cart
      updateCart - whether or not to update Cart pricing and save the cart after the removal
      paymentLockTokens - Tokens that grant this service access to act upon the payment. The presence of these tokens indicates that this execution flow owns the lock.
      contextInfo - context information about sandboxing and multitenant state
      Returns:
      the cart without stale cart items