@Controller
public class FormResourceController
extends java.lang.Object
Constructor and Description |
---|
FormResourceController() |
Modifier and Type | Method and Description |
---|---|
void |
addFormResource(Form form,
java.lang.String datatype,
java.lang.String handler,
org.springframework.ui.Model model) |
java.lang.String |
deleteFormResource(Form form,
java.lang.String name) |
java.lang.String |
handleAddFormResource(FormResource resource,
org.springframework.validation.Errors errors,
javax.servlet.http.HttpServletRequest request) |
void |
manageFormResources(Form form,
org.springframework.ui.Model model) |
@RequestMapping(method=GET, value="admin/forms/formResources") public void manageFormResources(@RequestParam(value="formId") Form form, org.springframework.ui.Model model)
@RequestMapping(method=POST, value="admin/forms/deleteFormResource") public java.lang.String deleteFormResource(@RequestParam(value="formId") Form form, @RequestParam(value="name") java.lang.String name)
@RequestMapping(method=GET, value="admin/forms/addFormResource") public void addFormResource(@RequestParam(value="formId") Form form, @RequestParam(value="datatype") java.lang.String datatype, @RequestParam(required=false,value="handler") java.lang.String handler, org.springframework.ui.Model model)
@RequestMapping(method=POST, value="admin/forms/addFormResource") public java.lang.String handleAddFormResource(@ModelAttribute(value="resource") FormResource resource, org.springframework.validation.Errors errors, javax.servlet.http.HttpServletRequest request)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.