@Handler(supports=ConceptReferenceTerm.class) public class ConceptReferenceTermSaveHandler extends java.lang.Object implements SaveHandler<ConceptReferenceTerm>
ConceptReferenceTerm
objects when they are saved via a save* method
in an Openmrs Service. This handler is automatically called by the RequiredDataAdvice
AOP
class. ConceptReferenceTermMap
sRequiredDataHandler
,
SaveHandler
,
ConceptReferenceTerm
Constructor and Description |
---|
ConceptReferenceTermSaveHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(ConceptReferenceTerm conceptReferenceTerm,
User currentUser,
java.util.Date currentDate,
java.lang.String other)
Sets the concept reference term as the term A for all the
ConceptReferenceTermMap s
added to it. |
public void handle(ConceptReferenceTerm conceptReferenceTerm, User currentUser, java.util.Date currentDate, java.lang.String other)
ConceptReferenceTermMap
s
added to it.handle
in interface RequiredDataHandler<ConceptReferenceTerm>
handle
in interface SaveHandler<ConceptReferenceTerm>
conceptReferenceTerm
- an OpenmrsObject that needs to have some required data setcurrentUser
- the user who is saving this objectcurrentDate
- the datetime this object is being savedother
- (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.