|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.api.handler.RequireVoidReasonSaveHandler
@Handler(supports={Patient.class,Encounter.class})
public class RequireVoidReasonSaveHandlerThis handler makes sure the when a voided object is saved, that the reason field is entered for supported objects Note: Obs is not included in the supported types because the ObsService handles this explicitly
RequiredDataAdvice,
SaveHandler,
RequiredDataAdvice| Constructor Summary | |
|---|---|
RequireVoidReasonSaveHandler()
|
|
| Method Summary | |
|---|---|
void |
handle(Voidable voidableObject,
User currentUser,
java.util.Date currentDate,
java.lang.String notUsed)
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 RequireVoidReasonSaveHandler()
| Method Detail |
|---|
public void handle(Voidable voidableObject,
User currentUser,
java.util.Date currentDate,
java.lang.String notUsed)
handle in interface RequiredDataHandler<Voidable>handle in interface SaveHandler<Voidable>voidableObject - an OpenmrsObject that needs to have some required data setcurrentUser - the user who is saving this objectcurrentDate - the datetime this object is being savednotUsed - (optional) would be the second argument in the save 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 | ||||||||