public interface IResultReceiver
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
| Modifier and Type | Method and Description |
|---|---|
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.
|
int getResultSize()
void addItem(IResultItem item) throws ResourceException, InterruptedException
item - to add to resultInterruptedException - when report was terminated from outside (e.g. administrator)ResourceException - when encountering errors persisting resultsvoid addError(RID rid, String description, Throwable ex) throws ResourceException, InterruptedException
rid - where error was encountereddescription - of errorex - exception encountered or nullInterruptedException - when report was terminated from outside (e.g. administrator)ResourceException - when encountering errors persisting resultsIReportResult abort(String description, List propertyNames) throws ResourceException, InterruptedException
description - of report outcomepropertyNames - list of IPropertyNames valid in result itemsInterruptedException - when report was terminated from outside (e.g. administrator)ResourceException - when encountering errors persisting resultsIReportResult 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 executionInterruptedException - when report was terminated from outside (e.g. administrator)ResourceException - when encountering errors persisting resultsIReportResult finish(String description, List propertyNames) throws ResourceException, InterruptedException
description - of report outcomepropertyNames - list of IPropertyNames valid in result itemsInterruptedException - when report was terminated from outside (e.g. administrator)ResourceException - when encountering errors persisting resultsIReportResult 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 executionInterruptedException - when report was terminated from outside (e.g. administrator)ResourceException - when encountering errors persisting resultsvoid investigating(RID currentScope) throws InterruptedException
InterruptedException - when report run should be aborted.void checkInterrupt()
throws InterruptedException
InterruptedException - when report run should be aborted.void setShowResultItemRIDs(boolean visible)
visible - to render the RIDs visiblyvoid setShowResultItemDescriptions(boolean visible)
visible - to render the descriptions visibly| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2017 SAP AG Complete Copyright Notice