@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(AccountService accountService,
CaptchaService captchaService,
org.springframework.security.web.RedirectStrategy redirectStrategy,
AppSettings appSettings) |
public static final String URI
public static final String CHANGE_PASSWORD_URI
@Autowired public AccountController(AccountService accountService, CaptchaService captchaService, org.springframework.security.web.RedirectStrategy redirectStrategy, AppSettings appSettings)
@RequestMapping(value="/login",
method=GET)
public String 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 org.springframework.web.servlet.ModelAndView 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 Exception
Exception@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=UsernameAlreadyExistsException.class) @ResponseStatus(value=BAD_REQUEST) @ResponseBody public ErrorMessageResponse handleUsernameAlreadyExistsException(UsernameAlreadyExistsException e)
@ExceptionHandler(value=EmailAlreadyExistsException.class) @ResponseStatus(value=BAD_REQUEST) @ResponseBody public ErrorMessageResponse handleEmailAlreadyExistsException(EmailAlreadyExistsException 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 © 2016. All Rights Reserved.