|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.sfweb.ajax.service.impl.CustomerAjaxControllerImpl
public class CustomerAjaxControllerImpl
The default implementation of CustomerAjaxComtroller.
| Constructor Summary | |
|---|---|
CustomerAjaxControllerImpl()
|
|
| Method Summary | |
|---|---|
ShoppingCartBean |
addCustomer(Customer customer,
javax.servlet.http.HttpServletRequest request)
Pass call on to the service layer to add the customer. |
ShoppingCartBean |
anonymousSignIn(AnonymousSignInFormBean anonymousSignInFormBean,
javax.servlet.http.HttpServletRequest request)
Perform anonymous customer sign in for dwr. |
Customer |
getCustomer(javax.servlet.http.HttpServletRequest request)
Method to retrieve the current Customer through dwr. |
java.lang.String |
resetPassword(java.lang.String email,
javax.servlet.http.HttpServletRequest request)
Resets the customer's password for the specified email. |
void |
setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
|
void |
setCheckoutService(CheckoutService checkoutService)
|
void |
setCustomerService(CustomerService customerService)
|
void |
setCustomerSessionService(CustomerSessionService customerSessionService)
|
void |
setOnePageHelper(OnePageHelper onePageHelper)
|
void |
setRequestHelper(RequestHelper requestHelper)
|
ShoppingCartBean |
signIn(SignInFormBean signInFormBean,
javax.servlet.http.HttpServletRequest request)
Perform customer sign in for dwr. |
ShoppingCartBean |
updateAddress(CustomerAddress address,
boolean isShippingAddress,
javax.servlet.http.HttpServletRequest request)
Updates the billing or shipping address selection and adds the address if it is new. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomerAjaxControllerImpl()
| Method Detail |
|---|
public ShoppingCartBean addCustomer(Customer customer,
javax.servlet.http.HttpServletRequest request)
throws DwrValidationException
addCustomer in interface CustomerAjaxControllercustomer - the customer to be added.request - the current HttpServletRequest.
ShoppingCartBean object
DwrValidationException - the validation errors to be displayed
public ShoppingCartBean anonymousSignIn(AnonymousSignInFormBean anonymousSignInFormBean,
javax.servlet.http.HttpServletRequest request)
throws DwrValidationException
anonymousSignIn in interface CustomerAjaxControlleranonymousSignInFormBean - the form bean containing the sign in inforequest - the current request object
ShoppingCartBean object
DwrValidationException - the validation errors to be displayedpublic Customer getCustomer(javax.servlet.http.HttpServletRequest request)
Customer through dwr.
getCustomer in interface CustomerAjaxControllerrequest - the current HttpServletRequest
Customer object
public java.lang.String resetPassword(java.lang.String email,
javax.servlet.http.HttpServletRequest request)
resetPassword in interface CustomerAjaxControlleremail - The email address of the customer whose password is to be resetrequest - The current http request
public void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
setAuthenticationManager in interface CustomerAjaxControllerauthenticationManager - the acegi AuthenticationManagerpublic void setCheckoutService(CheckoutService checkoutService)
setCheckoutService in interface CustomerAjaxControllercheckoutService - the checkoutService to setpublic void setCustomerService(CustomerService customerService)
setCustomerService in interface CustomerAjaxControllercustomerService - the CustomerService objectpublic void setCustomerSessionService(CustomerSessionService customerSessionService)
setCustomerSessionService in interface CustomerAjaxControllercustomerSessionService - the customer session service objectpublic void setOnePageHelper(OnePageHelper onePageHelper)
setOnePageHelper in interface CustomerAjaxControlleronePageHelper - the onePageHelper to setpublic void setRequestHelper(RequestHelper requestHelper)
setRequestHelper in interface CustomerAjaxControllerrequestHelper - the request helper
public ShoppingCartBean signIn(SignInFormBean signInFormBean,
javax.servlet.http.HttpServletRequest request)
throws DwrValidationException
signIn in interface CustomerAjaxControllersignInFormBean - the form bean containing the sign in inforequest - the current request object
ShoppingCartBean object
DwrValidationException - the validation errors to be displayed
public ShoppingCartBean updateAddress(CustomerAddress address,
boolean isShippingAddress,
javax.servlet.http.HttpServletRequest request)
updateAddress in interface CustomerAjaxControlleraddress - the selected CustomerAddress, possibly a new oneisShippingAddress - true if this is a shipping address, false if it is a biling addressrequest - the current HttpServletRequest
ShoppingCartBean object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||