org.molgenis.omx.auth.controller
Class AccountController
java.lang.Object
org.molgenis.omx.auth.controller.AccountController
@Controller
@RequestMapping(value="/account")
public class AccountController
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountController
public AccountController()
getLoginForm
@RequestMapping(value="/login",
method=GET)
public String getLoginForm()
getRegisterForm
@RequestMapping(value="/register",
method=GET)
public org.springframework.web.servlet.ModelAndView getRegisterForm()
throws DatabaseException
- Throws:
DatabaseException
getPasswordResetForm
@RequestMapping(value="/password/reset",
method=GET)
public String getPasswordResetForm()
loginUser
@RequestMapping(value="/login",
method=POST)
@ResponseStatus(value=NO_CONTENT)
public void loginUser(@RequestParam(value="username")
String username,
@RequestParam(value="password")
String password)
throws HandleRequestDelegationException,
Exception
- Throws:
HandleRequestDelegationException
Exception
logoutUser
@RequestMapping(value="/logout",
method=GET)
public String logoutUser()
throws Exception
- Throws:
Exception
registerUser
@RequestMapping(value="/register",
method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void registerUser(@ModelAttribute
RegisterRequest registerRequest,
@ModelAttribute
CaptchaRequest captchaRequest)
throws DatabaseException,
CaptchaService.CaptchaException,
org.springframework.validation.BindException
- Throws:
DatabaseException
CaptchaService.CaptchaException
org.springframework.validation.BindException
activateUser
@RequestMapping(value="/activate/{activationCode}",
method=GET)
public String activateUser(@NotNull@PathVariable
String activationCode)
throws DatabaseException
- Throws:
DatabaseException
resetPassword
@RequestMapping(value="/password/reset",
method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void resetPassword(@ModelAttribute
PasswordResetRequest passwordResetRequest)
throws DatabaseException
- Throws:
DatabaseException
Copyright © 2013. All Rights Reserved.