@Controller public class ConceptReferenceTermFormController extends Object
Modifier and Type | Class and Description |
---|---|
class |
ConceptReferenceTermFormController.ConceptReferenceTermModel
An object of this class represents a model for this controller
|
Constructor and Description |
---|
ConceptReferenceTermFormController() |
Modifier and Type | Method and Description |
---|---|
List<ConceptReferenceTermMap> |
getConceptMappingsToThisTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptReferenceTermFormController.ConceptReferenceTermModel |
getConceptReferenceTermFormModel(Integer conceptReferenceTermId) |
String |
purgeTerm(org.springframework.web.context.request.WebRequest request,
ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel)
Processes requests to purge a concept reference term
|
String |
retireConceptReferenceTerm(org.springframework.web.context.request.WebRequest request,
ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel,
String retireReason)
Processes requests to retire concept reference terms
|
String |
saveConceptReferenceTerm(org.springframework.web.context.request.WebRequest request,
ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel,
org.springframework.validation.BindingResult result)
Processes requests to save/update a concept reference term
|
String |
showForm()
Processes requests to display the form
|
String |
unretireConceptReferenceTerm(org.springframework.web.context.request.WebRequest request,
ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel)
Processes requests to unretire concept reference terms
|
@RequestMapping(method=GET, value="/admin/concepts/conceptReferenceTerm") public String showForm()
@ModelAttribute(value="conceptReferenceTermModel") public ConceptReferenceTermFormController.ConceptReferenceTermModel getConceptReferenceTermFormModel(@RequestParam(value="conceptReferenceTermId",required=false) Integer conceptReferenceTermId)
@ModelAttribute(value="referenceTermMappingsToThisTerm") public List<ConceptReferenceTermMap> getConceptMappingsToThisTerm(@ModelAttribute ConceptReferenceTerm conceptReferenceTerm)
@RequestMapping(method=POST, value="/admin/concepts/conceptReferenceTerm") public String saveConceptReferenceTerm(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="conceptReferenceTermModel") ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel, org.springframework.validation.BindingResult result)
request
- the WebRequest
objectconceptReferenceTermModel
- the concept reference term object to save/updateresult
- the BindingResult
object@RequestMapping(method=POST, value="/admin/concepts/retireConceptReferenceTerm") public String retireConceptReferenceTerm(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="conceptReferenceTermModel") ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel, @RequestParam(required=false,value="retireReason") String retireReason)
request
- the WebRequest
objectconceptReferenceTermModel
- the concept reference term model for the term to retireretireReason
- the reason why the concept reference term is being retired@RequestMapping(method=POST, value="/admin/concepts/unretireConceptReferenceTerm") public String unretireConceptReferenceTerm(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="conceptReferenceTermModel") ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel)
request
- the WebRequest
objectconceptReferenceTermModel
- the concept reference term model object for the term to
unretire@RequestMapping(method=POST, value="/admin/concepts/purgeConceptReferenceTerm") public String purgeTerm(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="conceptReferenceTermModel") ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel)
request
- the WebRequest
objectconceptReferenceTermModel
- Copyright © 2015 OpenMRS Inc.. All rights reserved.