@Handler(supports=Patient.class, order=50) public class PatientDataUnvoidHandler extends Object implements UnvoidHandler<Patient>
Patient objects when they are unvoided via the unvoid* method in an
Openmrs Service. This handler is automatically called by the RequiredDataAdvice AOP
class. RequiredDataHandler,
UnvoidHandler,
Patient| Constructor and Description |
|---|
PatientDataUnvoidHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Patient patient,
User originalVoidingUser,
Date origParentVoidedDate,
String unused)
Implementing classes are called around every unvoid* method to set everything to null.
|
public void handle(Patient patient, User originalVoidingUser, Date origParentVoidedDate, String unused)
UnvoidHandlerhandle in interface RequiredDataHandler<Patient>handle in interface UnvoidHandler<Patient>patient - an OpenmrsObject that needs to have some required data setoriginalVoidingUser - the currently authenticated UserorigParentVoidedDate - the current Dateunused - (optional) would be the second argument in the save/void/unvoid/etc method, if
existsRequiredDataHandler.handle(org.openmrs.OpenmrsObject,
org.openmrs.User, java.util.Date, java.lang.String)Copyright © 2024 OpenMRS Inc.. All rights reserved.