@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
existsRequiredDataHandler.handle(org.openmrs.OpenmrsObject,
org.openmrs.User, java.util.Date, java.lang.String)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.