public interface ReportService
| Modifier and Type | Method and Description |
|---|---|
List<ReportFormat> |
getFormats(String reportId)
This method provides a list of formats supported by the report
|
ReportParameters |
getParameters(String ReportId)
This method retrieves the runtime parameters taken by the report
|
void |
render(String ReportId,
String location,
ReportFormat format,
OutputStream outputStream)
This method renders the report into a given output stream.
|
String |
run(Map<String,Object> reportParms,
String reportId)
This method runs the report
|
void |
runAndRender(Map<String,Object> reportParms,
String ReportId,
ReportFormat format,
OutputStream outputStream)
This method runs the report and renders in into the given output stream
with no intermediate steps
|
String run(Map<String,Object> reportParms, String reportId) throws ReportException
reportParms - hashmap of parameters to be provided at runtimereportId - reportId as defined in database-reports.xmlString object.ReportException - if any.List<ReportFormat> getFormats(String reportId)
reportId - reportId as defined in database-reports.xmlvoid render(String ReportId, String location, ReportFormat format, OutputStream outputStream) throws ReportException
ReportId - reportId as defined in database-reports.xmllocation - location of the report on diskformat - format to render the reportoutputStream - stream to render the resulting reportReportException - if any.void runAndRender(Map<String,Object> reportParms, String ReportId, ReportFormat format, OutputStream outputStream) throws ReportException
ReportId - reportId as defined in database-reports.xmlformat - format to render the reportoutputStream - stream to render the resulting reportreportParms - a HashMap object.ReportException - if any.ReportParameters getParameters(String ReportId) throws ReportException
ReportId - a String object.ReportExceptionCopyright © 2022. All rights reserved.