Class UserFormMultiActionController
- java.lang.Object
-
- ubic.gemma.web.controller.common.auditAndSecurity.UserFormMultiActionController
-
@Controller public class UserFormMultiActionController extends Object
Controller to edit profile of users.- Author:
- pavlidis, keshav
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Log
log
static int
MIN_PASSWORD_LENGTH
-
Constructor Summary
Constructors Constructor Description UserFormMultiActionController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
editUser(String email, String password, String passwordConfirm, String oldPassword, String originalUserName, javax.servlet.http.HttpServletResponse response)
Entry point for updates.void
loadUser(javax.servlet.http.HttpServletResponse response)
AJAX entry point.void
resetPassword(String email, String username, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale)
Resets the password to a random alphanumeric (of length MIN_PASSWORD_LENGTH).
-
-
-
Field Detail
-
MIN_PASSWORD_LENGTH
public static final int MIN_PASSWORD_LENGTH
- See Also:
- Constant Field Values
-
log
protected final org.apache.commons.logging.Log log
-
-
Method Detail
-
editUser
@RequestMapping(value="/editUser.html", method=POST) public void editUser(@RequestParam("email") String email, @RequestParam("password") String password, @RequestParam("passwordConfirm") String passwordConfirm, @RequestParam("oldPassword") String oldPassword, @RequestParam("username") String originalUserName, javax.servlet.http.HttpServletResponse response) throws Exception
Entry point for updates.- Throws:
Exception
-
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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale) throws IOException
Resets the password to a random alphanumeric (of length MIN_PASSWORD_LENGTH).- Throws:
IOException
-
-