org.openmrs.reporting.export
Class DataExportUtil

java.lang.Object
  extended by org.openmrs.reporting.export.DataExportUtil

Deprecated. see reportingcompatibility module

@Deprecated
public class DataExportUtil
extends java.lang.Object

Utility methods for use by Data Exports


Nested Class Summary
static class DataExportUtil.VelocityExceptionHandler
          Deprecated. Private class used for velocity error masking
 
Constructor Summary
DataExportUtil()
          Deprecated.  
 
Method Summary
static void generateExport(DataExportReportObject dataExport, Cohort patientSet, DataExportFunctions functions, EvaluationContext context)
          Deprecated. Auto generated method comment
static void generateExport(DataExportReportObject dataExport, Cohort patientSet, EvaluationContext context)
          Deprecated.  
static void generateExport(DataExportReportObject dataExport, Cohort patientSet, java.lang.String separator, EvaluationContext context)
          Deprecated. Generates a data export file given a data export (columns) and patient set (rows).
static void generateExports(java.util.List<DataExportReportObject> exports, EvaluationContext context)
          Deprecated.  
static java.lang.Object getDataExportKey(java.lang.String key)
          Deprecated. Find the data export key previously added or null if not found
static java.io.File getGeneratedFile(DataExportReportObject dataExport)
          Deprecated. Returns the path and name of the generated file
static void putDataExportKey(java.lang.String key, java.lang.Object obj)
          Deprecated. Allows a module or some other service to add things to the available keys in the velocity context
static void removeDataExportKey(java.lang.String key)
          Deprecated. Remove the given key from the available data export keys If the key doesn't exist, this will fail silently
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExportUtil

public DataExportUtil()
Deprecated. 
Method Detail

putDataExportKey

public static void putDataExportKey(java.lang.String key,
                                    java.lang.Object obj)
Deprecated. 
Allows a module or some other service to add things to the available keys in the velocity context

See Also:
generateExport(DataExportReportObject, Cohort, DataExportFunctions, EvaluationContext)

removeDataExportKey

public static void removeDataExportKey(java.lang.String key)
Deprecated. 
Remove the given key from the available data export keys If the key doesn't exist, this will fail silently

Parameters:
key - key to remove
See Also:
putDataExportKey(String, Object), generateExport(DataExportReportObject, Cohort, DataExportFunctions, EvaluationContext)

getDataExportKey

public static java.lang.Object getDataExportKey(java.lang.String key)
Deprecated. 
Find the data export key previously added or null if not found

Parameters:
key -
Returns:
Object the Data Export Key with the key identifier. Returns null if not found
See Also:
putDataExportKey(String, Object), generateExport(DataExportReportObject, Cohort, DataExportFunctions, EvaluationContext)

generateExports

public static void generateExports(java.util.List<DataExportReportObject> exports,
                                   EvaluationContext context)
Deprecated. 
Parameters:
exports -

generateExport

public static void generateExport(DataExportReportObject dataExport,
                                  Cohort patientSet,
                                  java.lang.String separator,
                                  EvaluationContext context)
                           throws java.lang.Exception
Deprecated. 
Generates a data export file given a data export (columns) and patient set (rows).

Parameters:
dataExport -
patientSet -
separator -
Throws:
java.lang.Exception

generateExport

public static void generateExport(DataExportReportObject dataExport,
                                  Cohort patientSet,
                                  EvaluationContext context)
                           throws java.lang.Exception
Deprecated. 
Parameters:
dataExport -
patientSet -
Throws:
java.lang.Exception

generateExport

public static void generateExport(DataExportReportObject dataExport,
                                  Cohort patientSet,
                                  DataExportFunctions functions,
                                  EvaluationContext context)
                           throws java.lang.Exception
Deprecated. 
Auto generated method comment

Parameters:
dataExport -
patientSet -
functions -
context -
Throws:
java.lang.Exception

getGeneratedFile

public static java.io.File getGeneratedFile(DataExportReportObject dataExport)
Deprecated. 
Returns the path and name of the generated file

Parameters:
dataExport -

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change