public interface UnretireHandler<R extends Retireable> extends RequiredDataHandler<R>
RequiredDataAdviceclass uses AOP around each method in every service to check to see if its a unretire* method. If it is a unretire* method, this class is called to handle setting the
Retireable.setDateRetired(Date)all to null.
Retireablethat are themselves a
Retireableare looped over and also unretired by the
|Modifier and Type||Method and Description|
Called around every unretire* method to set
void handle(R retireableObject, User retiringUser, java.util.Date origParentRetiredDate, java.lang.String unused)
Retireableattributes to null.
RequiredDataHandler<R extends Retireable>
OpenmrsObjectthat needs to have some required data set
retiringUser- the currently authenticated
origParentRetiredDate- the current
unused- (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 Inc.. All Rights Reserved.