public class SyncStorage extends java.lang.Object implements ISyncStorage
Constructor and Description |
---|
SyncStorage() |
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 value) |
void |
updateLastSync(BackendSession bs)
Update device lastSync
|
public java.lang.String getSystemConf(java.lang.String key)
ISyncStorage
getSystemConf
in interface ISyncStorage
public java.util.List<java.lang.String> getWipedDevices()
getWipedDevices
in interface ISyncStorage
public void updateLastSync(BackendSession bs)
ISyncStorage
updateLastSync
in interface ISyncStorage
public long findLastHeartbeat(DeviceId deviceId)
findLastHeartbeat
in interface ISyncStorage
public void updateLastHearbeat(DeviceId deviceId, long value)
updateLastHearbeat
in interface ISyncStorage
public HierarchyNode getHierarchyNode(java.lang.String domainUid, java.lang.String userUid, java.lang.String nodeUid) throws CollectionNotFoundException
getHierarchyNode
in interface ISyncStorage
CollectionNotFoundException
public HierarchyNode getHierarchyNode(BackendSession bs, CollectionId collectionId) throws CollectionNotFoundException
getHierarchyNode
in interface ISyncStorage
CollectionNotFoundException
public MailFolder getMailFolder(BackendSession bs, CollectionId collectionId) throws CollectionNotFoundException
getMailFolder
in interface ISyncStorage
CollectionNotFoundException
public MailFolder getMailFolderByName(BackendSession bs, java.lang.String name) throws CollectionNotFoundException
getMailFolderByName
in interface ISyncStorage
CollectionNotFoundException
public CollectionId createFolder(BackendSession bs, ItemDataType type, java.lang.String folderName)
ISyncStorage
createFolder
in interface ISyncStorage
public boolean deleteFolder(BackendSession bs, ItemDataType type, HierarchyNode node)
deleteFolder
in interface ISyncStorage
public boolean updateFolder(BackendSession bs, ItemDataType type, HierarchyNode node, java.lang.String folderName)
updateFolder
in interface ISyncStorage
public boolean needReset(BackendSession bs)
needReset
in interface ISyncStorage
public void resetFolder(BackendSession bs)
resetFolder
in interface ISyncStorage
public void insertClientId(java.lang.String clientId)
ISyncStorage
insertClientId
in interface ISyncStorage
public boolean isKnownClientId(java.lang.String clientId)
ISyncStorage
isKnownClientId
in interface ISyncStorage
public void setFolderSyncVersions(FolderSyncVersions versions)
setFolderSyncVersions
in interface ISyncStorage
public java.util.Map<java.lang.String,java.lang.String> getFolderSyncVersions(Account account)
getFolderSyncVersions
in interface ISyncStorage
Copyright © 2021. All Rights Reserved.