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


Deprecated. This interface will be removed in next MI releases. Use instead to resolve the SyncBo. Copyright: Copyright (c) 2003

Company: SAP AG

public interface SyncBoResolver

SyncBoResolver resolves either the conflict or error to the server or client state. Also gives the access to the contrary data that is to be resolved.

The SyncBo Resolver can be retrieve from the Syncbo Response

Example: Resolve to client 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.keepClientData();

}

Since:
2.5
Version:
2.5
Author:
Jo Gel
See Also:
ErrorConflictInbox, SyncBoResolver, SyncBoResponseType, SyncBoResponseLog

Method Summary
 SyncBo getContrarySyncBo()
          Deprecated. use instead SyncBoResponse.getServerSyncBo()
 void keepClientData()
          Deprecated. use instead SyncBoResponse.acceptClientSyncBo()()
 void revertToServerData()
          Deprecated. use instead SyncBoResponse.acceptServerSyncBo()()
 

Method Detail

getContrarySyncBo

public SyncBo getContrarySyncBo()
                         throws SmartSyncException,
                                PersistenceException
Deprecated. use instead SyncBoResponse.getServerSyncBo()

Returns the contrary data that is to be resolved.

Returns:
SyncBo the contrary SyncBo
Throws:
SmartSyncException - thrown for any exceptions caught in the SmartSync layer
PersistenceException - thrown for any exceptions caught in the Persistence layer

revertToServerData

public void revertToServerData()
                        throws SmartSyncException,
                               PersistenceException
Deprecated. use instead SyncBoResponse.acceptServerSyncBo()()

Reverts the client data to the server state; the client data is discarded.

Throws:
SmartSyncException - thrown for any exceptions caught in the SmartSync layer
PersistenceException - thrown for any exceptions caught in the Persistence layer

keepClientData

public void keepClientData()
                    throws SmartSyncException,
                           PersistenceException
Deprecated. use instead SyncBoResponse.acceptClientSyncBo()()

The client data is kept and the server data is discarded.

Throws:
SmartSyncException - thrown for any exceptions caught in the SmartSync layer
PersistenceException - thrown for any exceptions caught in the Persistence layer


Copyright © 2005 SAP AG. All Rights Reserved.