|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReportWrapperService
Interface that finds and executes individual reportServices. Always run a report service via this wrapper as the implementation will find the correct service for the reportId and wrap it as necessary.
| Method Summary | |
|---|---|
DeliveryOptions |
getDeliveryOptions(String userId,
String reportId)
This method returns the delivery options for the report. |
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 |
Boolean |
hasParameters(String ReportId)
This method is used to determine whether the report takes any parameters |
void |
render(String ReportId,
String location,
ReportFormat format,
OutputStream outputStream)
This method renders the report into a given output stream. |
void |
run(ReportParameters parameters,
ReportMode mode,
DeliveryOptions deliveryOptions,
String reportId)
This method runs the report |
void |
runAndRender(ReportParameters parameters,
ReportMode mode,
OutputStream outputStream)
This method runs the report and renders in into the given output stream with no intermediate steps |
boolean |
validate(ReportParameters parameters,
String reportId)
This method validates that the map of report parameters matches the report parameters accepted by the report. |
| Method Detail |
|---|
boolean validate(ReportParameters parameters,
String reportId)
parameters - runtime report parametersreportId - reportId as defined in database-reports.xml
void run(ReportParameters parameters,
ReportMode mode,
DeliveryOptions deliveryOptions,
String reportId)
parameters - runtime report parametersdeliveryOptions - delivery options for the reportreportId - reportId as defined in database-reports.xmlmode - in which to run the report (ONLINE, BATCH or IMMEDIATE)
DeliveryOptions getDeliveryOptions(String userId,
String reportId)
userId - a String object.reportId - a String object.
List<ReportFormat> getFormats(String reportId)
reportId - reportId as defined in database-reports.xml
void runAndRender(ReportParameters parameters,
ReportMode mode,
OutputStream outputStream)
parameters - runtime report parametersoutputStream - stream to render the resulting reportmode - in which to run the report (ONLINE, BATCH or IMMEDIATE)
void render(String ReportId,
String location,
ReportFormat format,
OutputStream outputStream)
ReportId - reportId as defined in database-reports.xmllocation - location of the report on diskformat - format to render the reportoutputStream - stream to render the resulting reportBoolean hasParameters(String ReportId)
ReportId - a String object.
ReportParameters getParameters(String ReportId)
ReportId - a String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||