Class PersonUnvoidHandler

  extended by org.openmrs.api.handler.PersonUnvoidHandler
All Implemented Interfaces:
RequiredDataHandler<Person>, UnvoidHandler<Person>

public class PersonUnvoidHandler
extends java.lang.Object
implements UnvoidHandler<Person>

This class unsets the personVoid* attributes on the given 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.

See Also:
RequiredDataAdvice, VoidHandler

Constructor Summary
Method Summary
 void handle(Person person, User unvoidingUser, java.util.Date origParentVoidedDate, java.lang.String unused)
          Called around every unvoid* method to set everything to null.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PersonUnvoidHandler()
Method Detail


public void handle(Person person,
                   User unvoidingUser,
                   java.util.Date origParentVoidedDate,
                   java.lang.String unused)
Called around every unvoid* method to set everything to null.

Specified by:
handle in interface RequiredDataHandler<Person>
Specified by:
handle in interface UnvoidHandler<Person>
person - an OpenmrsObject that needs to have some required data set
unvoidingUser - the currently authenticated User
origParentVoidedDate - the current Date
unused - (optional) would be the second argument in the save/void/unvoid/etc method, if exists
See Also:
RequiredDataHandler.handle(org.openmrs.OpenmrsObject, org.openmrs.User, java.util.Date, java.lang.String)
Expected behavior:
unset the personVoided bit, unset the personVoider, unset the personDateVoided, unset the personVoidReason, only act on already personVoided objects, not act on objects with a different personDateVoided


Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change