Class UserFormMultiActionController
- java.lang.Object
-
- ubic.gemma.web.controller.BaseController
-
- ubic.gemma.web.controller.common.auditAndSecurity.UserFormMultiActionController
-
@Controller public class UserFormMultiActionController extends BaseController
Controller to edit profile of users.- Author:
- pavlidis, keshav
-
-
Field Summary
Fields Modifier and Type Field Description static int
MIN_PASSWORD_LENGTH
-
Fields inherited from class ubic.gemma.web.controller.BaseController
log
-
-
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.HttpServletRequest request, 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)
Resets the password to a random alphanumeric (of length MIN_PASSWORD_LENGTH).-
Methods inherited from class ubic.gemma.web.controller.BaseController
addMessage, getMessageUtil, getText, getText, saveMessage, saveMessage, sendConfirmationEmail, setMessageUtil
-
-
-
-
Field Detail
-
MIN_PASSWORD_LENGTH
public static final int MIN_PASSWORD_LENGTH
- See Also:
- Constant Field Values
-
-
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.HttpServletRequest request, 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) throws IOException
Resets the password to a random alphanumeric (of length MIN_PASSWORD_LENGTH).- Throws:
IOException
-
-