|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.reporting.jasperreports.svclayer.JasperReportService
public class JasperReportService
JasperReportService class.
| Constructor Summary | |
|---|---|
JasperReportService()
Constructor for JasperReportService. |
|
| Method Summary | |
|---|---|
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(HashMap<String,Object> reportParms,
String reportId)
This method runs the report |
void |
runAndRender(HashMap<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 |
void |
setConfigDao(JasperReportConfigDao jasperReportConfigDao)
setConfigDao |
boolean |
validate(HashMap<String,Object> reportParms,
String reportId)
This method validates that the map of report parameters matches the report parameters accepted by the report. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JasperReportService()
Constructor for JasperReportService.
| Method Detail |
|---|
public List<ReportFormat> getFormats(String reportId)
getFormats in interface ReportServicereportId - reportId as defined in database-reports.xml
public ReportParameters getParameters(String reportId)
throws ReportException
getParameters in interface ReportServicereportId - a String object.
ReportException
public void render(String ReportId,
String location,
ReportFormat format,
OutputStream outputStream)
throws ReportException
render in interface ReportServiceReportId - reportId as defined in database-reports.xmllocation - location of the report on diskformat - format to render the reportoutputStream - stream to render the resulting report
ReportException - if any.
public String run(HashMap<String,Object> reportParms,
String reportId)
throws ReportException
run in interface ReportServicereportParms - hashmap of parameters to be provided at runtimereportId - reportId as defined in database-reports.xml
String object.
ReportException - if any.
public void runAndRender(HashMap<String,Object> reportParms,
String reportId,
ReportFormat format,
OutputStream outputStream)
throws ReportException
runAndRender in interface ReportServicereportParms - a HashMap object.reportId - reportId as defined in database-reports.xmlformat - format to render the reportoutputStream - stream to render the resulting report
ReportException - if any.
public boolean validate(HashMap<String,Object> reportParms,
String reportId)
validate in interface ReportServicereportParms - hashmap of parameters to be provided at runtimereportId - reportId as defined in database-reports.xml
public void setConfigDao(JasperReportConfigDao jasperReportConfigDao)
setConfigDao
jasperReportConfigDao - a JasperReportConfigDao object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||