public interface RequiredDataHandler<O extends OpenmrsObject>
RequiredDataAdvice uses AOP around each method to call all
handlers that a certain interface. Having this super interface makes it easier to have one method
for this.| Modifier and Type | Method and Description |
|---|---|
void |
handle(O openmrsObject,
User currentUser,
Date currentDate,
String other)
This method is called to when the required data needs to be set.
|
void handle(O openmrsObject, User currentUser, Date currentDate, String other)
openmrsObject - an OpenmrsObject that needs to have some required data setcurrentUser - the currently authenticated UsercurrentDate - the current Dateother - (optional) would be the second argument in the save/void/unvoid/etc method, if
existsCopyright © 2024 OpenMRS Inc.. All rights reserved.