Class CartOperationServiceOfferUtils
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.util.offer.CartOperationServiceOfferUtils
-
public class CartOperationServiceOfferUtils extends Object
Wrapper for the offer utils required byCartOperationService
.- Author:
- Sunny Yu
-
-
Constructor Summary
Constructors Constructor Description CartOperationServiceOfferUtils(CartOfferUtils cartOfferUtils, CartItemOfferUtils cartItemOfferUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCartItemQualifiedOfferIdsToIgnoreList(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems)
CartItemOfferUtils
getCartItemOfferUtils()
CartOfferUtils
getCartOfferUtils()
com.broadleafcommerce.order.common.domain.Adjustment
getFreeGiftAdjustment(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem>
getFreeGiftItemsFromOffers(com.broadleafcommerce.cart.client.domain.Cart cart)
List<String>
getOfferIdsToIgnore(com.broadleafcommerce.cart.client.domain.Cart cart)
String
getOriginOfferId(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
List<com.broadleafcommerce.order.common.domain.OfferItemDetail>
getQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
List<String>
getQualifierCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
boolean
isFreeGiftItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
boolean
offerShouldBeIgnored(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offerRef)
void
removeIsFreeGiftItemFlag(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
void
storeFreeGiftItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> freeGiftItems)
-
-
-
Constructor Detail
-
CartOperationServiceOfferUtils
public CartOperationServiceOfferUtils(CartOfferUtils cartOfferUtils, CartItemOfferUtils cartItemOfferUtils)
-
-
Method Detail
-
getCartOfferUtils
public CartOfferUtils getCartOfferUtils()
-
getCartItemOfferUtils
public CartItemOfferUtils getCartItemOfferUtils()
-
storeFreeGiftItems
public void storeFreeGiftItems(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> freeGiftItems)
-
getFreeGiftItemsFromOffers
public List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> getFreeGiftItemsFromOffers(com.broadleafcommerce.cart.client.domain.Cart cart)
-
getOfferIdsToIgnore
public List<String> getOfferIdsToIgnore(com.broadleafcommerce.cart.client.domain.Cart cart)
-
offerShouldBeIgnored
public boolean offerShouldBeIgnored(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offerRef)
-
addCartItemQualifiedOfferIdsToIgnoreList
public void addCartItemQualifiedOfferIdsToIgnoreList(com.broadleafcommerce.cart.client.domain.Cart cart, List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems)
-
isFreeGiftItem
public boolean isFreeGiftItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
-
removeIsFreeGiftItemFlag
public void removeIsFreeGiftItemFlag(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
-
getFreeGiftAdjustment
public com.broadleafcommerce.order.common.domain.Adjustment getFreeGiftAdjustment(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
-
getQualifierCartItemIds
public List<String> getQualifierCartItemIds(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
-
getQualifierCartItemDetails
public List<com.broadleafcommerce.order.common.domain.OfferItemDetail> getQualifierCartItemDetails(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
-
getOriginOfferId
public String getOriginOfferId(com.broadleafcommerce.cart.client.domain.CartItem cartItem)
-
-