@Controller
public class ConceptReferenceTermFormController
extends java.lang.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 |
---|---|
java.util.List<ConceptReferenceTermMap> |
getConceptMappingsToThisTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptReferenceTermFormController.ConceptReferenceTermModel |
getConceptReferenceTermFormModel(java.lang.Integer conceptReferenceTermId) |
java.lang.String |
purgeTerm(org.springframework.web.context.request.WebRequest request,
ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel)
Processes requests to purge a concept reference term
|
java.lang.String |
retireConceptReferenceTerm(org.springframework.web.context.request.WebRequest request,
ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel,
java.lang.String retireReason)
Processes requests to retire concept reference terms
|
java.lang.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
|
java.lang.String |
showForm()
Processes requests to display the form
|
java.lang.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 java.lang.String showForm()
@ModelAttribute(value="conceptReferenceTermModel") public ConceptReferenceTermFormController.ConceptReferenceTermModel getConceptReferenceTermFormModel(@RequestParam(value="conceptReferenceTermId",required=false) java.lang.Integer conceptReferenceTermId)
@ModelAttribute(value="referenceTermMappingsToThisTerm") public java.util.List<ConceptReferenceTermMap> getConceptMappingsToThisTerm(@ModelAttribute ConceptReferenceTerm conceptReferenceTerm)
@RequestMapping(method=POST, value="/admin/concepts/conceptReferenceTerm") public java.lang.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 java.lang.String retireConceptReferenceTerm(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="conceptReferenceTermModel") ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel, @RequestParam(required=false,value="retireReason") java.lang.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 java.lang.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
unretireretireReason
- the reason why the concept reference term is being unretired@RequestMapping(method=POST, value="/admin/concepts/purgeConceptReferenceTerm") public java.lang.String purgeTerm(org.springframework.web.context.request.WebRequest request, @ModelAttribute(value="conceptReferenceTermModel") ConceptReferenceTermFormController.ConceptReferenceTermModel conceptReferenceTermModel)
request
- the WebRequest
objectconceptReferenceTermModel
- Copyright © 2018 OpenMRS Inc.. All Rights Reserved.