org.broadleafcommerce.openadmin.web.controller
Class AdminLoginController

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafAbstractController
      extended by org.broadleafcommerce.openadmin.web.controller.AdminLoginController

@Controller(value="blAdminLoginController")
public class AdminLoginController
extends BroadleafAbstractController

AdminLoginController handles login related needs for the BLC admin including:


Field Summary
protected  AdminNavigationService adminNavigationService
           
protected  AdminSecurityService adminSecurityService
           
protected static String changePasswordView
           
protected static String forgotPasswordView
           
protected static String forgotUsernameView
           
protected static String loginRedirect
           
protected static String loginView
           
protected static String resetPasswordRedirect
           
protected static String resetPasswordView
           
 
Constructor Summary
AdminLoginController()
           
 
Method Summary
 String baseLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 String changePassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 String forgotPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 String forgotUsername(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 AdminSecurityService getAdminSecurityService()
           
static String getChangePasswordView()
           
static String getForgotPasswordView()
           
static String getForgotUsernameView()
           
static String getLoginRedirect()
           
static String getLoginView()
           
protected  AdminUser getPersistentAdminUser()
           
static String getResetPasswordRedirect()
           
static String getResetPasswordView()
           
 ResetPasswordForm initResetPasswordForm(javax.servlet.http.HttpServletRequest request)
           
 String loginSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 String processchangePassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, ResetPasswordForm resetPasswordForm)
           
 String processForgotUserName(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, String email)
           
 String processResetPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, ResetPasswordForm resetPasswordForm)
           
protected  String redirectToLoginWithMessage(String message)
           
protected  String redirectToResetPasswordWithMessage(String message)
           
 String resetPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
           
 void setAdminSecurityService(AdminSecurityService adminSecurityService)
           
static void setChangePasswordView(String changePasswordView)
           
protected  void setErrors(GenericResponse response, javax.servlet.http.HttpServletRequest request)
           
static void setForgotPasswordView(String forgotPasswordView)
           
static void setForgotUsernameView(String forgotUsernameView)
           
static void setLoginRedirect(String loginRedirect)
           
static void setLoginView(String loginView)
           
static void setResetPasswordRedirect(String resetPasswordRedirect)
           
static void setResetPasswordView(String resetPasswordView)
           
 
Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
getContextPath, isAjaxRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adminSecurityService

protected AdminSecurityService adminSecurityService

adminNavigationService

protected AdminNavigationService adminNavigationService

loginView

protected static String loginView

forgotPasswordView

protected static String forgotPasswordView

forgotUsernameView

protected static String forgotUsernameView

resetPasswordView

protected static String resetPasswordView

changePasswordView

protected static String changePasswordView

loginRedirect

protected static String loginRedirect

resetPasswordRedirect

protected static String resetPasswordRedirect
Constructor Detail

AdminLoginController

public AdminLoginController()
Method Detail

baseLogin

@RequestMapping(value="/login",
                method=GET)
public String baseLogin(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       org.springframework.ui.Model model)

loginSuccess

@RequestMapping(value={"/","/loginSuccess"},
                method=GET)
public String loginSuccess(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response,
                                          org.springframework.ui.Model model)

forgotPassword

@RequestMapping(value="/forgotPassword",
                method=GET)
public String forgotPassword(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.ui.Model model)

forgotUsername

@RequestMapping(value="/forgotUsername",
                method=GET)
public String forgotUsername(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.ui.Model model)

processResetPassword

@RequestMapping(value="/resetPassword",
                method=POST)
public String processResetPassword(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response,
                                                  org.springframework.ui.Model model,
                                                  @ModelAttribute(value="resetPasswordForm")
                                                  ResetPasswordForm resetPasswordForm)

processForgotUserName

@RequestMapping(value="/forgotUsername",
                method=POST)
public String processForgotUserName(javax.servlet.http.HttpServletRequest request,
                                                   org.springframework.ui.Model model,
                                                   @RequestParam(value="emailAddress")
                                                   String email)

resetPassword

@RequestMapping(value="/resetPassword",
                method=GET)
public String resetPassword(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           org.springframework.ui.Model model)

initResetPasswordForm

@ModelAttribute(value="resetPasswordForm")
public ResetPasswordForm initResetPasswordForm(javax.servlet.http.HttpServletRequest request)

changePassword

@RequestMapping(value="/changePassword",
                method=GET)
public String changePassword(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.ui.Model model)

processchangePassword

@RequestMapping(value="/changePassword",
                method=POST)
public String processchangePassword(javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response,
                                                   org.springframework.ui.Model model,
                                                   @ModelAttribute(value="resetPasswordForm")
                                                   ResetPasswordForm resetPasswordForm)

redirectToLoginWithMessage

protected String redirectToLoginWithMessage(String message)

redirectToResetPasswordWithMessage

protected String redirectToResetPasswordWithMessage(String message)

setErrors

protected void setErrors(GenericResponse response,
                         javax.servlet.http.HttpServletRequest request)

getPersistentAdminUser

protected AdminUser getPersistentAdminUser()

getLoginView

public static String getLoginView()

setLoginView

public static void setLoginView(String loginView)

getForgotPasswordView

public static String getForgotPasswordView()

setForgotPasswordView

public static void setForgotPasswordView(String forgotPasswordView)

getForgotUsernameView

public static String getForgotUsernameView()

setForgotUsernameView

public static void setForgotUsernameView(String forgotUsernameView)

getResetPasswordView

public static String getResetPasswordView()

setResetPasswordView

public static void setResetPasswordView(String resetPasswordView)

getChangePasswordView

public static String getChangePasswordView()

setChangePasswordView

public static void setChangePasswordView(String changePasswordView)

getAdminSecurityService

public AdminSecurityService getAdminSecurityService()

setAdminSecurityService

public void setAdminSecurityService(AdminSecurityService adminSecurityService)

getLoginRedirect

public static String getLoginRedirect()

setLoginRedirect

public static void setLoginRedirect(String loginRedirect)

getResetPasswordRedirect

public static String getResetPasswordRedirect()

setResetPasswordRedirect

public static void setResetPasswordRedirect(String resetPasswordRedirect)


Copyright © 2013. All Rights Reserved.