@Handler(supports=Person.class) public class PersonVoidHandler extends Object implements VoidHandler<Person>
Person object when a void* method
is called with this class. This differs from the BaseVoidHandler because the Person
object contains personVoided* attributes instead of the normal voided attributesRequiredDataAdvice,
UnvoidHandler| Constructor and Description |
|---|
PersonVoidHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Person person,
User voidingUser,
Date voidedDate,
String voidReason)
Sets all personVoid* attributes to the given parameters.
|
public void handle(Person person, User voidingUser, Date voidedDate, String voidReason)
handle in interface RequiredDataHandler<Person>handle in interface VoidHandler<Person>person - an OpenmrsObject that needs to have some required data setvoidingUser - the currently authenticated UservoidedDate - the current DatevoidReason - (optional) would be the second argument in the save/void/unvoid/etc method, if
existsShould set the personVoided bit
Should set the personVoidReason
Should set personVoidedBy
Should not set personVoidedBy if non null
Should set personDateVoided
Should not set personDateVoided if non null
Should not set the personVoidReason if already personVoided
Should retire usersCopyright © 2024 OpenMRS Inc.. All rights reserved.