|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomerAjaxController
Provides customer related services for ajax.
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. |
Method Detail |
---|
ShoppingCartBean addCustomer(Customer customer, javax.servlet.http.HttpServletRequest request)
customer
- the customer to be added.request
- the current HttpServletRequest.
ShoppingCartBean
object
DwrValidationException
- the validation errors to be displayedShoppingCartBean anonymousSignIn(AnonymousSignInFormBean anonymousSignInFormBean, javax.servlet.http.HttpServletRequest request) throws DwrValidationException
anonymousSignInFormBean
- the form bean containing the sign in inforequest
- the current request object
ShoppingCartBean
object
DwrValidationException
- the validation errors to be displayedCustomer getCustomer(javax.servlet.http.HttpServletRequest request)
Customer
through dwr.
request
- the current HttpServletRequest
Customer
objectjava.lang.String resetPassword(java.lang.String email, javax.servlet.http.HttpServletRequest request)
email
- The email address of the customer whose password is to be resetrequest
- The current http request
void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
authenticationManager
- the acegi AuthenticationManager
void setCheckoutService(CheckoutService checkoutService)
checkoutService
- the checkoutService to setvoid setCustomerService(CustomerService customerService)
customerService
- the CustomerService objectvoid setCustomerSessionService(CustomerSessionService customerSessionService)
customerSessionService
- the customer session service objectvoid setOnePageHelper(OnePageHelper onePageHelper)
onePageHelper
- the onePageHelper to setvoid setRequestHelper(RequestHelper requestHelper)
requestHelper
- the request helperShoppingCartBean signIn(SignInFormBean signInFormBean, javax.servlet.http.HttpServletRequest request) throws DwrValidationException
signInFormBean
- the form bean containing the sign in inforequest
- the current request object
ShoppingCartBean
object
DwrValidationException
- the validation errors to be displayedShoppingCartBean updateAddress(CustomerAddress address, boolean isShippingAddress, javax.servlet.http.HttpServletRequest request)
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 |