public interface ISyncStorage
Modifier and Type | Method and Description |
---|---|
CollectionId |
createFolder(BackendSession bs,
ItemDataType type,
java.lang.String folderName)
Create + autosubscription
|
boolean |
deleteFolder(BackendSession bs,
ItemDataType type,
HierarchyNode node) |
long |
findLastHeartbeat(DeviceId deviceId) |
java.util.Map<java.lang.String,java.lang.String> |
getFolderSyncVersions(Account account) |
HierarchyNode |
getHierarchyNode(BackendSession bs,
CollectionId collectionId) |
HierarchyNode |
getHierarchyNode(java.lang.String domainUid,
java.lang.String userUid,
java.lang.String nodeUid) |
MailFolder |
getMailFolder(BackendSession bs,
CollectionId collectionId) |
MailFolder |
getMailFolderByName(BackendSession bs,
java.lang.String name) |
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
|
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 |
setFolderSyncVersions(FolderSyncVersions versions) |
boolean |
updateFolder(BackendSession bs,
ItemDataType type,
HierarchyNode node,
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()
HierarchyNode getHierarchyNode(java.lang.String domainUid, java.lang.String userUid, java.lang.String nodeUid) throws CollectionNotFoundException
CollectionNotFoundException
HierarchyNode getHierarchyNode(BackendSession bs, CollectionId collectionId) throws CollectionNotFoundException
CollectionNotFoundException
MailFolder getMailFolder(BackendSession bs, CollectionId collectionId) throws CollectionNotFoundException
CollectionNotFoundException
MailFolder getMailFolderByName(BackendSession bs, java.lang.String name) throws CollectionNotFoundException
CollectionNotFoundException
CollectionId createFolder(BackendSession bs, ItemDataType type, java.lang.String folderName)
bs
- folderName
- boolean deleteFolder(BackendSession bs, ItemDataType type, HierarchyNode node)
boolean updateFolder(BackendSession bs, ItemDataType type, HierarchyNode node, java.lang.String folderName)
boolean needReset(BackendSession bs)
void resetFolder(BackendSession bs)
void insertClientId(java.lang.String clientId)
clientId
- boolean isKnownClientId(java.lang.String clientId)
clientId
- void setFolderSyncVersions(FolderSyncVersions versions)
java.util.Map<java.lang.String,java.lang.String> getFolderSyncVersions(Account account)
Copyright © 2021. All Rights Reserved.