Class SignupController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Controller
    public class SignupController
    extends BaseController
    implements org.springframework.beans.factory.InitializingBean
    Controller to signup new users. See also the UserListController.
    Author:
    pavlidis, keshav
    • Constructor Detail

      • SignupController

        public SignupController()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • ajaxLoginCheck

        @RequestMapping(value="/ajaxLoginCheck.html",
                        method={GET,HEAD})
        public void ajaxLoginCheck​(javax.servlet.http.HttpServletResponse response)
                            throws Exception
        Throws:
        Exception
      • confirmRegistration

        @RequestMapping(value="/confirmRegistration.html",
                        method={GET,HEAD})
        public void confirmRegistration​(@RequestParam("username")
                                        String username,
                                        @RequestParam("key")
                                        String key,
                                        javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response)
                                 throws Exception
        Throws:
        Exception
      • loginCheck

        public gemma.gsec.authentication.LoginDetailsValueObject loginCheck()
        AJAX DWR
        Returns:
        loginDetails
      • setPasswordEncoder

        public void setPasswordEncoder​(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder)
        Parameters:
        passwordEncoder - the passwordEncoder to set
      • setUserManager

        public void setUserManager​(UserManager userManager)
        Parameters:
        userManager - the userManager to set
      • signup

        @RequestMapping(value="/signup.html",
                        method=POST)
        public void signup​(@RequestParam("password")
                           String password,
                           @RequestParam("passwordConfirm")
                           String cPass,
                           @RequestParam("username")
                           String username,
                           @RequestParam("email")
                           String email,
                           @RequestParam("emailConfirm")
                           String cEmail,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws Exception
        Throws:
        Exception
      • signupForm

        @RequestMapping(value="/signup.html",
                        method={GET,HEAD})
        public String signupForm()
      • setRecaptchaTester

        public void setRecaptchaTester​(ReCaptcha reCaptcha)