com.softslate.commerce.customer.order
Class OrderForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.softslate.commerce.customer.core.BaseForm
          extended bycom.softslate.commerce.customer.order.BillingAddressForm
              extended bycom.softslate.commerce.customer.order.AddressesForm
                  extended bycom.softslate.commerce.customer.order.CheckoutAddressesForm
                      extended bycom.softslate.commerce.customer.order.OrderForm
All Implemented Interfaces:
java.io.Serializable

public class OrderForm
extends CheckoutAddressesForm

Struts form class for submissions to the store's order form. Used for requests to "/OrderProcess.do".

OrderForm is a subclass of CheckoutAddressesForm, and it inherits its address properties and shipping option property.

The validate method of this class runs the validate method of CheckoutAddressesForm to make sure all the required address fields are present and a shipping option was selected. It then checks to make sure at least one product with a positive quantity was submitted.

Author:
David Tobey
See Also:
Serialized Form

Field Summary
private  java.lang.String ccExpirationMonth
           
private  java.lang.String ccExpirationYear
           
private  java.lang.String ccNumber
           
private  java.lang.String ccSecurityCode
           
private  java.lang.String ccType
           
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String[] orderProductCodes
           
private  java.lang.String[] orderProductQuantities
           
private static long serialVersionUID
           
 
Fields inherited from class com.softslate.commerce.customer.order.CheckoutAddressesForm
 
Fields inherited from class com.softslate.commerce.customer.order.AddressesForm
 
Fields inherited from class com.softslate.commerce.customer.order.BillingAddressForm
 
Fields inherited from class com.softslate.commerce.customer.core.BaseForm
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
OrderForm()
           
 
Method Summary
 java.lang.String getCcExpirationMonth()
           
 java.lang.String getCcExpirationYear()
           
 java.lang.String getCcNumber()
           
 java.lang.String getCcSecurityCode()
           
 java.lang.String getCcType()
           
 java.lang.String[] getOrderProductCodes()
           
 java.lang.String[] getOrderProductQuantities()
           
 void setCcExpirationMonth(java.lang.String month)
           
 void setCcExpirationYear(java.lang.String year)
           
 void setCcNumber(java.lang.String string)
           
 void setCcSecurityCode(java.lang.String string)
           
 void setCcType(java.lang.String string)
           
 void setOrderProductCodes(java.lang.String[] string)
           
 void setOrderProductQuantities(java.lang.String[] string)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 void validatePayment()
           
 void validateProducts()
           
 
Methods inherited from class com.softslate.commerce.customer.order.CheckoutAddressesForm
getShippingOption, getUpdateCustomer, isSubmitted, setIsSubmitted, setShippingOption, setUpdateCustomer, validateShippingOption
 
Methods inherited from class com.softslate.commerce.customer.order.AddressesForm
copyBillingToDelivery, getDeliveryAddress1, getDeliveryAddress2, getDeliveryCity, getDeliveryCountry, getDeliveryEmail1, getDeliveryEmail2, getDeliveryExtra1, getDeliveryExtra2, getDeliveryExtra3, getDeliveryExtra4, getDeliveryExtra5, getDeliveryFirstName, getDeliveryLastName, getDeliveryNotes, getDeliveryOrganization, getDeliveryOther, getDeliveryPhone1, getDeliveryPhone2, getDeliveryPostalCode, getDeliveryState, getDeliveryUseBilling, isDeliveryFieldValid, prepareStateAndOtherFields, setDeliveryAddress1, setDeliveryAddress2, setDeliveryCity, setDeliveryCountry, setDeliveryEmail1, setDeliveryEmail2, setDeliveryExtra1, setDeliveryExtra2, setDeliveryExtra3, setDeliveryExtra4, setDeliveryExtra5, setDeliveryFirstName, setDeliveryLastName, setDeliveryNotes, setDeliveryOrganization, setDeliveryOther, setDeliveryPhone1, setDeliveryPhone2, setDeliveryPostalCode, setDeliveryState, setDeliveryUseBilling, validateDeliveryFields, validateDeliveryStateField
 
Methods inherited from class com.softslate.commerce.customer.order.BillingAddressForm
getBillingAddress1, getBillingAddress2, getBillingCity, getBillingCountry, getBillingEmail1, getBillingEmail2, getBillingExtra1, getBillingExtra2, getBillingExtra3, getBillingExtra4, getBillingExtra5, getBillingFirstName, getBillingLastName, getBillingNotes, getBillingOrganization, getBillingOther, getBillingPhone1, getBillingPhone2, getBillingPostalCode, getBillingState, isBillingFieldValid, isOtherState, setBillingAddress1, setBillingAddress2, setBillingCity, setBillingCountry, setBillingEmail1, setBillingEmail2, setBillingExtra1, setBillingExtra2, setBillingExtra3, setBillingExtra4, setBillingExtra5, setBillingFirstName, setBillingLastName, setBillingNotes, setBillingOrganization, setBillingOther, setBillingPhone1, setBillingPhone2, setBillingPostalCode, setBillingState, stateAndCountryMatch, validateBillingFields, validateBillingStateField
 
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettingsBean, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettingsBean, 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

ccType

private java.lang.String ccType

ccNumber

private java.lang.String ccNumber

ccSecurityCode

private java.lang.String ccSecurityCode

ccExpirationMonth

private java.lang.String ccExpirationMonth

ccExpirationYear

private java.lang.String ccExpirationYear

orderProductCodes

private java.lang.String[] orderProductCodes

orderProductQuantities

private java.lang.String[] orderProductQuantities
Constructor Detail

OrderForm

public OrderForm()
Method Detail

getOrderProductCodes

public java.lang.String[] getOrderProductCodes()

getOrderProductQuantities

public java.lang.String[] getOrderProductQuantities()

setOrderProductCodes

public void setOrderProductCodes(java.lang.String[] string)

setOrderProductQuantities

public void setOrderProductQuantities(java.lang.String[] string)

getCcExpirationMonth

public java.lang.String getCcExpirationMonth()

getCcExpirationYear

public java.lang.String getCcExpirationYear()

getCcNumber

public java.lang.String getCcNumber()

getCcSecurityCode

public java.lang.String getCcSecurityCode()

getCcType

public java.lang.String getCcType()

setCcExpirationMonth

public void setCcExpirationMonth(java.lang.String month)

setCcExpirationYear

public void setCcExpirationYear(java.lang.String year)

setCcNumber

public void setCcNumber(java.lang.String string)

setCcSecurityCode

public void setCcSecurityCode(java.lang.String string)

setCcType

public void setCcType(java.lang.String string)

validate

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

validateProducts

public void validateProducts()

validatePayment

public void validatePayment()


Copyright © SoftSlate, Inc. 2003–2005