public class BinaryDataHandler extends AbstractHandler implements ComplexObsHandler
nf
HTML_VIEW, PREVIEW_VIEW, RAW_VIEW, TEXT_VIEW, TITLE_VIEW, URI_VIEW
Constructor and Description |
---|
BinaryDataHandler()
Constructor initializes formats for alternative file names to protect from unintentionally
overwriting existing files.
|
Modifier and Type | Method and Description |
---|---|
Obs |
getObs(Obs obs,
String view)
Currently supports the following views: org.openmrs.obs.ComplexObsHandler#RAW_VIEW
|
String[] |
getSupportedViews()
Supported views getter
|
Obs |
saveObs(Obs obs)
TODO should this support a StringReader too?
|
getComplexDataFile, getExtension, getOutputFileToWrite, purgeComplexData, supportsView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
purgeComplexData, supportsView
public BinaryDataHandler()
public Obs getObs(Obs obs, String view)
getObs
in interface ComplexObsHandler
getObs
in class AbstractHandler
obs
- 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()
ComplexObsHandler
getSupportedViews
in interface ComplexObsHandler
getSupportedViews
in class AbstractHandler
ComplexObsHandler.getSupportedViews()
public Obs saveObs(Obs obs) throws APIException
saveObs
in interface ComplexObsHandler
APIException
ComplexObsHandler.saveObs(org.openmrs.Obs)
Copyright © 2024 OpenMRS Inc.. All rights reserved.