@Controller
public class UserFormController
extends java.lang.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,
java.lang.Integer personId) |
java.util.List<Role> |
getRoles(org.springframework.web.context.request.WebRequest request) |
java.lang.String |
handleSubmission(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpSession httpSession,
org.springframework.ui.ModelMap model,
java.lang.String action,
java.lang.String password,
java.lang.String secretQuestion,
java.lang.String secretAnswer,
java.lang.String confirm,
java.lang.Boolean forcePassword,
java.lang.String[] roles,
java.lang.String createNewPerson,
java.lang.String addToProviderTableOption,
User user,
org.springframework.validation.BindingResult errors) |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
java.lang.String |
showForm(java.lang.Integer userId,
java.lang.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") java.lang.Integer personId)
@ModelAttribute(value="allRoles") public java.util.List<Role> getRoles(org.springframework.web.context.request.WebRequest request)
@RequestMapping(value="/admin/users/user.form", method=GET) public java.lang.String showForm(@RequestParam(required=false,value="userId") java.lang.Integer userId, @RequestParam(required=false,value="createNewPerson") java.lang.String createNewPerson, @ModelAttribute(value="user") User user, org.springframework.ui.ModelMap model)
@RequestMapping(value="/admin/users/user.form", method=POST) public java.lang.String handleSubmission(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpSession httpSession, org.springframework.ui.ModelMap model, @RequestParam(required=false,value="action") java.lang.String action, @RequestParam(required=false,value="userFormPassword") java.lang.String password, @RequestParam(required=false,value="secretQuestion") java.lang.String secretQuestion, @RequestParam(required=false,value="secretAnswer") java.lang.String secretAnswer, @RequestParam(required=false,value="confirm") java.lang.String confirm, @RequestParam(required=false,value="forcePassword") java.lang.Boolean forcePassword, @RequestParam(required=false,value="roleStrings") java.lang.String[] roles, @RequestParam(required=false,value="createNewPerson") java.lang.String createNewPerson, @RequestParam(required=false,value="providerCheckBox") java.lang.String addToProviderTableOption, @ModelAttribute(value="user") User user, org.springframework.validation.BindingResult errors)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.