@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
RenderingMode s 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
ReportSchema s |
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)
ReportService
ReportSchema
from the database.deleteReportSchema
in interface ReportService
reportSchema
- 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 ReportService
reportSchema
- - 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)
ReportService
ReportRenderer
whose class matches the passed classgetReportRenderer
in interface ReportService
clazz
- 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)
ReportService
ReportRenderer
whose class matches the passed class namegetReportRenderer
in interface ReportService
className
- 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()
ReportService
getReportRenderers
in interface ReportService
ReportService.getReportRenderers()
public java.util.List<RenderingMode> getRenderingModes(ReportSchema schema)
ReportService
RenderingMode
s that the passed ReportSchema
supports, in
their preferred ordergetRenderingModes
in interface ReportService
ReportService.getRenderingModes(org.openmrs.report.ReportSchema)
public ReportSchema getReportSchema(java.lang.Integer reportSchemaId) throws APIException
ReportService
ReportSchema
with the given idgetReportSchema
in interface ReportService
reportSchemaId
- The Integer ReportSchema idReportSchema
objectAPIException
ReportService.getReportSchema(java.lang.Integer)
public ReportSchema getReportSchema(ReportSchemaXml reportSchemaXml) throws APIException
ReportService
getReportSchema
in interface ReportService
reportSchemaXml
- - the ReportSchemaXml to use to return a ReportSchema instanceAPIException
ReportService.getReportSchema(org.openmrs.report.ReportSchemaXml)
public java.util.List<ReportSchema> getReportSchemas() throws APIException
ReportService
ReportSchema
sgetReportSchemas
in interface ReportService
ReportSchema
sAPIException
ReportService.getReportSchemas()
public void setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> newRenderers) throws APIException
setRenderers
in interface ReportService
newRenderers
- Map of class to renderer objectAPIException
ReportService.setRenderers(java.util.Map)
public java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> getRenderers() throws APIException
ReportService
getRenderers
in interface ReportService
org.openmrs.report
sAPIException
ReportService.getRenderers()
public void registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass, ReportRenderer renderer) throws APIException
ReportService
registerRenderer
in interface ReportService
APIException
ReportService.registerRenderer(java.lang.Class,
org.openmrs.report.ReportRenderer)
public void registerRenderer(java.lang.String rendererClass) throws APIException
ReportService
ReportService.registerRenderer(Class, ReportRenderer)
registerRenderer
in interface ReportService
APIException
ReportService.registerRenderer(java.lang.String)
public void removeRenderer(java.lang.Class<? extends ReportRenderer> renderingClass)
ReportService
rendererClass
from the list of available
renderersremoveRenderer
in interface ReportService
ReportService.removeRenderer(Class)
public void saveReportSchema(ReportSchema reportSchema)
ReportService
ReportSchema
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 ReportService
reportSchema
- The ReportSchema
to save or updateReportService.saveReportSchema(org.openmrs.report.ReportSchema)
public ReportSchemaXml getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
ReportService
getReportSchemaXml
in interface ReportService
ReportService.getReportSchemaXml(java.lang.Integer)
public void saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
saveReportSchemaXml
in interface ReportService
reportSchemaXml
- xml to saveReportService.saveReportSchemaXml(org.openmrs.report.ReportSchemaXml)
public void createReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
createReportSchemaXml
in interface ReportService
reportSchemaXml
- xml to saveReportService.createReportSchemaXml(org.openmrs.report.ReportSchemaXml)
public void updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
updateReportSchemaXml
in interface ReportService
reportSchemaXml
- xml to saveReportService.updateReportSchemaXml(org.openmrs.report.ReportSchemaXml)
public void deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
ReportService
deleteReportSchemaXml
in interface ReportService
ReportService.deleteReportSchemaXml(org.openmrs.report.ReportSchemaXml)
public java.util.List<ReportSchemaXml> getReportSchemaXmls()
ReportService
getReportSchemaXmls
in interface ReportService
ReportService.getReportSchemaXmls()
public java.util.Properties getReportXmlMacros()
ReportService
getReportXmlMacros
in interface ReportService
ReportService.getReportXmlMacros()
public void saveReportXmlMacros(java.util.Properties macros)
ReportService
saveReportXmlMacros
in interface ReportService
macros
- the macros to setReportService.saveReportXmlMacros(java.util.Properties)
public java.lang.String applyReportXmlMacros(java.lang.String input)
ReportService
applyReportXmlMacros
in interface ReportService
input
- 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.