Class UserFormMultiActionController
java.lang.Object
ubic.gemma.web.controller.common.auditAndSecurity.UserFormMultiActionController
Controller to edit profile of users.
- Author:
- pavlidis, keshav
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideditUser(String email, String password, String passwordConfirm, String oldPassword, javax.servlet.http.HttpServletResponse response) Entry point for updates.voidloadUser(javax.servlet.http.HttpServletResponse response) AJAX entry point.voidresetPassword(String email, String username, Locale locale, javax.servlet.http.HttpServletResponse response) Resets the password to a random alphanumeric (of length MIN_PASSWORD_LENGTH).
-
Field Details
-
MIN_PASSWORD_LENGTH
public static final int MIN_PASSWORD_LENGTH- See Also:
-
RFC_5322_EMAIL_PATTERN
RFC 5322 email pattern.
-
-
Constructor Details
-
UserFormMultiActionController
public UserFormMultiActionController()
-
-
Method Details
-
editUser
@RequestMapping(value="/editUser.html", method=POST) public void editUser(@RequestParam(value="email",required=false) String email, @RequestParam(value="password",required=false) @Nullable String password, @RequestParam(value="passwordConfirm",required=false) @Nullable String passwordConfirm, @RequestParam(value="oldPassword",required=false) @Nullable String oldPassword, javax.servlet.http.HttpServletResponse response) throws IOException Entry point for updates.- Throws:
IOException
-
loadUser
@RequestMapping(value="/loadUser.html", method={GET,HEAD}) public void loadUser(javax.servlet.http.HttpServletResponse response) throws IOException AJAX entry point. Loads a user.- Throws:
IOException
-
resetPassword
@RequestMapping(value="/resetPassword.html", method=POST) public void resetPassword(@RequestParam("email") String email, @RequestParam("username") String username, Locale locale, javax.servlet.http.HttpServletResponse response) throws IOException Resets the password to a random alphanumeric (of length MIN_PASSWORD_LENGTH).- Throws:
IOException
-