public class CoreConnect
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
protected ISyncStorage |
storage |
Modifier | Constructor and Description |
---|---|
protected |
CoreConnect(ISyncStorage storage) |
Modifier and Type | Method and Description |
---|---|
IAddressBook |
getAddressbookService(BackendSession bs,
java.lang.String containerUid) |
ICalendar |
getCalendarService(BackendSession bs,
java.lang.String containerUid) |
protected java.lang.String |
getContainerUid(java.lang.String serverId) |
BMFolder |
getFolder(java.lang.Integer collectionId) |
protected ItemChangeReference |
getItemChange(java.lang.Integer collectionId,
java.lang.String uid,
ItemDataType type,
ChangeType changeType) |
protected java.lang.String |
getItemUid(java.lang.String serverId)
returns itemUid from colletionId:itemUid
|
java.lang.String |
getServerId(java.lang.Integer collectionId,
java.lang.String clientId)
returns collectionId:clientId
|
<T> T |
getService(BackendSession bs,
java.lang.Class<T> klass,
java.lang.String... params) |
<T> T |
getService(java.lang.String coreUrl,
java.lang.String token,
java.lang.Class<T> klass,
java.lang.String... params) |
ITodoList |
getTodoListService(BackendSession bs,
java.lang.String containerUid) |
protected org.slf4j.Logger logger
protected ISyncStorage storage
protected CoreConnect(ISyncStorage storage)
public ICalendar getCalendarService(BackendSession bs, java.lang.String containerUid) throws ServerFault
bs
- containerUid
- ServerFault
public IAddressBook getAddressbookService(BackendSession bs, java.lang.String containerUid) throws ServerFault
bs
- containerUid
- ServerFault
public <T> T getService(BackendSession bs, java.lang.Class<T> klass, java.lang.String... params) throws ServerFault
ServerFault
public <T> T getService(java.lang.String coreUrl, java.lang.String token, java.lang.Class<T> klass, java.lang.String... params) throws ServerFault
coreUrl
- token
- klass
- params
- ServerFault
public ITodoList getTodoListService(BackendSession bs, java.lang.String containerUid) throws ServerFault
bs
- containerUid
- ServerFault
protected ItemChangeReference getItemChange(java.lang.Integer collectionId, java.lang.String uid, ItemDataType type, ChangeType changeType)
public BMFolder getFolder(java.lang.Integer collectionId) throws ActiveSyncException
ActiveSyncException
public java.lang.String getServerId(java.lang.Integer collectionId, java.lang.String clientId) throws ActiveSyncException
collectionId
- clientId
- ActiveSyncException
protected java.lang.String getItemUid(java.lang.String serverId)
serverId
- protected java.lang.String getContainerUid(java.lang.String serverId)
collectionPath
- Copyright © 2021. All Rights Reserved.