|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional public interface ReportService
| Method Summary | |
|---|---|
java.lang.String |
applyReportXmlMacros(java.lang.String input)
Applies the report xml macros to the input, and returns it. |
void |
createReportSchemaXml(ReportSchemaXml reportSchemaXml)
Create a new ReportSchemaXml object in the database. |
void |
deleteReportSchema(ReportSchema reportSchema)
Auto generated method comment |
void |
deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
Delete the given ReportSchemaXml class from the db |
ReportData |
evaluate(ReportSchema reportSchema,
Cohort inputCohort,
EvaluationContext context)
Auto generated method comment |
java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> |
getRenderers()
Gets the renderers map registered to this report service |
java.util.List<RenderingMode> |
getRenderingModes(ReportSchema schema)
|
ReportRenderer |
getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
Auto generated method comment |
ReportRenderer |
getReportRenderer(java.lang.String className)
Get the report renderer |
java.util.Collection<ReportRenderer> |
getReportRenderers()
|
ReportSchema |
getReportSchema(java.lang.Integer reportSchemaId)
Auto generated method comment |
ReportSchema |
getReportSchema(ReportSchemaXml reportSchemaXml)
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()
Auto generated method comment |
ReportSchemaXml |
getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
Get the xmlified ReportSchema object that was saved previously |
java.util.List<ReportSchemaXml> |
getReportSchemaXmls()
Get all saved ReportSchemaXml objects in the db |
java.util.Properties |
getReportXmlMacros()
Gets the macros that will be used when deserializing ReportSchemaXML |
void |
registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass,
ReportRenderer renderer)
Registers the given renderer with the service |
void |
registerRenderer(java.lang.String rendererClass)
Convenience method for registerRenderer(Class, ReportRenderer) |
void |
removeRenderer(java.lang.Class<? extends ReportRenderer> rendererClass)
Remove the renderer associated with rendererClass from the
list of available renderers |
void |
saveReportSchema(ReportSchema reportSchema)
Auto generated method comment |
void |
saveReportXmlMacros(java.util.Properties macros)
Saves the macros that will be used when deserializing ReportSchemaXML |
void |
setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> renderers)
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)
Update the given ReportSchemaXml object in the database. |
| Method Detail |
|---|
ReportData evaluate(ReportSchema reportSchema,
Cohort inputCohort,
EvaluationContext context)
@Transactional(readOnly=true) java.util.List<ReportSchema> getReportSchemas()
@Transactional(readOnly=true) ReportSchema getReportSchema(java.lang.Integer reportSchemaId)
ReportSchema getReportSchema(ReportSchemaXml reportSchemaXml)
reportSchemaXml - - the ReportSchemaXml to use to return a ReportSchema instance
java.lang.Exception - if conversion failsvoid saveReportSchema(ReportSchema reportSchema)
reportSchema - void deleteReportSchema(ReportSchema reportSchema)
reportSchema - @Transactional(readOnly=true) java.util.Collection<ReportRenderer> getReportRenderers()
@Transactional(readOnly=true) java.util.List<RenderingMode> getRenderingModes(ReportSchema schema)
@Transactional(readOnly=true) ReportRenderer getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
key -
@Transactional(readOnly=true) ReportRenderer getReportRenderer(java.lang.String className)
key -
void setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> renderers)
throws APIException
renderers - Map of class to renderer object
APIException
java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> getRenderers()
throws APIException
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 createReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
java.util.List<ReportSchemaXml> getReportSchemaXmls()
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-trunk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||