public interface ISyncStorage
Modifier and Type | Interface and Description |
---|---|
static class |
ISyncStorage.CollectionMapping |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
createFolder(BackendSession bs,
ItemDataType type,
java.lang.String folderName)
Create + autosubscription
|
boolean |
deleteFolder(BackendSession bs,
ItemDataType type,
java.lang.String folderUri) |
long |
findLastHeartbeat(DeviceId deviceId) |
java.util.List<java.lang.Integer> |
getCollectionIds(java.lang.String collectionPath)
Finds the collection ids for a collection path (% char is allowed for
wildcard matching)
|
BMFolder |
getFolder(int collectionId) |
BMFolder |
getFolderByUri(java.lang.String userUid,
java.lang.String folderUri) |
java.util.List<BMFolder> |
getFoldersByParent(java.lang.String userUid,
long parentId) |
java.util.Map<java.lang.String,java.lang.String> |
getFolderSyncVersions(Account account) |
BMFolder |
getMailFolderByPath(java.lang.String userUid,
java.lang.String path) |
java.util.List<java.lang.String> |
getSentItems(BackendSession bs,
int folderId) |
java.lang.String |
getSystemConf(java.lang.String key)
Fetches the value of an EAS system conf.
|
java.util.List<java.lang.String> |
getWipedDevices() |
void |
insertClientId(java.lang.String clientId)
Saves the client used by SendMail to identity resends
|
void |
insertSentItems(BackendSession bs,
int folderId,
java.util.Set<java.lang.String> uids) |
boolean |
isKnownClientId(java.lang.String clientId)
Returns true if the clientId is known and the email must not be sent by
the SendMail command
|
boolean |
needReset(BackendSession bs) |
void |
resetFolder(BackendSession bs) |
void |
resetSentItems(BackendSession bs,
int folderId) |
void |
setFolderSyncVersions(FolderSyncVersions versions) |
boolean |
updateFolder(BackendSession bs,
ItemDataType type,
java.lang.String folderUri,
java.lang.String folderName) |
void |
updateLastHearbeat(DeviceId deviceId,
long hearbeat) |
void |
updateLastSync(BackendSession bs)
Update device lastSync
|
long findLastHeartbeat(DeviceId deviceId)
void updateLastHearbeat(DeviceId deviceId, long hearbeat)
void updateLastSync(BackendSession bs)
bs
- java.lang.String getSystemConf(java.lang.String key)
key
- java.util.List<java.lang.String> getWipedDevices()
BMFolder getFolder(int collectionId) throws CollectionNotFoundException
CollectionNotFoundException
BMFolder getFolderByUri(java.lang.String userUid, java.lang.String folderUri) throws CollectionNotFoundException
CollectionNotFoundException
BMFolder getMailFolderByPath(java.lang.String userUid, java.lang.String path) throws CollectionNotFoundException
CollectionNotFoundException
java.util.List<BMFolder> getFoldersByParent(java.lang.String userUid, long parentId) throws CollectionNotFoundException
CollectionNotFoundException
java.lang.Long createFolder(BackendSession bs, ItemDataType type, java.lang.String folderName)
bs
- folderName
- boolean deleteFolder(BackendSession bs, ItemDataType type, java.lang.String folderUri)
boolean updateFolder(BackendSession bs, ItemDataType type, java.lang.String folderUri, java.lang.String folderName)
boolean needReset(BackendSession bs)
void resetFolder(BackendSession bs)
java.util.List<java.lang.String> getSentItems(BackendSession bs, int folderId)
void insertSentItems(BackendSession bs, int folderId, java.util.Set<java.lang.String> uids)
void resetSentItems(BackendSession bs, int folderId)
void insertClientId(java.lang.String clientId)
clientId
- boolean isKnownClientId(java.lang.String clientId)
clientId
- java.util.List<java.lang.Integer> getCollectionIds(java.lang.String collectionPath)
collectionPath
- void setFolderSyncVersions(FolderSyncVersions versions)
java.util.Map<java.lang.String,java.lang.String> getFolderSyncVersions(Account account)
Copyright © 2021. All Rights Reserved.