@Controller public class UserFormController extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
UserFormController() |
Modifier and Type | Method and Description |
---|---|
User |
formBackingObject(org.springframework.web.context.request.WebRequest request,
Integer personId) |
List<Role> |
getRoles(org.springframework.web.context.request.WebRequest request) |
String |
handleSubmission(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpSession httpSession,
org.springframework.ui.ModelMap model,
String action,
String oldPassword,
String password,
String secretQuestion,
String secretAnswer,
String confirm,
Boolean forcePassword,
String[] roles,
String createNewPerson,
User user,
org.springframework.validation.BindingResult errors) |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
String |
showForm(Integer userId,
String createNewPerson,
User user,
org.springframework.ui.ModelMap model) |
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
@ModelAttribute(value="user") public User formBackingObject(org.springframework.web.context.request.WebRequest request, @RequestParam(required=false,value="person_id") Integer personId)
@ModelAttribute(value="allRoles") public List<Role> getRoles(org.springframework.web.context.request.WebRequest request)
@RequestMapping(value="/admin/users/user.form", method=GET) public String showForm(@RequestParam(required=false,value="userId") Integer userId, @RequestParam(required=false,value="createNewPerson") String createNewPerson, @ModelAttribute(value="user") User user, org.springframework.ui.ModelMap model)
@RequestMapping(value="/admin/users/user.form", method=POST) public String handleSubmission(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpSession httpSession, org.springframework.ui.ModelMap model, @RequestParam(required=false,value="action") String action, @RequestParam(required=false,value="oldPassword") String oldPassword, @RequestParam(required=false,value="userFormPassword") String password, @RequestParam(required=false,value="secretQuestion") String secretQuestion, @RequestParam(required=false,value="secretAnswer") String secretAnswer, @RequestParam(required=false,value="confirm") String confirm, @RequestParam(required=false,value="forcePassword") Boolean forcePassword, @RequestParam(required=false,value="roleStrings") String[] roles, @RequestParam(required=false,value="createNewPerson") String createNewPerson, @ModelAttribute(value="user") User user, org.springframework.validation.BindingResult errors)
Copyright © 2015 OpenMRS Inc.. All rights reserved.