|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.obs.handler.AbstractHandler
org.openmrs.obs.handler.ImageHandler
public class ImageHandler
Handler for storing basic images for complex obs to the file system. The image mime type used is
taken from the image name. if the .* image name suffix matches
ImageIO.getWriterFormatNames() then that mime type will be used to save the
image. Images are stored in the location specified by the global property: "obs.complex_obs_dir"
OpenmrsConstants.GLOBAL_PROPERTY_COMPLEX_OBS_DIR| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
log
|
| Fields inherited from class org.openmrs.obs.handler.AbstractHandler |
|---|
longfmt, nf |
| Constructor Summary | |
|---|---|
ImageHandler()
Constructor initializes formats for alternative file names to protect from unintentionally overwriting existing files. |
|
| Method Summary | |
|---|---|
Obs |
getObs(Obs obs,
java.lang.String view)
Currently supports all views and puts the Image file data into the ComplexData object |
Obs |
saveObs(Obs obs)
Save a complex obs. |
| Methods inherited from class org.openmrs.obs.handler.AbstractHandler |
|---|
getComplexDataFile, getExtension, getOutputFileToWrite, purgeComplexData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openmrs.obs.ComplexObsHandler |
|---|
purgeComplexData |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ImageHandler()
| Method Detail |
|---|
public Obs getObs(Obs obs,
java.lang.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/handler
ComplexObsHandler.getObs(org.openmrs.Obs, java.lang.String)
public Obs saveObs(Obs obs)
throws APIException
ComplexObsHandler
saveObs in interface ComplexObsHandlerAPIExceptionComplexObsHandler.saveObs(org.openmrs.Obs)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||