|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SyncBoResponse.acceptServerSyncBo()
SyncBoResponse#acceptClientSyncBo())
Company: SAP AG
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();
}
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 |
public SyncBo getContrarySyncBo() throws SmartSyncException, PersistenceException
SyncBoResponse.getServerSyncBo()
SmartSyncException
- thrown for any exceptions caught in the SmartSync layer
PersistenceException
- thrown for any exceptions caught in the Persistence layerpublic void revertToServerData() throws SmartSyncException, PersistenceException
SyncBoResponse.acceptServerSyncBo()()
SmartSyncException
- thrown for any exceptions caught in the SmartSync layer
PersistenceException
- thrown for any exceptions caught in the Persistence layerpublic void keepClientData() throws SmartSyncException, PersistenceException
SyncBoResponse.acceptClientSyncBo()()
SmartSyncException
- thrown for any exceptions caught in the SmartSync layer
PersistenceException
- thrown for any exceptions caught in the Persistence layer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |