@Deprecated public class ReportServiceImpl extends java.lang.Object implements ReportService
ReportService, 
Context| Modifier and Type | Field and Description | 
|---|---|
org.apache.commons.logging.Log | 
log
Deprecated.  
  | 
| Constructor and Description | 
|---|
ReportServiceImpl()
Deprecated.  
Default constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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) 
 | 
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)
ReportServiceevaluate 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 evaluationReportData - 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 classgetReportRenderer in interface ReportServiceclazz - The ReportRenderer implementation class to retrieveReportRenderer 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 namegetReportRenderer in interface ReportServiceclassName - The String name of the ReportRenderer implementation class to retrieveReportRenderer that has been registered that matches the passed class
         nameReportService.getReportRenderer(java.lang.String)public java.util.Collection<ReportRenderer> getReportRenderers()
ReportServicegetReportRenderers in interface ReportServiceReportService.getReportRenderers()public java.util.List<RenderingMode> getRenderingModes(ReportSchema schema)
ReportServiceRenderingModes that the passed ReportSchema supports, in
 their preferred ordergetRenderingModes in interface ReportServiceReportService.getRenderingModes(org.openmrs.report.ReportSchema)public ReportSchema getReportSchema(java.lang.Integer reportSchemaId) throws APIException
ReportServiceReportSchema with the given idgetReportSchema in interface ReportServicereportSchemaId - The Integer ReportSchema idReportSchema objectAPIExceptionReportService.getReportSchema(java.lang.Integer)public ReportSchema getReportSchema(ReportSchemaXml reportSchemaXml) throws APIException
ReportServicegetReportSchema in interface ReportServicereportSchemaXml - - the ReportSchemaXml to use to return a ReportSchema instanceAPIExceptionReportService.getReportSchema(org.openmrs.report.ReportSchemaXml)public java.util.List<ReportSchema> getReportSchemas() throws APIException
ReportServiceReportSchemasgetReportSchemas in interface ReportServiceReportSchemasAPIExceptionReportService.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 objectAPIExceptionReportService.setRenderers(java.util.Map)public java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> getRenderers() throws APIException
ReportServicegetRenderers in interface ReportServiceorg.openmrs.reportsAPIExceptionReportService.getRenderers()public void registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass, ReportRenderer renderer) throws APIException
ReportServiceregisterRenderer 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
 renderersremoveRenderer 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 databasesaveReportSchema in interface ReportServicereportSchema - The ReportSchema to save or updateReportService.saveReportSchema(org.openmrs.report.ReportSchema)public ReportSchemaXml getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
ReportServicegetReportSchemaXml in interface ReportServiceReportService.getReportSchemaXml(java.lang.Integer)public void saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportServicesaveReportSchemaXml in interface ReportServicereportSchemaXml - xml to saveReportService.saveReportSchemaXml(org.openmrs.report.ReportSchemaXml)public void createReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportServicecreateReportSchemaXml in interface ReportServicereportSchemaXml - xml to saveReportService.createReportSchemaXml(org.openmrs.report.ReportSchemaXml)public void updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportServiceupdateReportSchemaXml in interface ReportServicereportSchemaXml - xml to saveReportService.updateReportSchemaXml(org.openmrs.report.ReportSchemaXml)public void deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportServicedeleteReportSchemaXml in interface ReportServiceReportService.deleteReportSchemaXml(org.openmrs.report.ReportSchemaXml)public java.util.List<ReportSchemaXml> getReportSchemaXmls()
ReportServicegetReportSchemaXmls in interface ReportServiceReportService.getReportSchemaXmls()public java.util.Properties getReportXmlMacros()
ReportServicegetReportXmlMacros in interface ReportServiceReportService.getReportXmlMacros()public void saveReportXmlMacros(java.util.Properties macros)
ReportServicesaveReportXmlMacros in interface ReportServicemacros - the macros to setReportService.saveReportXmlMacros(java.util.Properties)public java.lang.String applyReportXmlMacros(java.lang.String input)
ReportServiceapplyReportXmlMacros in interface ReportServiceinput - The text (presumably a report schema xml definition) that you want to apply
            macros toReportService.applyReportXmlMacros(java.lang.String)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.