@Controller
@SessionAttributes(value="locationTag")
public class LocationTagController
extends java.lang.Object
LocationTags| Constructor and Description |
|---|
LocationTagController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
add(java.lang.String name,
java.lang.String description,
org.springframework.web.context.request.WebRequest request)
Add a new LocationTag (quickly, without a dedicated page)
|
java.lang.String |
handleEditSubmission(org.springframework.web.context.request.WebRequest request,
LocationTag locationTag,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
Handle submission for editing a LocationTag (for editing its name/description)
|
void |
initBinder(org.springframework.web.bind.WebDataBinder wdb)
Set up automatic primitive-to-class mappings
|
void |
list(org.springframework.ui.ModelMap model)
List all LocationTags
|
java.lang.String |
purge(org.springframework.web.context.request.WebRequest request,
LocationTag locationTag)
Purge a locationTag
|
java.lang.String |
retire(org.springframework.web.context.request.WebRequest request,
LocationTag locationTag,
java.lang.String retireReason)
Retire a locationTag
|
void |
showEdit(LocationTag locationTag,
org.springframework.ui.ModelMap model)
Display the edit page for LocationTag
|
java.lang.String |
unretire(org.springframework.web.context.request.WebRequest request,
LocationTag locationTag)
Unretire a locationTag
|
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder wdb)
wdb - @RequestMapping(value="/admin/locations/locationTag") public void list(org.springframework.ui.ModelMap model)
@RequestMapping(value="/admin/locations/locationTagAdd")
public java.lang.String add(@RequestParam(value="name")
java.lang.String name,
@RequestParam(value="description")
java.lang.String description,
org.springframework.web.context.request.WebRequest request)
@RequestMapping(method=GET,
value="/admin/locations/locationTagEdit")
public void showEdit(@RequestParam(value="locationTagId")
LocationTag locationTag,
org.springframework.ui.ModelMap model)
@RequestMapping(method=POST,
value="/admin/locations/locationTagEdit")
public java.lang.String handleEditSubmission(org.springframework.web.context.request.WebRequest request,
@ModelAttribute(value="locationTag")
LocationTag locationTag,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
@RequestMapping(method=POST,
value="/admin/locations/locationTagPurge")
public java.lang.String purge(org.springframework.web.context.request.WebRequest request,
@RequestParam(value="id")
LocationTag locationTag)
@RequestMapping(method=POST,
value="/admin/locations/locationTagRetire")
public java.lang.String retire(org.springframework.web.context.request.WebRequest request,
@RequestParam(value="id")
LocationTag locationTag,
@RequestParam(value="retireReason")
java.lang.String retireReason)
@RequestMapping(method=POST,
value="/admin/locations/locationTagUnretire")
public java.lang.String unretire(org.springframework.web.context.request.WebRequest request,
@RequestParam(value="id")
LocationTag locationTag)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.