public interface RetireHandler<R extends Retireable> extends RequiredDataHandler<R>
RequiredDataAdviceclass uses AOP around each method in every service to check to see if its a retire* method. If it is a retire* method, this class is called to handle setting the
Retireablethat are themselves a
Retireableare looped over and also retired by the
|Modifier and Type||Method and Description|
Implementing methods should set "retired" to true, the retired reason, and the retiredBy/dateRetired (if those are non-null).
RequiredDataHandler<R extends Retireable>
OpenmrsObjectthat needs to have some required data set
retiringUser- the currently authenticated
retireDate- the current
retireReason- (optional) would be the second argument in the save/void/unvoid/etc method, if exists
RequiredDataHandler.handle(org.openmrs.OpenmrsObject, org.openmrs.User, java.util.Date, java.lang.String)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.