|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReportDomain
| Method Summary | |
|---|---|
void |
addReportPart(String reportId,
ReportPart reportPart)
Add the given report part to the report data currently collected for the given reportId. |
String |
collectData()
Start a report data collection. |
void |
createCategory(String category)
Creates the given category, which is empty at the start. |
Report |
generateReport(String reportId,
String category,
String reportName)
Generate the report using the information stored under the given reportId and stop collecting data for this report. |
List<String> |
getAllCategories()
Get all report categories. |
List<Report> |
getAllReports(String category)
Get all finished reports of the given category. |
Report |
getDraft(String reportId,
String draftName)
Generate a report based on the currently available data stored for the given reportId. |
void |
processEvent(String reportId,
org.openengsb.core.api.Event event)
Analyzes the given event and adds all information stored in the event to the report data collection associated with the given reportId, which was initialized by calling #collectData(IdType, String). |
void |
removeCategory(String category)
Remove the given category and all reports stored in this category. |
void |
removeReport(String category,
Report report)
Remove the given report from the given category. |
void |
storeReport(String category,
Report report)
Store the given report in the report store under the given category. |
| Methods inherited from interface org.openengsb.core.api.Domain |
|---|
getAliveState |
| Methods inherited from interface org.openengsb.core.api.OpenEngSBService |
|---|
getInstanceId |
| Method Detail |
|---|
Report generateReport(String reportId,
String category,
String reportName)
throws NoSuchReportException
reportName
parameter. The category is created if it is not already present. If there is already a report with the same name
under this category it is overwritten.
NoSuchReportException - if no report with the given reportId is currently collecting data.
Report getDraft(String reportId,
String draftName)
throws NoSuchReportException
reportId. The report is
generated but not stored. Furthermore the data collection is not stopped for this report. This method can be used
if a preview of the report is needed, but the data collection is not finished yet.
NoSuchReportException - if no report with the given reportId is currently collecting data.String collectData()
generateReport(String, String, String) method specifying the reportId returned by this method.
generateReport(String, String, String)
void addReportPart(String reportId,
ReportPart reportPart)
throws NoSuchReportException
reportId. The report part
is appended at the end of the report.
NoSuchReportException - if no report with the given reportId is currently collecting data.
void processEvent(String reportId,
org.openengsb.core.api.Event event)
throws NoSuchReportException
reportId, which was initialized by calling #collectData(IdType, String).
NoSuchReportException - if no report with the given reportId is currently collecting dataList<Report> getAllReports(String category)
void storeReport(String category,
Report report)
void removeReport(String category,
Report report)
List<String> getAllCategories()
void removeCategory(String category)
void createCategory(String category)
storeReport(String, Report) or generateReport(String, String, String) specifying the respective
category. If a category exists with the given name no operation is performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||