|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.cmweb.reportservice.impl.BirtReportServiceImpl
public class BirtReportServiceImpl
This service provides access to the birt reporting engine.
| Field Summary |
|---|
| Fields inherited from interface com.elasticpath.cmweb.reportservice.ReportConstants |
|---|
ACTION, CSV_ACTION, DOCUMENT_EXTENSION, ERRORS_EXIST, HTML_ACTION, HTML_RESULT, LIST_ACTION, PDF_ACTION, REPORT_EXTENSION, REPORT_NAME, REPORT_PAGE_NUMBER, REPORT_PARAMS, URL |
| Constructor Summary | |
|---|---|
BirtReportServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
csvToStream(java.lang.String reportName,
int sessionId,
java.util.Map params,
java.io.OutputStream out)
Renders csv report and outputs to stream. |
void |
deleteOldDocuments()
Deletes old report documents from the document dir older than 1 day. |
ElasticPath |
getElasticPath()
Returns ElasticPath instance. |
java.lang.String |
getHtml(java.lang.String reportName,
int sessionId,
java.lang.Long pageNumber,
java.util.Map params)
Returns html for specified report page. |
java.util.List |
getParameters(java.lang.String reportName)
Returns a List of report parameters. |
void |
initializeOnce(javax.servlet.ServletContext servletContext)
Initialized the birt engine. |
void |
pdfToStream(java.lang.String reportName,
java.util.Map params,
java.io.OutputStream out)
Renders pdf report and outputs to stream. |
void |
setElasticPath(ElasticPath elasticPath)
Sets ElasticPath instance. |
void |
shutDown()
Shutdown the birt engine. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BirtReportServiceImpl()
| Method Detail |
|---|
public void csvToStream(java.lang.String reportName,
int sessionId,
java.util.Map params,
java.io.OutputStream out)
csvToStream in interface BirtReportServicereportName - name of report.sessionId - unique id for each user.params - map of param names and values.out - output stream.public void deleteOldDocuments()
deleteOldDocuments in interface BirtReportServicepublic ElasticPath getElasticPath()
ElasticPath instance.
getElasticPath in interface EpServiceElasticPath instance.
public java.lang.String getHtml(java.lang.String reportName,
int sessionId,
java.lang.Long pageNumber,
java.util.Map params)
getHtml in interface BirtReportServicereportName - name of report.sessionId - unique id for each user.pageNumber - page # to display. If page number is null, it means that this
report hasn't been run before and that a document should be created.params - map of param names and values.
public java.util.List getParameters(java.lang.String reportName)
getParameters in interface BirtReportServicereportName - name of report.
public void initializeOnce(javax.servlet.ServletContext servletContext)
initializeOnce in interface BirtReportServiceservletContext - servlet context for PlatformServletContext.
public void pdfToStream(java.lang.String reportName,
java.util.Map params,
java.io.OutputStream out)
pdfToStream in interface BirtReportServicereportName - name of report.params - map of param names and values.out - output stream.public void setElasticPath(ElasticPath elasticPath)
ElasticPath instance.
setElasticPath in interface EpServiceelasticPath - ElasticPath instance.public void shutDown()
shutDown in interface BirtReportService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||