@Controller @SessionAttributes(value="locationTag") public class LocationTagController extends Object
LocationTags| Constructor and Description | 
|---|
LocationTagController()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
add(String name,
   String description,
   org.springframework.web.context.request.WebRequest request)
Add a new LocationTag (quickly, without a dedicated page) 
 | 
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 
 | 
String | 
purge(org.springframework.web.context.request.WebRequest request,
     LocationTag locationTag)
Purge a locationTag 
 | 
String | 
retire(org.springframework.web.context.request.WebRequest request,
      LocationTag locationTag,
      String retireReason)
Retire a locationTag 
 | 
void | 
showEdit(LocationTag locationTag,
        org.springframework.ui.ModelMap model)
Display the edit page for LocationTag 
 | 
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 String add(@RequestParam(value="name") String name, @RequestParam(value="description") 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 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 String purge(org.springframework.web.context.request.WebRequest request,
                                                                                                            @RequestParam(value="id")
                                                                                                            LocationTag locationTag)
@RequestMapping(method=POST,
                value="/admin/locations/locationTagRetire")
public String retire(org.springframework.web.context.request.WebRequest request,
                                                                                                              @RequestParam(value="id")
                                                                                                              LocationTag locationTag,
                                                                                                              @RequestParam(value="retireReason")
                                                                                                              String retireReason)
@RequestMapping(method=POST,
                value="/admin/locations/locationTagUnretire")
public String unretire(org.springframework.web.context.request.WebRequest request,
                                                                                                                  @RequestParam(value="id")
                                                                                                                  LocationTag locationTag)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.