|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ExpressoReport is a generic interface for allowing reports to be "printed"
An example usage of an ExpressoReport is the ReportPage object as defined in
com.jcorporate.expresso.services.html.ReportPage. Although the
interfaces provide independence, and thus you can integrate whatever report
engine you wish, eContent has built in integration with
For those that are interested in making their own reports and a report driver the general idea is this:
| Method Summary | |
String |
getDefaultValue(String parameterName)
Retrieve the default parameter value for the given parameter name |
List |
getParameterNames()
Retrieve a list of parameters that this report supports. |
String |
getReportFileExtension()
Retrieve the recommended file extension for the report. |
String |
getReportMimeType()
The report engine driver is most likely going to need to know what kind of MimeType to expect the report. |
String |
getTitle()
Retrieve the title of the report |
void |
printReport(OutputStream os)
All report objects need to implement the printReport method so that the framework can manage the report output. |
void |
setDataContext(String newDataContext)
Sets the data context that the report is to work with. |
void |
setReportCode(String newReportcode)
This is the unique identifier for the report. |
void |
setReportParameters(Map parameters)
Sets the report parameters. |
| Method Detail |
public void printReport(OutputStream os)
throws ReportException,
IOException
os - The OutputStream for the report to print to.
ReportException - on error
IOException - upon IO Errorpublic void setReportParameters(Map parameters)
parameters - a java.util.Map object with the contents as specified
in the function description.public List getParameterNames()
ReportServer won't
present them as options.
public String getDefaultValue(String parameterName)
parameterName - the name of the parameter. Must be listed
in the list of parameter names
IllegalArgumentException - if the parameter name does not exist
in the report's parameter list.public void setDataContext(String newDataContext)
newDataContext - the new data contextpublic void setReportCode(String newReportcode)
newReportcode - the report definition codepublic String getTitle()
public String getReportMimeType()
MimeTypespublic String getReportFileExtension()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||