|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncclient.spds.source.FileSystemSyncSource
com.funambol.syncclient.spds.source.SIFSyncSource
public class SIFSyncSource
This class implements a dummy SyncSource that just displays the calls to its methods
Field Summary |
---|
Fields inherited from class com.funambol.syncclient.spds.source.FileSystemSyncSource |
---|
counter, DATABASE_FILE_NAME, DATABASE_HEADER, FORMAT_BASE64, isEXT3, isFAT32 |
Constructor Summary | |
---|---|
SIFSyncSource()
Creates a new instance of AbstractSyncSource |
Method Summary | |
---|---|
protected SyncItem[] |
filterSyncItems(java.security.Principal principal,
java.util.Date since,
char state)
Filters the SyncItems in the synchronization database (after a refresh) based on the given principal, last sync timestamp and state (see SyncItemState). |
SyncItem |
setSyncItem(java.security.Principal principal,
SyncItem syncItem)
Replaces an existing SyncItem or adds a new SyncItem if it does not exist. |
Methods inherited from class com.funambol.syncclient.spds.source.FileSystemSyncSource |
---|
beginSync, commitSync, emptyDataStore, endSync, getAllSyncItems, getDeletedSyncItems, getExistingFiles, getName, getNewSyncItems, getSourceDirectory, getSourceDrive, getSourceURI, getType, getUniqueFileName, getUpdatedSyncItems, isEncode, lastModifiedFromStateString, readFileContent, removeState, removeSyncItem, restoreSyncDB, roundTime, roundTimeEXT3, roundTimeFAT32, setEncode, setEncode, setName, setSourceDirectory, setSourceDrive, setSourceURI, setState, setType, stateFromStateString, updateSyncDatabase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.funambol.syncclient.spds.engine.SyncSource |
---|
beginSync, commitSync, getAllSyncItems, getDeletedSyncItems, getName, getNewSyncItems, getSourceURI, getType, getUpdatedSyncItems, removeSyncItem |
Constructor Detail |
---|
public SIFSyncSource()
Method Detail |
---|
public SyncItem setSyncItem(java.security.Principal principal, SyncItem syncItem) throws SyncException
SyncSource
setSyncItem
in interface SyncSource
setSyncItem
in class FileSystemSyncSource
principal
- not used, always nullsyncItem
- the item to replace/add
SyncException
- in case of error (for instance if the
underlying data store runs into problems)protected SyncItem[] filterSyncItems(java.security.Principal principal, java.util.Date since, char state)
filterSyncItems
in class FileSystemSyncSource
principal
- principal. null means anysince
- last sync timestamp. null neans since everstate
- the state to use as filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |