com.softslate.commerce.customer.order
Class CheckoutAddressesForm

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OrderForm

public class CheckoutAddressesForm
extends AddressesForm

Struts form class for submissions to record address information and a selected shipping option during checkout. Used for requests to "/CheckoutAddresses.do".

CheckoutAddressesForm is a subclass of AddressesForm, and it inherits its billing and delivery address properties.

The validate method of this class runs the validate method of AddressesForm to make sure all the required billing and delivery fields are present. It then checks to make sure a shipping option was selected.

Author:
David Tobey
See Also:
Serialized Form

Field Summary
private  boolean isSubmitted
           
(package private) static org.apache.commons.logging.Log log
           
private static long serialVersionUID
           
private  java.lang.String shippingOption
           
private  java.lang.String updateCustomer
           
 
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
CheckoutAddressesForm()
           
 
Method Summary
 java.lang.String getShippingOption()
           
 java.lang.String getUpdateCustomer()
           
 boolean isSubmitted()
           
 void setIsSubmitted(boolean isSubmitted)
           
 void setShippingOption(java.lang.String string)
           
 void setUpdateCustomer(java.lang.String updateCustomer)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
protected  void 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

isSubmitted

private boolean isSubmitted

shippingOption

private java.lang.String shippingOption

updateCustomer

private java.lang.String updateCustomer
Constructor Detail

CheckoutAddressesForm

public CheckoutAddressesForm()
Method Detail

isSubmitted

public boolean isSubmitted()

setIsSubmitted

public void setIsSubmitted(boolean isSubmitted)

getShippingOption

public java.lang.String getShippingOption()

setShippingOption

public void setShippingOption(java.lang.String string)

getUpdateCustomer

public java.lang.String getUpdateCustomer()

setUpdateCustomer

public void setUpdateCustomer(java.lang.String updateCustomer)

validate

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

validateShippingOption

protected void validateShippingOption()


Copyright © SoftSlate, Inc. 2003–2005