com.funambol.ws.client
Class WebServiceSyncSourceController

java.lang.Object
  extended bycom.funambol.ws.client.WebServiceSyncSourceController
All Implemented Interfaces:
java.io.Serializable

public class WebServiceSyncSourceController
extends java.lang.Object
implements java.io.Serializable

Manages the business delegate access

See Also:
Serialized Form

Constructor Summary
WebServiceSyncSourceController(WebServiceSyncSource syncSource)
          Called to create main resource
 
Method Summary
 com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
          controlls the addItem process
 void beginSync(java.security.Principal principal, int syncMode)
          controlls the beginSync process without the filter
 void beginSync(java.security.Principal principal, int syncMode, com.funambol.framework.filter.FilterClause filterClause)
          controlls the beginSync process
 void endSync()
          controlls the endSync process
 com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
          controlls the getAllItemKeys process
 BusinessDelegate getBusinessDelegate()
          Returns BusinessDelegate
 com.funambol.framework.engine.SyncItemKey[] getDeletedSyncItemKeys(java.sql.Timestamp since, java.sql.Timestamp until)
          controlls the getDeletedItemKeys process
 com.funambol.framework.engine.SyncItemKey[] getNewSyncItemKeys(java.sql.Timestamp since, java.sql.Timestamp until)
          controlls the getNewItemKeys process
 java.lang.String getSessionId()
          Returns the session id
 com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
          controlls the getItemFromId process
 com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
          Controls the getSyncItemFromTwin process
 char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey key)
          controlls the getSyncItemStateFromId process
 com.funambol.framework.engine.SyncItemKey[] getUpdatedSyncItemKeys(java.sql.Timestamp since, java.sql.Timestamp until)
          controlls the getUpdatedItemKeys process
 WebServiceSyncSource getWebServiceSyncSource()
           
 boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey key)
          controlls the isSyncItemInFilterClause process
 boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey serverSyncItemKey, com.funambol.framework.engine.SyncItem clientSyncItem)
          Controls the mergeItems process
 void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey, java.sql.Timestamp deletionTime, boolean softDeletion)
          controlls the removeItem process
 void setOperationStatus(java.lang.String operation, int statusCode, com.funambol.framework.engine.SyncItemKey[] keys)
          controlls the set operation status process
 com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
          controlls the updateItem process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceSyncSourceController

public WebServiceSyncSourceController(WebServiceSyncSource syncSource)
                               throws com.funambol.framework.engine.source.SyncSourceException
Called to create main resource

Method Detail

getWebServiceSyncSource

public WebServiceSyncSource getWebServiceSyncSource()

getBusinessDelegate

public BusinessDelegate getBusinessDelegate()
Returns BusinessDelegate


getSessionId

public java.lang.String getSessionId()
Returns the session id


beginSync

public void beginSync(java.security.Principal principal,
                      int syncMode,
                      com.funambol.framework.filter.FilterClause filterClause)
               throws com.funambol.framework.engine.source.SyncSourceException
controlls the beginSync process

Throws:
com.funambol.framework.engine.source.SyncSourceException

beginSync

public void beginSync(java.security.Principal principal,
                      int syncMode)
               throws com.funambol.framework.engine.source.SyncSourceException
controlls the beginSync process without the filter

Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemFromId

public com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
                                                         throws com.funambol.framework.engine.source.SyncSourceException
controlls the getItemFromId process

Throws:
com.funambol.framework.engine.source.SyncSourceException

getAllSyncItemKeys

public com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
                                                               throws com.funambol.framework.engine.source.SyncSourceException
controlls the getAllItemKeys process

Throws:
com.funambol.framework.engine.source.SyncSourceException

getNewSyncItemKeys

public com.funambol.framework.engine.SyncItemKey[] getNewSyncItemKeys(java.sql.Timestamp since,
                                                                      java.sql.Timestamp until)
                                                               throws com.funambol.framework.engine.source.SyncSourceException
controlls the getNewItemKeys process

Throws:
com.funambol.framework.engine.source.SyncSourceException

getUpdatedSyncItemKeys

public com.funambol.framework.engine.SyncItemKey[] getUpdatedSyncItemKeys(java.sql.Timestamp since,
                                                                          java.sql.Timestamp until)
                                                                   throws com.funambol.framework.engine.source.SyncSourceException
controlls the getUpdatedItemKeys process

Throws:
com.funambol.framework.engine.source.SyncSourceException

getDeletedSyncItemKeys

public com.funambol.framework.engine.SyncItemKey[] getDeletedSyncItemKeys(java.sql.Timestamp since,
                                                                          java.sql.Timestamp until)
                                                                   throws com.funambol.framework.engine.source.SyncSourceException
controlls the getDeletedItemKeys process

Throws:
com.funambol.framework.engine.source.SyncSourceException

addSyncItem

public com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
                                                   throws com.funambol.framework.engine.source.SyncSourceException
controlls the addItem process

Throws:
com.funambol.framework.engine.source.SyncSourceException

updateSyncItem

public com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
                                                      throws com.funambol.framework.engine.source.SyncSourceException
controlls the updateItem process

Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItem

public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
                           java.sql.Timestamp deletionTime,
                           boolean softDeletion)
                    throws com.funambol.framework.engine.source.SyncSourceException
controlls the removeItem process

Throws:
com.funambol.framework.engine.source.SyncSourceException

endSync

public void endSync()
             throws com.funambol.framework.engine.source.SyncSourceException
controlls the endSync process

Throws:
com.funambol.framework.engine.source.SyncSourceException

setOperationStatus

public void setOperationStatus(java.lang.String operation,
                               int statusCode,
                               com.funambol.framework.engine.SyncItemKey[] keys)
                        throws com.funambol.framework.engine.source.SyncSourceException
controlls the set operation status process

Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemStateFromId

public char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey key)
                            throws com.funambol.framework.engine.source.SyncSourceException
controlls the getSyncItemStateFromId process

Throws:
com.funambol.framework.engine.source.SyncSourceException

isSyncItemInFilterClause

public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey key)
                                 throws com.funambol.framework.engine.source.SyncSourceException
controlls the isSyncItemInFilterClause process

Throws:
com.funambol.framework.engine.source.SyncSourceException

mergeSyncItems

public boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey serverSyncItemKey,
                              com.funambol.framework.engine.SyncItem clientSyncItem)
                       throws com.funambol.framework.engine.source.SyncSourceException
Controls the mergeItems process

Parameters:
serverSyncItemKey -
clientSyncItem -
Returns:
true is the client items is to be updated, false otherwise
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemKeysFromTwin

public com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
                                                                    throws com.funambol.framework.engine.source.SyncSourceException
Controls the getSyncItemFromTwin process

Parameters:
syncItem -
Returns:
an array with the twin sync items's keys
Throws:
com.funambol.framework.engine.source.SyncSourceException


Copyright © 2005-2006 Funambol.