|
SAP NetWeaver 7.30 (SP05) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.connect.ConnectorResult
public final class ConnectorResult
ConnectorResult contains the result from
IProviderConnector.getItems() method.
Connector could return a delta result in which case, only modified
and deleted items are be returned.
If result is for multiple users as it happens with the case of
PullChannel, isMultiUserResult() returns true and
the results are accessed thro getItemsMap() which
contains the map of user id to ItemCollection.
IProviderConnector,
IProviderConnector.getItems(com.sap.netweaver.bc.uwl.UWLContext, java.lang.String, com.sap.netweaver.bc.uwl.connect.ConnectorFilter, java.lang.String)| Field Summary | |
|---|---|
static int |
TYPE_DELTA
Indicates that result is delta. i.e. modified and deleted items after a particular time stamp. |
static int |
TYPE_PARTIAL
Indicates that type of result is partial result. |
static int |
TYPE_SNAPSHOT
Indiciates that the result is complete snapshot of items for the item type specified. |
static int |
TYPE_UNKNOWN
This indicates result type doesnt belong to partial, snapshot or delta types. |
| Constructor Summary | |
|---|---|
ConnectorResult(ItemCollection items,
ProviderStatus stat)
Creates a snapshot type result |
|
ConnectorResult(List items,
ProviderStatus stat)
Creates a snapshot type result |
|
| Method Summary | |
|---|---|
static ConnectorResult |
createDeltaResult(ItemCollection modifiedItems,
ProviderStatus stat)
Creates a ConnectorResult of type DELTA. |
static ConnectorResult |
createMultiUserDeltaResult(Map modifiedItems,
ProviderStatus stat)
Creates a ConnectorResult of type DELTA for multiple users |
static ConnectorResult |
createPartialResult(ItemCollection theItems,
ProviderStatus stat)
Indicates that type of result is partial result. |
static ConnectorResult |
createSnapshotResult(ItemCollection theItems,
ProviderStatus stat)
Creates a ConnectorResult of type SNAPSHOT. |
static ConnectorResult |
createSnapshotResult(List theItems,
ProviderStatus stat)
Creates a ConnectorResult of type SNAPSHOT. |
static ConnectorResult |
createUnknownResult(ItemCollection theItems)
Creates an unknown type result. |
boolean |
getCompareGenericAttributes()
|
String |
getCookie()
When Items are pushed in chunks, UWL sets a cookie to track these rfc calls and to maintain timeouts for them. |
List |
getDeletedItemExternalIds()
valid only for delta result. |
ConnectorResult[] |
getExtraResults()
|
ItemCollection |
getItems()
Returns items in the result. |
String |
getItemTypeRetreived()
Even though a sub item type is asked for Connector could return items for different item type. |
Map |
getMultiUserItems()
Returns multi user items. |
ProviderStatus |
getStatus()
Contains any status messages from the Provider. |
String |
getSystem()
System from which the results are got |
Date |
getSystemTimestamp()
Valid only for delta result. |
Map |
getUsersToDeletedItemsMap()
Valid for multi user results. |
boolean |
isMultiUserResult()
Indicates if the result is for multiple users. |
boolean |
isTypeDelta()
Indicates if result type is delta. |
boolean |
isTypePartial()
Indicates if the result type is partial. |
boolean |
isTypeSnapshot()
Indicates if the result type is snap shot. |
boolean |
isTypeUnkown()
Indicates if the result type is unknown type. |
void |
setCompareGenericAttributes(boolean compareGenericAttributes)
Use this method in order to indicate to the UWL cache manager to use the generic attributes when updating the cache. |
void |
setCookie(String str)
Used for interal purpose. |
void |
setDeletedItemExternalIds(List list)
List of strings, should contain only the external id |
void |
setExtraResults(ConnectorResult[] extraResults)
|
void |
setItemTypeRetreived(String it)
|
void |
setStatus(ProviderStatus stat)
Provider status of which the results are got |
void |
setSystem(String sys)
System from which the results are got |
void |
setSystemTimestamp(Date time)
Connector could retreive the timestamp from a particular host system and set here. |
void |
setUsersToDeletedItemsMap(Map map)
Valid for multi user results. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_PARTIAL
public static final int TYPE_SNAPSHOT
public static final int TYPE_DELTA
public static final int TYPE_UNKNOWN
| Constructor Detail |
|---|
public ConnectorResult(ItemCollection items,
ProviderStatus stat)
items - stat -
public ConnectorResult(List items,
ProviderStatus stat)
items - stat - | Method Detail |
|---|
public static ConnectorResult createSnapshotResult(ItemCollection theItems,
ProviderStatus stat)
theItems - not nullstat - could be null
public static ConnectorResult createSnapshotResult(List theItems,
ProviderStatus stat)
theItems - not nullstat - could be null
public static ConnectorResult createDeltaResult(ItemCollection modifiedItems,
ProviderStatus stat)
modifiedITems - contains modified or newly created items after a particular timestamp. Can be empty.stat - could be null
public static ConnectorResult createMultiUserDeltaResult(Map modifiedItems,
ProviderStatus stat)
modifiedITems - contains modified or newly created items after a particular timestamp. Can be empty.stat - could be null
public static ConnectorResult createPartialResult(ItemCollection theItems,
ProviderStatus stat)
public static ConnectorResult createUnknownResult(ItemCollection theItems)
theItems -
public boolean isTypeDelta()
public boolean isTypeSnapshot()
public boolean isTypePartial()
public boolean isTypeUnkown()
public boolean isMultiUserResult()
public Map getMultiUserItems()
isMultiUserResult()public String getItemTypeRetreived()
public void setItemTypeRetreived(String it)
public String getSystem()
public void setSystem(String sys)
public ItemCollection getItems()
getMultiUserItems()public ProviderStatus getStatus()
public void setStatus(ProviderStatus stat)
public List getDeletedItemExternalIds()
public void setDeletedItemExternalIds(List list)
public Date getSystemTimestamp()
public void setSystemTimestamp(Date time)
ConnectorFilter parameter. It is optional for the
connector to set this timestamp. Alternatively, Connector could also make use of uwl system's
time for the delta retreival.
time - java time value , that is number of milliseconds since 1970 Jan 1.ConnectorFilterpublic String getCookie()
public void setCookie(String str)
str - public Map getUsersToDeletedItemsMap()
public void setUsersToDeletedItemsMap(Map map)
map - Map ofsuer id to List of deleted items external ids.public boolean getCompareGenericAttributes()
public void setCompareGenericAttributes(boolean compareGenericAttributes)
compareGenericAttributes - if true, generic attributes will be compared and updatedpublic ConnectorResult[] getExtraResults()
public void setExtraResults(ConnectorResult[] extraResults)
extraResults - the extraResults to set| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
-
|
EP-BC-UWL
|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
default
|
EP-BC-UWL
|
|
SAP NetWeaver 7.30 (SP05) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||