com.softslate.commerce.customer.order
Class CartItemEditForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by com.softslate.commerce.customer.core.BaseForm
          extended by com.softslate.commerce.customer.order.CartAddForm
              extended by com.softslate.commerce.customer.order.CartItemEditForm
All Implemented Interfaces:
java.io.Serializable

public class CartItemEditForm
extends CartAddForm

Struts form class for submissions to edit an item in the current user's cart. Used for requests to "/CartItemEdit.do".

The validate method of this class extends CartAddForm.validate(ActionMapping, HttpServletRequest). It checks the orderItemID property to make sure it exists; checks the quantity property to make sure it's greater than zero; and checks to make sure the user's session has not expired. In doing this, it also populates the orderItem property with the OrderItem instance being edited.

Author:
David Tobey
See Also:
CartItemEditAction, Serialized Form

Field Summary
(package private) static org.apache.commons.logging.Log log
           
private  OrderItem orderItem
           
private  java.lang.String orderItemID
           
private static long serialVersionUID
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
CartItemEditForm()
           
 
Method Summary
 OrderItem getOrderItem()
           
 java.lang.String getOrderItemID()
           
 void setOrderItem(OrderItem orderItem)
           
 void setOrderItemID(java.lang.String orderItemID)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class com.softslate.commerce.customer.order.CartAddForm
getOrderAttributes, getOrderProductCodes, getOrderProductQuantities, getProductNames, getRequiredAttributeCodes, getRequiredAttributeNames, setOrderAttributes, setOrderProductCodes, setOrderProductQuantities, setProductNames, setRequiredAttributeCodes, setRequiredAttributeNames, validateAttributes, validateProductCode, validateQuantity
 
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

orderItemID

private java.lang.String orderItemID

orderItem

private OrderItem orderItem
Constructor Detail

CartItemEditForm

public CartItemEditForm()
Method Detail

getOrderItem

public OrderItem getOrderItem()

setOrderItem

public void setOrderItem(OrderItem orderItem)

getOrderItemID

public java.lang.String getOrderItemID()

setOrderItemID

public void setOrderItemID(java.lang.String orderItemID)

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Overrides:
validate in class CartAddForm


Copyright ? SoftSlate, LLC 2003?2005