|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.web.service.UpdateCartServiceImpl
@Service(value="blUpdateCartService") public class UpdateCartServiceImpl
Author: jerryocanas Date: 9/26/12
| Field Summary | |
|---|---|
protected UpdateCartServiceExtensionManager |
extensionManager
|
protected static org.apache.commons.logging.Log |
LOG
|
protected OrderService |
orderService
|
protected static BroadleafCurrency |
savedCurrency
|
| Constructor Summary | |
|---|---|
UpdateCartServiceImpl()
|
|
| Method Summary | |
|---|---|
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 |
validateCart(Order cart)
Validates the cart against the active price list and locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
protected static BroadleafCurrency savedCurrency
protected OrderService orderService
protected UpdateCartServiceExtensionManager extensionManager
| Constructor Detail |
|---|
public UpdateCartServiceImpl()
| Method Detail |
|---|
public boolean currencyHasChanged()
UpdateCartService
currencyHasChanged in interface UpdateCartServicepublic UpdateCartResponse copyCartToCurrentContext(Order currentCart)
UpdateCartService
copyCartToCurrentContext in interface UpdateCartServicepublic void validateCart(Order cart)
UpdateCartService
validateCart in interface UpdateCartServiceprotected BroadleafCurrency findActiveCurrency()
protected boolean checkAvailabilityInLocale(DiscreteOrderItem doi,
BroadleafCurrency currency)
public void setSavedCurrency(BroadleafCurrency savedCurrency)
UpdateCartService
setSavedCurrency in interface UpdateCartServicepublic BroadleafCurrency getSavedCurrency()
UpdateCartService
getSavedCurrency in interface UpdateCartService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||