@Controller @RequestMapping(value="/account") public class AccountController extends Object
| Constructor and Description |
|---|
AccountController() |
| Modifier and Type | Method and Description |
|---|---|
String |
activateUser(String activationCode,
org.springframework.ui.Model model) |
String |
getLoginForm() |
String |
getPasswordResetForm() |
org.springframework.web.servlet.ModelAndView |
getRegisterForm() |
ErrorMessageResponse |
handleDatabaseException(DatabaseException e) |
ErrorMessageResponse |
handleMolgenisUserException(MolgenisUserException e) |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
void |
registerUser(org.molgenis.security.account.RegisterRequest registerRequest,
CaptchaRequest captchaRequest) |
void |
resetPassword(org.molgenis.security.account.PasswordResetRequest passwordResetRequest) |
@RequestMapping(value="/login",
method=GET)
public String getLoginForm()
@RequestMapping(value="/register",
method=GET)
public org.springframework.web.servlet.ModelAndView getRegisterForm()
throws DatabaseException
DatabaseException@RequestMapping(value="/password/reset",
method=GET)
public String getPasswordResetForm()
@RequestMapping(value="/register",
method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void registerUser(@ModelAttribute
org.molgenis.security.account.RegisterRequest registerRequest,
@ModelAttribute
CaptchaRequest captchaRequest)
throws DatabaseException,
CaptchaException,
org.springframework.validation.BindException
DatabaseExceptionCaptchaExceptionorg.springframework.validation.BindException@RequestMapping(value="/activate/{activationCode}",
method=GET)
public String activateUser(@NotNull@PathVariable
String activationCode,
org.springframework.ui.Model model)
throws DatabaseException
DatabaseException@RequestMapping(value="/password/reset",
method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void resetPassword(@ModelAttribute
org.molgenis.security.account.PasswordResetRequest passwordResetRequest)
throws DatabaseException
DatabaseException@ExceptionHandler(value=MolgenisUserException.class) @ResponseStatus(value=BAD_REQUEST) @ResponseBody public ErrorMessageResponse handleMolgenisUserException(MolgenisUserException e)
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleDatabaseException(DatabaseException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2013. All Rights Reserved.