@Controller @RequestMapping(value="/account") public class AccountController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_PASSWORD_URI |
static String |
URI |
| Constructor and Description |
|---|
AccountController() |
| Modifier and Type | Method and Description |
|---|---|
String |
activateUser(String activationCode,
org.springframework.ui.Model model) |
void |
changePassword(ChangePasswordForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getChangePasswordForm() |
org.springframework.web.servlet.ModelAndView |
getLoginForm() |
String |
getPasswordResetForm() |
org.springframework.web.servlet.ModelAndView |
getRegisterForm() |
ErrorMessageResponse |
handleMolgenisDataException(MolgenisDataException e) |
ErrorMessageResponse |
handleMolgenisUserException(MolgenisUserException e) |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
Map<String,String> |
registerUser(org.molgenis.security.account.RegisterRequest registerRequest,
CaptchaRequest captchaRequest,
javax.servlet.http.HttpServletRequest request) |
void |
resetPassword(org.molgenis.security.account.PasswordResetRequest passwordResetRequest) |
public static final String URI
public static final String CHANGE_PASSWORD_URI
@RequestMapping(value="/login",
method=GET)
public org.springframework.web.servlet.ModelAndView getLoginForm()
@RequestMapping(value="/register",
method=GET)
public org.springframework.web.servlet.ModelAndView getRegisterForm()
@RequestMapping(value="/password/reset",
method=GET)
public String getPasswordResetForm()
@RequestMapping(value="/password/change",
method=GET)
public String getChangePasswordForm()
@RequestMapping(value="/password/change",
method=POST)
public void changePassword(ChangePasswordForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@RequestMapping(value="/register",
method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public Map<String,String> registerUser(@ModelAttribute
org.molgenis.security.account.RegisterRequest registerRequest,
@ModelAttribute
CaptchaRequest captchaRequest,
javax.servlet.http.HttpServletRequest request)
throws CaptchaException,
org.springframework.validation.BindException,
NoPermissionException
CaptchaExceptionorg.springframework.validation.BindExceptionNoPermissionException@RequestMapping(value="/activate/{activationCode}",
method=GET)
public String activateUser(@NotNull @PathVariable
String activationCode,
org.springframework.ui.Model model)
@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)
@ExceptionHandler(value=MolgenisUserException.class) @ResponseStatus(value=BAD_REQUEST) @ResponseBody public ErrorMessageResponse handleMolgenisUserException(MolgenisUserException e)
@ExceptionHandler(value=org.molgenis.data.MolgenisDataException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleMolgenisDataException(MolgenisDataException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2015. All Rights Reserved.