Class SignupController
java.lang.Object
ubic.gemma.web.controller.common.auditAndSecurity.SignupController
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Controller
public class SignupController
extends Object
implements org.springframework.beans.factory.InitializingBean
Controller to signup new users. See also the UserListController.
- Author:
- pavlidis, keshav
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.MessageSource
protected MessageUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
ajaxLoginCheck
(javax.servlet.http.HttpServletResponse response) void
confirmRegistration
(String username, String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) gemma.gsec.authentication.LoginDetailsValueObject
AJAX DWRvoid
signup
(String password, String cPass, String username, String email, String cEmail, boolean ajaxRegisterTrue, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale)
-
Field Details
-
messageSource
@Autowired protected org.springframework.context.MessageSource messageSource -
messageUtil
-
-
Constructor Details
-
SignupController
public SignupController()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
ajaxLoginCheck
@RequestMapping(value="/ajaxLoginCheck.html", method={GET,HEAD}) public void ajaxLoginCheck(javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
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
-
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, @RequestParam(value="ajaxRegisterTrue",defaultValue="false") boolean ajaxRegisterTrue, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale) throws Exception - Throws:
Exception
-
signupForm
-