com.sap.ip.me.api.smartsync
Interface SyncBoResponse


public interface SyncBoResponse

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

Since:
2.5
Version:
2.5
Author:
Jo Gel
See Also:
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

getResponseType

public SyncBoResponseType getResponseType()
Returns the SyncBoResponseType of this SyncBoResponse; either ERROR or CONFLICT

Returns:
SyncBoResponseType

getSyncKey

public java.lang.String getSyncKey()
Returns the syncKey of this SyncBoResponse

Returns:
the syncKey

getCurrentLog

public SyncBoResponseLog getCurrentLog()
Returns the current SyncBoResponseLog of this SyncBoResponse

Returns:
SyncBoResponseLog

getHistoryLog

public MeIterator getHistoryLog()
Returns all the SyncBoResponseLog history; the last element is the current one.

Returns:
MeIterator

getSyncBoDescriptor

public SyncBoDescriptor getSyncBoDescriptor()
Returns the SyncBoDescriptor of this SyncBoResponse

Returns:
SyncBoDescriptor

getSyncBoResolver

public SyncBoResolver getSyncBoResolver()
Returns the SyncBoResolver which is used to resolve the error or conflict

Returns:
SyncBoResolver

getActionType

public SyncBoChangeActionType getActionType()
Returns the server action type of the response.

Returns:
SyncBoChangeActionType


Copyright © 2003 SAP AG. All Rights Reserved.