@Handler(supports=Retireable.class) public class BaseUnretireHandler extends Object implements UnretireHandler<Retireable>
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
|Constructor and Description|
|Modifier and Type||Method and Description|
Called around every unretire* method to set
public void handle(Retireable retireableObject, User retiringUser, Date origParentRetiredDate, String unused)
Retireableattributes to null.
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 © 2017 OpenMRS Inc.. All rights reserved.