org.mobicents.examples.convergeddemo.seam.action
Class ShoppingCartBean

java.lang.Object
  extended by 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

Constructor Summary
ShoppingCartBean()
           
 
Method Summary
 void addProduct(Product product, int quantity)
           
 void destroy()
           
 java.util.List<OrderLine> getCart()
           
 java.util.Map getCartSelection()
           
 boolean getIsEmpty()
           
 java.math.BigDecimal getSubtotal()
           
 java.math.BigDecimal getTax()
           
 java.math.BigDecimal getTotal()
           
 void resetCart()
           
 void updateCart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCartBean

public ShoppingCartBean()
Method Detail

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.