org.mobicents.examples.convergeddemo.seam.action
Class ShoppingCartBean
java.lang.Object
org.mobicents.examples.convergeddemo.seam.action.ShoppingCartBean
- All Implemented Interfaces:
- java.io.Serializable, ShoppingCart
@Name(value="cart")
@Scope(value=SESSION)
public class ShoppingCartBean
- extends java.lang.Object
- implements ShoppingCart, java.io.Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingCartBean
public ShoppingCartBean()
getCart
public java.util.List<OrderLine> getCart()
- Specified by:
getCart in interface ShoppingCart
getIsEmpty
public boolean getIsEmpty()
- Specified by:
getIsEmpty in interface ShoppingCart
addProduct
public void addProduct(Product product,
int quantity)
- Specified by:
addProduct in interface ShoppingCart
getCartSelection
public java.util.Map getCartSelection()
- Specified by:
getCartSelection in interface ShoppingCart
getSubtotal
public java.math.BigDecimal getSubtotal()
- Specified by:
getSubtotal in interface ShoppingCart
getTax
public java.math.BigDecimal getTax()
- Specified by:
getTax in interface ShoppingCart
getTotal
public java.math.BigDecimal getTotal()
- Specified by:
getTotal in interface ShoppingCart
updateCart
public void updateCart()
- Specified by:
updateCart in interface ShoppingCart
resetCart
public void resetCart()
- Specified by:
resetCart in interface ShoppingCart
destroy
public void destroy()
- Specified by:
destroy in interface ShoppingCart
Copyright © 2010. All Rights Reserved.