public class BroadleafRegisterController
extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected CustomerService |
customerService |
protected LoginService |
loginService |
protected org.broadleafcommerce.common.security.MergeCartProcessor |
mergeCartProcessor |
protected RegisterCustomerValidator |
registerCustomerValidator |
protected static String |
registerSuccessView |
protected static String |
registerView |
| Constructor and Description |
|---|
BroadleafRegisterController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRegisterSuccessView()
Returns the view that will be returned from this controller when the
registration is successful.
|
String |
getRegisterView()
Returns the view that will be used to display the registration page.
|
RegisterCustomerForm |
initCustomerRegistrationForm() |
boolean |
isUseEmailForLogin() |
String |
processRegister(RegisterCustomerForm registerCustomerForm,
org.springframework.validation.BindingResult errors,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
register(RegisterCustomerForm registerCustomerForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
void |
setUseEmailForLogin(boolean useEmailForLogin) |
protected static String registerSuccessView
protected static String registerView
protected CustomerService customerService
protected RegisterCustomerValidator registerCustomerValidator
protected org.broadleafcommerce.common.security.MergeCartProcessor mergeCartProcessor
protected LoginService loginService
public String register(RegisterCustomerForm registerCustomerForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
public 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 org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionpublic RegisterCustomerForm initCustomerRegistrationForm()
public boolean isUseEmailForLogin()
public void setUseEmailForLogin(boolean useEmailForLogin)
public String getRegisterSuccessView()
public String getRegisterView()
Copyright © 2019. All rights reserved.