@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 BroadleafCurrency | savedCurrency | 
| Constructor and Description | 
|---|
| UpdateCartServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | checkAvailabilityInLocale(DiscreteOrderItem doi,
                         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 BroadleafCurrency | findActiveCurrency() | 
| BroadleafCurrency | getSavedCurrency()Gets the currency that was set as active on last pass through. | 
| void | setSavedCurrency(BroadleafCurrency savedCurrency)Sets the currency that was set as active on last pass through. | 
| void | updateAndValidateCart(Order cart)Updates the cart (locale, pricing) and performs validation. | 
| void | validateAddToCartRequest(OrderItemRequestDTO itemRequest,
                        Order cart)Validates the given add item that will be added to the given cart. | 
protected static final org.apache.commons.logging.Log LOG
protected static BroadleafCurrency savedCurrency
protected OrderService orderService
protected UpdateCartServiceExtensionManager extensionManager
public boolean currencyHasChanged()
UpdateCartServicecurrencyHasChanged in interface UpdateCartServicepublic UpdateCartResponse copyCartToCurrentContext(Order currentCart)
UpdateCartServicecopyCartToCurrentContext in interface UpdateCartServicepublic void validateAddToCartRequest(OrderItemRequestDTO itemRequest, Order cart)
UpdateCartServicevalidateAddToCartRequest in interface UpdateCartServicepublic void updateAndValidateCart(Order cart)
UpdateCartServiceupdateAndValidateCart in interface UpdateCartServiceprotected BroadleafCurrency findActiveCurrency()
protected boolean checkAvailabilityInLocale(DiscreteOrderItem doi, BroadleafCurrency currency)
public void setSavedCurrency(BroadleafCurrency savedCurrency)
UpdateCartServicesetSavedCurrency in interface UpdateCartServicepublic BroadleafCurrency getSavedCurrency()
UpdateCartServicegetSavedCurrency in interface UpdateCartServiceCopyright © 2020. All rights reserved.