public interface SaveHandler<O extends OpenmrsObject> extends RequiredDataHandler<O>
support
the current object being saved) are called.RequiredDataAdvice
,
OpenmrsObjectSaveHandler
,
AuditableSaveHandler
,
ConceptNameSaveHandler
Modifier and Type | Method and Description |
---|---|
void |
handle(O object,
User creator,
Date dateCreated,
String other)
This method is used by the implementing classes to set any required data that it needs to.
|
void handle(O object, User creator, Date dateCreated, String other)
handle
in interface RequiredDataHandler<O extends OpenmrsObject>
object
- an OpenmrsObject that needs to have some required data setcreator
- the user who is saving this objectdateCreated
- 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 LLC.. All Rights Reserved.