|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.api.handler.ConceptNameSaveHandler
@Handler(supports=ConceptName.class) public class ConceptNameSaveHandler
This class deals with ConceptName
objects when they are saved via a save* method in an
Openmrs Service. This handler is automatically called by the RequiredDataAdvice
AOP
class.
This class does a lookup on all tag name for all child ConceptNameTag
s that have a null
ConceptNameTag.getConceptNameTagId()
.
RequiredDataHandler
,
SaveHandler
,
ConceptName
Constructor Summary | |
---|---|
ConceptNameSaveHandler()
|
Method Summary | |
---|---|
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 ConceptNameTag s that have a
null ConceptNameTag.getConceptNameTagId() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConceptNameSaveHandler()
Method Detail |
---|
public void handle(ConceptName conceptName, User currentUser, java.util.Date currentDate, java.lang.String reason)
ConceptNameTag
s 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)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |