|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 CustomerAjaxController
customer
- the customer to be added.request
- the current HttpServletRequest.
ShoppingCartBean
object
DwrValidationException
- the validation errors to be displayedpublic ShoppingCartBean anonymousSignIn(AnonymousSignInFormBean anonymousSignInFormBean, javax.servlet.http.HttpServletRequest request) throws DwrValidationException
anonymousSignIn
in interface CustomerAjaxController
anonymousSignInFormBean
- 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 CustomerAjaxController
request
- the current HttpServletRequest
Customer
objectpublic java.lang.String resetPassword(java.lang.String email, javax.servlet.http.HttpServletRequest request)
resetPassword
in interface CustomerAjaxController
email
- 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 CustomerAjaxController
authenticationManager
- the acegi AuthenticationManager
public void setCheckoutService(CheckoutService checkoutService)
setCheckoutService
in interface CustomerAjaxController
checkoutService
- the checkoutService to setpublic void setCustomerService(CustomerService customerService)
setCustomerService
in interface CustomerAjaxController
customerService
- the CustomerService objectpublic void setCustomerSessionService(CustomerSessionService customerSessionService)
setCustomerSessionService
in interface CustomerAjaxController
customerSessionService
- the customer session service objectpublic void setOnePageHelper(OnePageHelper onePageHelper)
setOnePageHelper
in interface CustomerAjaxController
onePageHelper
- the onePageHelper to setpublic void setRequestHelper(RequestHelper requestHelper)
setRequestHelper
in interface CustomerAjaxController
requestHelper
- the request helperpublic ShoppingCartBean signIn(SignInFormBean signInFormBean, javax.servlet.http.HttpServletRequest request) throws DwrValidationException
signIn
in interface CustomerAjaxController
signInFormBean
- the form bean containing the sign in inforequest
- the current request object
ShoppingCartBean
object
DwrValidationException
- the validation errors to be displayedpublic ShoppingCartBean updateAddress(CustomerAddress address, boolean isShippingAddress, javax.servlet.http.HttpServletRequest request)
updateAddress
in interface CustomerAjaxController
address
- 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 |