|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
SyncBoRepsonse represents the error/conflict response information,
which corresponds to a specific quarantined SyncBo. This has the following
information:
1. SyncBoResponse type i.e. Error or Conflict.
2. SyncKey.
3. Current and history log.
4. SyncBoDescriptor instance
5. SyncBoResolver used to resolve the quarantined state by either
reverting to server state or keeping the client state.
The SyncBoResponses can be retrieved from the ErrorConflictInbox
Example: Resolve to server state for a given syncbo.
ErrorConflictInbox errorConflictInbox=
SmartSyncRuntime.getInstance().getErrorConflictInbox();
//For the given synbo.
MeIterator it = errorConflictInbox.getAllSyncBoResponses(syncBoDescriptor);
while(it.hasNext()){
SyncBoResponse resp = (SyncBoResponse)it.next();
SyncBoResolver resolver = resp.getSyncBoResolver();
resolver.revertToServerData();
}
Copyright: Copyright (c) 2003
Company: SAP AG
ErrorConflictInbox,
SyncBoResolver,
SyncBoResponseType,
SyncBoResponseLog| Method Summary | |
SyncBoChangeActionType |
getActionType()
Returns the server action type of the response. |
SyncBoResponseLog |
getCurrentLog()
Returns the current SyncBoResponseLog of this SyncBoResponse |
MeIterator |
getHistoryLog()
Returns all the SyncBoResponseLog history; the last element is the current one. |
SyncBoResponseType |
getResponseType()
Returns the SyncBoResponseType of this SyncBoResponse; either ERROR or CONFLICT |
SyncBoDescriptor |
getSyncBoDescriptor()
Returns the SyncBoDescriptor of this SyncBoResponse |
SyncBoResolver |
getSyncBoResolver()
Returns the SyncBoResolver which is used to resolve the error or conflict |
java.lang.String |
getSyncKey()
Returns the syncKey of this SyncBoResponse |
| Method Detail |
public SyncBoResponseType getResponseType()
public java.lang.String getSyncKey()
public SyncBoResponseLog getCurrentLog()
public MeIterator getHistoryLog()
public SyncBoDescriptor getSyncBoDescriptor()
public SyncBoResolver getSyncBoResolver()
public SyncBoChangeActionType getActionType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||