com.elasticpath.sfweb.ajax.service.impl
Class CheckoutAjaxControllerImpl

java.lang.Object
  extended by com.elasticpath.sfweb.ajax.service.impl.CheckoutAjaxControllerImpl
All Implemented Interfaces:
CheckoutAjaxController

public class CheckoutAjaxControllerImpl
extends java.lang.Object
implements CheckoutAjaxController

The default implementation of CheckoutAjaxController.


Constructor Summary
CheckoutAjaxControllerImpl()
           
 
Method Summary
 java.lang.String checkout(CreditCardFormBean creditCardFormBean, boolean saveCard, javax.servlet.http.HttpServletRequest request)
          Perform the checkout operation with the given cart.
 void setCheckoutService(CheckoutService checkoutService)
           
 void setCustomerService(CustomerService customerService)
           
 void setOnePageHelper(OnePageHelper onePageHelper)
           
 void setRequestHelper(RequestHelper requestHelper)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckoutAjaxControllerImpl

public CheckoutAjaxControllerImpl()
Method Detail

checkout

public java.lang.String checkout(CreditCardFormBean creditCardFormBean,
                                 boolean saveCard,
                                 javax.servlet.http.HttpServletRequest request)
                          throws DwrValidationException
Perform the checkout operation with the given cart.

Specified by:
checkout in interface CheckoutAjaxController
Parameters:
creditCardFormBean - the credit card being used for the checkout
saveCard - flag for if the credit card should be saved for future use
request - the current request
Returns:
a string of the order number
Throws:
DwrValidationException - if anything goes wrong with the checkout

setCheckoutService

public void setCheckoutService(CheckoutService checkoutService)
Specified by:
setCheckoutService in interface CheckoutAjaxController
Parameters:
checkoutService - the checkoutService to set

setCustomerService

public void setCustomerService(CustomerService customerService)
Specified by:
setCustomerService in interface CheckoutAjaxController
Parameters:
customerService - the CustomerService object

setOnePageHelper

public void setOnePageHelper(OnePageHelper onePageHelper)
Specified by:
setOnePageHelper in interface CheckoutAjaxController
Parameters:
onePageHelper - the onePageHelper to set

setRequestHelper

public void setRequestHelper(RequestHelper requestHelper)
Specified by:
setRequestHelper in interface CheckoutAjaxController
Parameters:
requestHelper - the request helper