|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.ws.client.BusinessDelegate
Manages the interaction with the business WS.
Constructor Summary | |
BusinessDelegate(WebServiceSyncSource syncSource)
Create the BusinessDelegate and lookup the WS. |
Method Summary | |
Item |
addItem(java.lang.String sessionId,
Item item)
Calls addItem method of the WS |
java.lang.String |
beginSync(java.lang.Long principalId,
java.lang.Integer syncMode)
Calls beginSync method of the WS |
java.lang.String |
beginSync(java.lang.Long principalId,
java.lang.Integer syncMode,
com.funambol.framework.filter.FilterClause filterClause)
Calls beginSync method of the WS |
void |
endSync(java.lang.String sessionId)
Calls endSync method of the WS |
java.lang.String[] |
getAllItemKeys(java.lang.String sessionId)
Calls getAllItemKeys method of the WS |
java.lang.String[] |
getDeletedItemKeys(java.lang.String sessionId,
java.lang.String since,
java.lang.String until)
Calls getDeletedItemKeys method of the WS |
Item |
getItemFromId(java.lang.String sessionId,
java.lang.String itemKey)
Calls getItemFromId method of the WS |
java.lang.String[] |
getItemKeysFromTwin(Item item)
Calls getItemKeysFromTwin method of the |
char |
getItemStateFromId(java.lang.String sessionId,
java.lang.String itemKey)
Calls getItemStateFromId method of the WS |
java.lang.String[] |
getNewItemKeys(java.lang.String sessionId,
java.lang.String since,
java.lang.String until)
Calls getNewItemKeys method of the WS |
java.lang.String[] |
getUpdatedItemKeys(java.lang.String sessionId,
java.lang.String since,
java.lang.String until)
Calls beginSync method of the WS |
boolean |
isItemInFilterClause(java.lang.String sessionId,
java.lang.String itemKey)
Calls isItemInFilterClause method of the WS |
boolean |
mergeItems(java.lang.String serverKey,
Item clientItem)
Calls mergeItems method of the WS |
void |
removeItem(java.lang.String sessionId,
java.lang.String itemKey,
java.lang.String timestamp,
boolean softDeletion)
Calls removeItem method of the WS |
void |
setOperationStatus(java.lang.String sessionId,
java.lang.String operation,
int statusCode,
java.lang.String[] itemKeys)
Calls setOperationStatus method of the WS |
Item |
updateItem(java.lang.String sessionId,
Item item)
Calls updateItem method of the WS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BusinessDelegate(WebServiceSyncSource syncSource) throws com.funambol.framework.engine.source.SyncSourceException
syncSource
- the WebServiceSyncSource
com.funambol.framework.engine.source.SyncSourceException
- if an error occursMethod Detail |
public java.lang.String beginSync(java.lang.Long principalId, java.lang.Integer syncMode, com.funambol.framework.filter.FilterClause filterClause) throws com.funambol.framework.engine.source.SyncSourceException
principalId
- the user and device relation identifiersyncMode
- the synchronization modefilterClause
- the items filter clause
com.funambol.framework.engine.source.SyncSourceException
public java.lang.String beginSync(java.lang.Long principalId, java.lang.Integer syncMode) throws com.funambol.framework.engine.source.SyncSourceException
principalId
- the user and device relation identifiersyncMode
- the synchronization mode
com.funambol.framework.engine.source.SyncSourceException
public Item getItemFromId(java.lang.String sessionId, java.lang.String itemKey) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session iditemKey
- The item key
com.funambol.framework.engine.source.SyncSourceException
public java.lang.String[] getAllItemKeys(java.lang.String sessionId) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session id
com.funambol.framework.engine.source.SyncSourceException
public java.lang.String[] getNewItemKeys(java.lang.String sessionId, java.lang.String since, java.lang.String until) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The point of stasince
- The time start pointuntil
- The time end poin
com.funambol.framework.engine.source.SyncSourceException
public java.lang.String[] getUpdatedItemKeys(java.lang.String sessionId, java.lang.String since, java.lang.String until) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The point of stasince
- The time start pointuntil
- The time end poin
com.funambol.framework.engine.source.SyncSourceException
public java.lang.String[] getDeletedItemKeys(java.lang.String sessionId, java.lang.String since, java.lang.String until) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The point of stasince
- The time start pointuntil
- The time end poin
com.funambol.framework.engine.source.SyncSourceException
public Item addItem(java.lang.String sessionId, Item item) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session iditem
- The new item to be stored
com.funambol.framework.engine.source.SyncSourceException
public Item updateItem(java.lang.String sessionId, Item item) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session iditem
- The updated item to replace the older one
com.funambol.framework.engine.source.SyncSourceException
public void removeItem(java.lang.String sessionId, java.lang.String itemKey, java.lang.String timestamp, boolean softDeletion) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session iditemKey
- the key of the item to removetimestamp
- the time of the deletionsoftDeletion
- is a soft delete ?
com.funambol.framework.engine.source.SyncSourceException
public void endSync(java.lang.String sessionId) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session id which will be closed
com.funambol.framework.engine.source.SyncSourceException
public void setOperationStatus(java.lang.String sessionId, java.lang.String operation, int statusCode, java.lang.String[] itemKeys) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session idoperation
- the name of the operation.statusCode
- the status of the operationitemKeys
- the keys of the items
com.funambol.framework.engine.source.SyncSourceException
public char getItemStateFromId(java.lang.String sessionId, java.lang.String itemKey) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session iditemKey
- the key of the SyncItem to return
com.funambol.framework.engine.source.SyncSourceException
public boolean isItemInFilterClause(java.lang.String sessionId, java.lang.String itemKey) throws com.funambol.framework.engine.source.SyncSourceException
sessionId
- The session iditemKey
- the item key to check
com.funambol.framework.engine.source.SyncSourceException
public boolean mergeItems(java.lang.String serverKey, Item clientItem) throws com.funambol.framework.engine.source.SyncSourceException
serverKey
- clientItem
-
com.funambol.framework.engine.source.SyncSourceException
public java.lang.String[] getItemKeysFromTwin(Item item) throws com.funambol.framework.engine.source.SyncSourceException
item
-
com.funambol.framework.engine.source.SyncSourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |