|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional @Deprecated public interface ReportService
Contains methods pertaining to creating/updating/deleting/retiring/registering/evaluating
ReportSchema, ReportSchemaXml, ReportRenderer, ReportXmlMacros, and other 'Report' objects.
| 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 context)
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 |
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 registerRenderer(Class, ReportRenderer) |
void |
removeRenderer(java.lang.Class<? extends ReportRenderer> rendererClass)
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> renderers)
Deprecated. Add the given map to this service's renderers This map is set via spring, see the applicationContext-service.xml file |
void |
updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. use saveReportSchemaXml(reportSchemaXml) |
| Method Detail |
|---|
@Authorized(value="Run Reports")
ReportData evaluate(ReportSchema reportSchema,
Cohort inputCohort,
EvaluationContext context)
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.context - - The EvaluationContext which contains the parameters, provides
caching for the report evaluation
ReportData - Contains the evaluated report data
APIException
@Transactional(readOnly=true)
java.util.List<ReportSchema> getReportSchemas()
throws APIException
ReportSchemas
ReportSchemas
APIException
@Transactional(readOnly=true)
ReportSchema getReportSchema(java.lang.Integer reportSchemaId)
throws APIException
ReportSchema with the given id
reportSchemaId - The Integer ReportSchema id
ReportSchema object
APIException
ReportSchema getReportSchema(ReportSchemaXml reportSchemaXml)
throws APIException
reportSchemaXml - - the ReportSchemaXml to use to return a ReportSchema instance
java.lang.Exception - if conversion fails
APIException
void saveReportSchema(ReportSchema reportSchema)
throws APIException
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 database
reportSchema - The ReportSchema to save or update
APIExceptionvoid deleteReportSchema(ReportSchema reportSchema)
ReportSchema from the database.
reportSchema - The ReportSchema to remove from the system
APIException@Transactional(readOnly=true) java.util.Collection<ReportRenderer> getReportRenderers()
@Transactional(readOnly=true) java.util.List<RenderingMode> getRenderingModes(ReportSchema schema)
RenderingModes that the passed ReportSchema supports, in
their preferred order
@Transactional(readOnly=true) ReportRenderer getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
ReportRenderer whose class matches the passed class
clazz - The ReportRenderer implementation class to retrieve
ReportRenderer that has been registered that matches the passed class@Transactional(readOnly=true) ReportRenderer getReportRenderer(java.lang.String className)
ReportRenderer whose class matches the passed class name
className - The String name of the ReportRenderer implementation class to retrieve
ReportRenderer that has been registered that matches the passed class
name
void setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> renderers)
throws APIException
renderers - Map of class to renderer object
APIException
@Transactional(readOnly=true)
java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> getRenderers()
throws APIException
org.openmrs.reports
APIException
void registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass,
ReportRenderer renderer)
throws APIException
rendererClass - renderer -
APIException
void registerRenderer(java.lang.String rendererClass)
throws APIException
registerRenderer(Class, ReportRenderer)
rendererClass -
APIException
void removeRenderer(java.lang.Class<? extends ReportRenderer> rendererClass)
throws APIException
rendererClass from the list of available
renderers
rendererClass -
APIException@Transactional(readOnly=true) ReportSchemaXml getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
void saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid createReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
@Transactional(readOnly=true) java.util.List<ReportSchemaXml> getReportSchemaXmls()
@Transactional(readOnly=true) java.util.Properties getReportXmlMacros()
void saveReportXmlMacros(java.util.Properties macros)
macros - the macros to setjava.lang.String applyReportXmlMacros(java.lang.String input)
input - The text (presumably a report schema xml definition) that you want to apply
macros to
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||