|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.report.impl.ReportServiceImpl
@Deprecated public class ReportServiceImpl
Methods specific to objects in the report package. These methods render reports or save them to the database
ReportService,
Context| Field Summary | |
|---|---|
org.apache.commons.logging.Log |
log
Deprecated. |
| Constructor Summary | |
|---|---|
ReportServiceImpl()
Deprecated. Default constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
applyReportXmlMacros(java.lang.String input)
Deprecated. Applies the report xml macros to the input, and returns it. |
void |
createReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. use saveReportSchemaXml(reportSchemaXml) |
void |
deleteReportSchema(ReportSchema reportSchema)
Deprecated. Deletes a ReportSchema from the database. |
void |
deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. Delete the given ReportSchemaXml class from the db |
ReportData |
evaluate(ReportSchema reportSchema,
Cohort inputCohort,
EvaluationContext evalContext)
Deprecated. This method evaluates a ReportSchema object for the given EvaluationContext and input Cohort. |
java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> |
getRenderers()
Deprecated. Gets the renderers map registered to this report service |
java.util.List<RenderingMode> |
getRenderingModes(ReportSchema schema)
Deprecated. Returns a List of RenderingModes that the passed ReportSchema supports, in
their preferred order |
ReportRenderer |
getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
Deprecated. Returns the registered ReportRenderer whose class matches the passed class |
ReportRenderer |
getReportRenderer(java.lang.String className)
Deprecated. Returns the registered ReportRenderer whose class matches the passed class name |
java.util.Collection<ReportRenderer> |
getReportRenderers()
Deprecated. Returns a Collection |
ReportSchema |
getReportSchema(java.lang.Integer reportSchemaId)
Deprecated. Get the ReportSchema with the given id |
ReportSchema |
getReportSchema(ReportSchemaXml reportSchemaXml)
Deprecated. Returns a ReportSchema object from a ReportSchemaXml definition De-serialized the xml definition, applies macro definitions, and returns an expanded report schema object |
java.util.List<ReportSchema> |
getReportSchemas()
Deprecated. Return a list of ReportSchemas |
ReportSchemaXml |
getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
Deprecated. Get the xmlified ReportSchema object that was saved previously |
java.util.List<ReportSchemaXml> |
getReportSchemaXmls()
Deprecated. Get all saved ReportSchemaXml objects in the db |
java.util.Properties |
getReportXmlMacros()
Deprecated. Gets the macros that will be used when deserializing ReportSchemaXML |
void |
onShutdown()
Deprecated. Clean up after this class. |
void |
registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass,
ReportRenderer renderer)
Deprecated. Registers the given renderer with the service |
void |
registerRenderer(java.lang.String rendererClass)
Deprecated. Convenience method for ReportService.registerRenderer(Class, ReportRenderer) |
void |
removeRenderer(java.lang.Class<? extends ReportRenderer> renderingClass)
Deprecated. Remove the renderer associated with rendererClass from the list of available
renderers |
void |
saveReportSchema(ReportSchema reportSchema)
Deprecated. Save or update the given ReportSchema in the database. |
void |
saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. Insert or update the given ReportSchemaXml object in the database. |
void |
saveReportXmlMacros(java.util.Properties macros)
Deprecated. Saves the macros that will be used when deserializing ReportSchemaXML |
void |
setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> newRenderers)
Deprecated. ADDs renderers...doesn't replace them. |
void |
setReportDAO(ReportDAO dao)
Deprecated. Method used by Spring injection to set the ReportDAO implementation to use in this service |
void |
updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. use saveReportSchemaXml(reportSchemaXml) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ReportServiceImpl()
| Method Detail |
|---|
public void setReportDAO(ReportDAO dao)
dao - The ReportDAO to use in this servicepublic void onShutdown()
BaseOpenmrsService.onShutdown()public void deleteReportSchema(ReportSchema reportSchema)
ReportServiceReportSchema from the database.
deleteReportSchema in interface ReportServicereportSchema - The ReportSchema to remove from the systemReportService.deleteReportSchema(org.openmrs.report.ReportSchema)
public ReportData evaluate(ReportSchema reportSchema,
Cohort inputCohort,
EvaluationContext evalContext)
ReportService
evaluate in interface ReportServicereportSchema - - The ReportSchema is the main report definition, and contains
all indicator and required parameter definitionsinputCohort - - If not null, this will limit the Report evaluation to only those
patients in this Cohort. If null, all patients are evaluated.evalContext - - The EvaluationContext which contains the parameters, provides
caching for the report evaluation
ReportData - Contains the evaluated report dataReportService.evaluate(org.openmrs.report.ReportSchema,
org.openmrs.Cohort, org.openmrs.report.EvaluationContext)public ReportRenderer getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
ReportServiceReportRenderer whose class matches the passed class
getReportRenderer in interface ReportServiceclazz - The ReportRenderer implementation class to retrieve
ReportRenderer that has been registered that matches the passed classReportService.getReportRenderer(java.lang.String)public ReportRenderer getReportRenderer(java.lang.String className)
ReportServiceReportRenderer whose class matches the passed class name
getReportRenderer in interface ReportServiceclassName - The String name of the ReportRenderer implementation class to retrieve
ReportRenderer that has been registered that matches the passed class
nameReportService.getReportRenderer(java.lang.String)public java.util.Collection<ReportRenderer> getReportRenderers()
ReportService
getReportRenderers in interface ReportServiceReportService.getReportRenderers()public java.util.List<RenderingMode> getRenderingModes(ReportSchema schema)
ReportServiceRenderingModes that the passed ReportSchema supports, in
their preferred order
getRenderingModes in interface ReportServiceReportService.getRenderingModes(org.openmrs.report.ReportSchema)
public ReportSchema getReportSchema(java.lang.Integer reportSchemaId)
throws APIException
ReportServiceReportSchema with the given id
getReportSchema in interface ReportServicereportSchemaId - The Integer ReportSchema id
ReportSchema object
APIExceptionReportService.getReportSchema(java.lang.Integer)
public ReportSchema getReportSchema(ReportSchemaXml reportSchemaXml)
throws APIException
ReportService
getReportSchema in interface ReportServicereportSchemaXml - - the ReportSchemaXml to use to return a ReportSchema instance
APIExceptionReportService.getReportSchema(org.openmrs.report.ReportSchemaXml)
public java.util.List<ReportSchema> getReportSchemas()
throws APIException
ReportServiceReportSchemas
getReportSchemas in interface ReportServiceReportSchemas
APIExceptionReportService.getReportSchemas()
public void setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> newRenderers)
throws APIException
setRenderers in interface ReportServicenewRenderers - Map of class to renderer object
APIExceptionReportService.setRenderers(java.util.Map)
public java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> getRenderers()
throws APIException
ReportService
getRenderers in interface ReportServiceorg.openmrs.reports
APIExceptionReportService.getRenderers()
public void registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass,
ReportRenderer renderer)
throws APIException
ReportService
registerRenderer in interface ReportServiceAPIExceptionReportService.registerRenderer(java.lang.Class,
org.openmrs.report.ReportRenderer)
public void registerRenderer(java.lang.String rendererClass)
throws APIException
ReportServiceReportService.registerRenderer(Class, ReportRenderer)
registerRenderer in interface ReportServiceAPIExceptionReportService.registerRenderer(java.lang.String)public void removeRenderer(java.lang.Class<? extends ReportRenderer> renderingClass)
ReportServicerendererClass from the list of available
renderers
removeRenderer in interface ReportServiceReportService.removeRenderer(Class)public void saveReportSchema(ReportSchema reportSchema)
ReportServiceReportSchema in the database. If this is a new
ReportSchema, the returned ReportSchema will have a new
ReportSchema.getReportSchemaId() inserted into it that was generated by the database
saveReportSchema in interface ReportServicereportSchema - The ReportSchema to save or updateReportService.saveReportSchema(org.openmrs.report.ReportSchema)public ReportSchemaXml getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
ReportService
getReportSchemaXml in interface ReportServiceReportService.getReportSchemaXml(java.lang.Integer)public void saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
saveReportSchemaXml in interface ReportServicereportSchemaXml - xml to saveReportService.saveReportSchemaXml(org.openmrs.report.ReportSchemaXml)public void createReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
createReportSchemaXml in interface ReportServicereportSchemaXml - xml to saveReportService.createReportSchemaXml(org.openmrs.report.ReportSchemaXml)public void updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
updateReportSchemaXml in interface ReportServicereportSchemaXml - xml to saveReportService.updateReportSchemaXml(org.openmrs.report.ReportSchemaXml)public void deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
deleteReportSchemaXml in interface ReportServiceReportService.deleteReportSchemaXml(org.openmrs.report.ReportSchemaXml)public java.util.List<ReportSchemaXml> getReportSchemaXmls()
ReportService
getReportSchemaXmls in interface ReportServiceReportService.getReportSchemaXmls()public java.util.Properties getReportXmlMacros()
ReportService
getReportXmlMacros in interface ReportServiceReportService.getReportXmlMacros()public void saveReportXmlMacros(java.util.Properties macros)
ReportService
saveReportXmlMacros in interface ReportServicemacros - the macros to setReportService.saveReportXmlMacros(java.util.Properties)public java.lang.String applyReportXmlMacros(java.lang.String input)
ReportService
applyReportXmlMacros in interface ReportServiceinput - The text (presumably a report schema xml definition) that you want to apply
macros to
ReportService.applyReportXmlMacros(java.lang.String)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||