@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
Should unset the retired bit Should unset the retirer Should unset the date retired Should unset the retire reason Should not act on already unretired objects Should not act on retired objects with a different dateRetired
Copyright © 2021 OpenMRS Inc.. All rights reserved.