@Handler(supports=ConceptName.class) public class ConceptNameSaveHandler extends java.lang.Object implements SaveHandler<ConceptName>
ConceptName objects when they are saved via a save* method in an
Openmrs Service. This handler is automatically called by the RequiredDataAdvice AOP
class. ConceptNameTags that have a null
ConceptNameTag.getConceptNameTagId().RequiredDataHandler,
SaveHandler,
ConceptName| Constructor and Description |
|---|
ConceptNameSaveHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(ConceptName conceptName,
User currentUser,
java.util.Date currentDate,
java.lang.String reason)
This method does a lookup on all tag name for all child
ConceptNameTags that have a
null ConceptNameTag.getConceptNameTagId(). |
public void handle(ConceptName conceptName, User currentUser, java.util.Date currentDate, java.lang.String reason)
ConceptNameTags that have a
null ConceptNameTag.getConceptNameTagId().handle in interface RequiredDataHandler<ConceptName>handle in interface SaveHandler<ConceptName>conceptName - an OpenmrsObject that needs to have some required data setcurrentUser - the user who is saving this objectcurrentDate - the datetime this object is being savedreason - (optional) would be the second argument in the save method, if existsRequiredDataHandler.handle(org.openmrs.OpenmrsObject,
org.openmrs.User, java.util.Date, java.lang.String)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.