Class CartActionBean
java.lang.Object
org.mybatis.jpetstore.web.actions.AbstractActionBean
org.mybatis.jpetstore.web.actions.CartActionBean
- All Implemented Interfaces:
Serializable
,net.sourceforge.stripes.action.ActionBean
The Class CartActionBean.
- Author:
- Eduardo Macarron
- See Also:
-
Field Summary
Fields inherited from class org.mybatis.jpetstore.web.actions.AbstractActionBean
context, ERROR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.sourceforge.stripes.action.Resolution
Adds the item to cart.net.sourceforge.stripes.action.ForwardResolution
checkOut()
void
clear()
getCart()
net.sourceforge.stripes.action.Resolution
Removes the item from cart.void
void
setWorkingItemId
(String workingItemId) net.sourceforge.stripes.action.Resolution
Update cart quantities.net.sourceforge.stripes.action.ForwardResolution
viewCart()
Methods inherited from class org.mybatis.jpetstore.web.actions.AbstractActionBean
getContext, setContext, setMessage
-
Constructor Details
-
CartActionBean
public CartActionBean()
-
-
Method Details
-
getCart
-
setCart
-
setWorkingItemId
-
addItemToCart
public net.sourceforge.stripes.action.Resolution addItemToCart()Adds the item to cart.- Returns:
- the resolution
-
removeItemFromCart
public net.sourceforge.stripes.action.Resolution removeItemFromCart()Removes the item from cart.- Returns:
- the resolution
-
updateCartQuantities
public net.sourceforge.stripes.action.Resolution updateCartQuantities()Update cart quantities.- Returns:
- the resolution
-
viewCart
public net.sourceforge.stripes.action.ForwardResolution viewCart() -
checkOut
public net.sourceforge.stripes.action.ForwardResolution checkOut() -
clear
public void clear()
-