public class BroadleafRegisterController extends BroadleafAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected CustomerService |
customerService |
protected LoginService |
loginService |
protected MergeCartProcessor |
mergeCartProcessor |
protected RegisterCustomerValidator |
registerCustomerValidator |
protected static java.lang.String |
registerSuccessView |
protected static java.lang.String |
registerView |
| Constructor and Description |
|---|
BroadleafRegisterController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRegisterSuccessView()
Returns the view that will be returned from this controller when the
registration is successful.
|
java.lang.String |
getRegisterView()
Returns the view that will be used to display the registration page.
|
RegisterCustomerForm |
initCustomerRegistrationForm() |
boolean |
isUseEmailForLogin() |
java.lang.String |
processRegister(RegisterCustomerForm registerCustomerForm,
org.springframework.validation.BindingResult errors,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
java.lang.String |
register(RegisterCustomerForm registerCustomerForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
void |
setUseEmailForLogin(boolean useEmailForLogin) |
getContextPath, isAjaxRequestprotected static java.lang.String registerSuccessView
protected static java.lang.String registerView
protected CustomerService customerService
protected RegisterCustomerValidator registerCustomerValidator
protected MergeCartProcessor mergeCartProcessor
protected LoginService loginService
public java.lang.String register(RegisterCustomerForm registerCustomerForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
public java.lang.String processRegister(RegisterCustomerForm registerCustomerForm, org.springframework.validation.BindingResult errors, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) throws ServiceException
ServiceExceptionpublic RegisterCustomerForm initCustomerRegistrationForm()
public boolean isUseEmailForLogin()
public void setUseEmailForLogin(boolean useEmailForLogin)
public java.lang.String getRegisterSuccessView()
public java.lang.String getRegisterView()
Copyright © 2018. All Rights Reserved.