|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.api.handler.RequireVoidReasonVoidHandler
@Handler(supports={Patient.class,Encounter.class,Obs.class}) public class RequireVoidReasonVoidHandler
This class ensures that the voidReason is non-null for supported object types
RequiredDataAdvice
,
UnvoidHandler
Constructor Summary | |
---|---|
RequireVoidReasonVoidHandler()
|
Method Summary | |
---|---|
void |
handle(Voidable voidableObject,
User voidingUser,
java.util.Date voidedDate,
java.lang.String voidReason)
Validates that the voidReason is non-null and non-empty for supported objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequireVoidReasonVoidHandler()
Method Detail |
---|
public void handle(Voidable voidableObject, User voidingUser, java.util.Date voidedDate, java.lang.String voidReason)
handle
in interface RequiredDataHandler<Voidable>
handle
in interface VoidHandler<Voidable>
voidableObject
- an OpenmrsObject
that needs to have some required data setvoidingUser
- the currently authenticated User
voidedDate
- the current Date
voidReason
- (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)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |