@Handler(supports=Patient.class) public class PatientDataUnvoidHandler extends java.lang.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,
java.util.Date origParentVoidedDate,
java.lang.String unused)
Implementing classes are called around every unvoid* method to set everything to null.
|
public void handle(Patient patient, User originalVoidingUser, java.util.Date origParentVoidedDate, java.lang.String unused)
UnvoidHandler
handle
in interface RequiredDataHandler<Patient>
handle
in interface UnvoidHandler<Patient>
patient
- an OpenmrsObject
that needs to have some required data setoriginalVoidingUser
- the currently authenticated User
origParentVoidedDate
- the current Date
unused
- (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 © 2018 OpenMRS Inc.. All Rights Reserved.