|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Collects report result items.
A IResultReceiver collects items (results and errors) found by
a running report. The result receiver becomes invalid once either
abort() or finish() is called.
Both methods produce a IReportResult which represents the complete
result of the running report.
Copyright (c) SAP AG 2003-2004
| Method Summary | |
IReportResult |
abort(String description,
List propertyNames)
Abort reporting results and retrieve IReportResult object representing all collected, incomplete results and errors. |
IReportResult |
abort(String description,
List propertyNames,
List summaryProps)
Abort reporting results and retrieve IReportResult object representing all collected, incomplete results and errors. |
void |
addError(RID rid,
String description,
Throwable ex)
Add an error to the collected report results. |
void |
addItem(IResultItem item)
Adds an item to the collected report results. |
void |
checkInterrupt()
This method will throw InterruptedException when the report was terminated by the user. |
IReportResult |
finish(String description,
List propertyNames)
Finish reporting results and retrieve IReportResult object representing all collected results and errors. |
IReportResult |
finish(String description,
List propertyNames,
List summaryProps)
Finish reporting results and retrieve IReportResult object representing all collected results and errors. |
int |
getResultSize()
Retrieve the number of result items, including errors, added so far. |
void |
investigating(RID currentScope)
Inform the receiver which part of the resource namespace is currently investigated. |
void |
setShowResultItemDescriptions(boolean visible)
Set the visibility of result item descriptions for future display to a user. |
void |
setShowResultItemRIDs(boolean visible)
Set the visibility of result item RIDs for future display to a user. |
| Method Detail |
public int getResultSize()
public void addItem(IResultItem item)
throws ResourceException,
InterruptedException
item - to add to result
InterruptedException - when report was terminated from outside (e.g. administrator)
ResourceException - when encountering errors persisting results
public void addError(RID rid,
String description,
Throwable ex)
throws ResourceException,
InterruptedException
rid - where error was encountereddescription - of errorex - exception encountered or null
InterruptedException - when report was terminated from outside (e.g. administrator)
ResourceException - when encountering errors persisting results
public IReportResult abort(String description,
List propertyNames)
throws ResourceException,
InterruptedException
description - of report outcomepropertyNames - list of IPropertyNames valid in result items
InterruptedException - when report was terminated from outside (e.g. administrator)
ResourceException - when encountering errors persisting results
public IReportResult abort(String description,
List propertyNames,
List summaryProps)
throws ResourceException,
InterruptedException
description - of report outcomepropertyNames - list of IPropertyNames valid in result itemssummaryProps - list of IPropertys which give a summary of the report execution
InterruptedException - when report was terminated from outside (e.g. administrator)
ResourceException - when encountering errors persisting results
public IReportResult finish(String description,
List propertyNames)
throws ResourceException,
InterruptedException
description - of report outcomepropertyNames - list of IPropertyNames valid in result items
InterruptedException - when report was terminated from outside (e.g. administrator)
ResourceException - when encountering errors persisting results
public IReportResult finish(String description,
List propertyNames,
List summaryProps)
throws ResourceException,
InterruptedException
description - of report outcomepropertyNames - list of IPropertyNames valid in result itemssummaryProps - list of IPropertys which give a summary of the report execution
InterruptedException - when report was terminated from outside (e.g. administrator)
ResourceException - when encountering errors persisting results
public void investigating(RID currentScope)
throws InterruptedException
InterruptedException - when report run should be aborted.
public void checkInterrupt()
throws InterruptedException
InterruptedException - when report run should be aborted.public void setShowResultItemRIDs(boolean visible)
visible - to render the RIDs visiblypublic void setShowResultItemDescriptions(boolean visible)
visible - to render the descriptions visibly
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||