@Service(value="blUpdateCartService") public class UpdateCartServiceImpl extends Object implements UpdateCartService
| Modifier and Type | Field and Description |
|---|---|
protected UpdateCartServiceExtensionManager |
extensionManager |
protected static org.apache.commons.logging.Log |
LOG |
protected OrderService |
orderService |
protected static org.broadleafcommerce.common.currency.domain.BroadleafCurrency |
savedCurrency |
| Constructor and Description |
|---|
UpdateCartServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkAvailabilityInLocale(DiscreteOrderItem doi,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) |
UpdateCartResponse |
copyCartToCurrentContext(Order currentCart)
Reprices the order by removing all items and recreating the cart calling for a reprice on the new cart.
|
boolean |
currencyHasChanged()
Compares the currency set in the BroadleafRequestContext with the savedCurrency.
|
protected org.broadleafcommerce.common.currency.domain.BroadleafCurrency |
findActiveCurrency() |
org.broadleafcommerce.common.currency.domain.BroadleafCurrency |
getSavedCurrency()
Gets the currency that was set as active on last pass through.
|
void |
setSavedCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency savedCurrency)
Sets the currency that was set as active on last pass through.
|
void |
validateCart(Order cart)
Validates the cart against the active price list and locale.
|
protected static final org.apache.commons.logging.Log LOG
protected static org.broadleafcommerce.common.currency.domain.BroadleafCurrency savedCurrency
protected OrderService orderService
protected UpdateCartServiceExtensionManager extensionManager
public boolean currencyHasChanged()
UpdateCartServicecurrencyHasChanged in interface UpdateCartServicepublic UpdateCartResponse copyCartToCurrentContext(Order currentCart)
UpdateCartServicecopyCartToCurrentContext in interface UpdateCartServicepublic void validateCart(Order cart)
UpdateCartServicevalidateCart in interface UpdateCartServiceprotected org.broadleafcommerce.common.currency.domain.BroadleafCurrency findActiveCurrency()
protected boolean checkAvailabilityInLocale(DiscreteOrderItem doi, org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
public void setSavedCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency savedCurrency)
UpdateCartServicesetSavedCurrency in interface UpdateCartServicepublic org.broadleafcommerce.common.currency.domain.BroadleafCurrency getSavedCurrency()
UpdateCartServicegetSavedCurrency in interface UpdateCartServiceCopyright © 2019. All rights reserved.