@Handler(supports=Person.class) public class PersonUnvoidHandler extends 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,
Date origParentVoidedDate,
String unused)
Called around every unvoid* method to set everything to null.
|
public void handle(Person person, User unvoidingUser, Date origParentVoidedDate, 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
existsShould unset the personVoided bit
Should unset the personVoider
Should unset the personDateVoided
Should unset the personVoidReason
Should only act on already personVoided objects
Should not act on objects with a different personDateVoidedCopyright © 2024 OpenMRS Inc.. All rights reserved.