@Handler(supports=Person.class) public class PersonUnvoidHandler extends java.lang.Object implements UnvoidHandler<Person>
Person object when an unvoid*
method is called with this class. This differs from the BaseUnvoidHandler because the
Person object contains personVoided* attributes instead of the normal voided attributes. RequiredDataAdvice,
VoidHandler| Constructor and Description |
|---|
PersonUnvoidHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Person person,
User unvoidingUser,
java.util.Date origParentVoidedDate,
java.lang.String unused)
Called around every unvoid* method to set everything to null.
|
public void handle(Person person, User unvoidingUser, java.util.Date origParentVoidedDate, java.lang.String unused)
handle in interface RequiredDataHandler<Person>handle in interface UnvoidHandler<Person>person - an OpenmrsObject that needs to have some required data setunvoidingUser - 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 © 2018 OpenMRS Inc.. All Rights Reserved.