public class MediaHandler extends AbstractHandler implements ComplexObsHandler
OpenmrsConstants.GLOBAL_PROPERTY_COMPLEX_OBS_DIRnfHTML_VIEW, PREVIEW_VIEW, RAW_VIEW, TEXT_VIEW, TITLE_VIEW, URI_VIEW| Constructor and Description | 
|---|
| MediaHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| Obs | getObs(Obs obs,
      String view)Currently supports all views and puts the media file data into the ComplexData object | 
| String[] | getSupportedViews()Supported views getter | 
| Obs | saveObs(Obs obs)Save a complex obs. | 
getComplexDataFile, getExtension, getOutputFileToWrite, purgeComplexData, supportsViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpurgeComplexData, supportsViewpublic Obs getObs(Obs obs, String view)
getObs in interface ComplexObsHandlergetObs in class AbstractHandlerobs - an obs without complex data filled inview - nullable view type. This is defined by the ui and view/handlerComplexObsHandler.getObs(org.openmrs.Obs, java.lang.String)public String[] getSupportedViews()
ComplexObsHandlergetSupportedViews in interface ComplexObsHandlergetSupportedViews in class AbstractHandlerComplexObsHandler.getSupportedViews()public Obs saveObs(Obs obs) throws APIException
ComplexObsHandlersaveObs in interface ComplexObsHandlerAPIExceptionComplexObsHandler.saveObs(org.openmrs.Obs)Copyright © 2024 OpenMRS Inc.. All rights reserved.