@Controller @RequestMapping(value="/admin/encounters") public class EncounterRoleFormController extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log
Logger for this class and subclasses
|
Constructor and Description |
---|
EncounterRoleFormController() |
Modifier and Type | Method and Description |
---|---|
EncounterRole |
formBackingObject(Integer encounterRoleId) |
String |
getEncounterList(org.springframework.ui.ModelMap modelMap) |
String |
purge(javax.servlet.http.HttpSession session,
EncounterRole encounterRole,
org.springframework.validation.BindingResult errors) |
String |
retire(javax.servlet.http.HttpSession session,
EncounterRole encounterRole,
org.springframework.validation.BindingResult errors) |
String |
save(javax.servlet.http.HttpSession session,
EncounterRole encounterRole,
org.springframework.validation.BindingResult errors) |
String |
showForm() |
String |
unretire(javax.servlet.http.HttpSession session,
EncounterRole encounterRole,
org.springframework.validation.BindingResult errors) |
protected final org.apache.commons.logging.Log log
@RequestMapping(value="/encounterRole.form", method=POST, params="saveEncounterRole") public String save(javax.servlet.http.HttpSession session, @ModelAttribute(value="encounterRole") EncounterRole encounterRole, org.springframework.validation.BindingResult errors) throws Exception
session
- HttpSession for the userencounterRole
- encounterRole object submitted from the formerrors
- list of errors if exists @return logical view name to resolveException
@RequestMapping(value="/encounterRole.form", method=POST, params="retire") public String retire(javax.servlet.http.HttpSession session, @ModelAttribute(value="encounterRole") EncounterRole encounterRole, org.springframework.validation.BindingResult errors) throws Exception
session
- HttpSession for the userencounterRole
- encounterRole object submitted from the formerrors
- list of errors if exists @return logical view name to resolveException
@RequestMapping(value="/encounterRole.form", method=POST, params="unretire") public String unretire(javax.servlet.http.HttpSession session, @ModelAttribute(value="encounterRole") EncounterRole encounterRole, org.springframework.validation.BindingResult errors) throws Exception
session
- HttpSession for the userencounterRole
- encounterRole object submitted from the formerrors
- list of errors if exists @return logical view name to resolveException
@RequestMapping(value="/encounterRole.form", method=POST, params="purge") public String purge(javax.servlet.http.HttpSession session, @ModelAttribute(value="encounterRole") EncounterRole encounterRole, org.springframework.validation.BindingResult errors) throws Exception
session
- HttpSession for the userencounterRole
- encounterRole object submitted from the formerrors
- list of errors if exists @return logical view name to resolveException
@ModelAttribute(value="encounterRole") public EncounterRole formBackingObject(@RequestParam(required=false) Integer encounterRoleId) throws javax.servlet.ServletException
javax.servlet.ServletException
@RequestMapping(value="/encounterRole.form", method=GET) public String showForm()
@RequestMapping(value="/encounterRole.list", method=GET) public String getEncounterList(org.springframework.ui.ModelMap modelMap)
modelMap
- Copyright © 2015 OpenMRS Inc.. All rights reserved.