public interface RequiredDataHandler<O extends OpenmrsObject>
RequiredDataAdviceuses 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|
This method is called to when the required data needs to be set.
void handle(O openmrsObject, User currentUser, Date currentDate, String other)
OpenmrsObjectthat needs to have some required data set
currentUser- the currently authenticated
currentDate- the current
other- (optional) would be the second argument in the save/void/unvoid/etc method, if exists
Copyright © 2021 OpenMRS Inc.. All rights reserved.