public class CoreConnect
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
CoreConnect() |
Modifier and Type | Method and Description |
---|---|
IAddressBook |
getAddressbookService(BackendSession bs,
java.lang.String containerUid) |
<T> T |
getAdmin0Service(BackendSession bs,
java.lang.Class<T> klass,
java.lang.String... params) |
ICalendar |
getCalendarService(BackendSession bs,
java.lang.String containerUid) |
IMailboxFolders |
getIMailboxFoldersService(BackendSession bs,
CollectionId collectionId) |
protected ItemChangeReference |
getItemChange(CollectionId collectionId,
long id,
ItemDataType type,
ChangeType changeType) |
protected java.lang.Long |
getItemId(java.lang.String serverId)
returns itemId from colletionId:itemId
|
IMailboxItems |
getMailboxItemsService(BackendSession bs,
java.lang.String mailboxUid) |
<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) |
public IMailboxFolders getIMailboxFoldersService(BackendSession bs, CollectionId collectionId)
public IMailboxItems getMailboxItemsService(BackendSession bs, java.lang.String mailboxUid)
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 <T> T getAdmin0Service(BackendSession bs, java.lang.Class<T> klass, java.lang.String... params) throws ServerFault
T
- bs
- klass
- params
- ServerFault
public ITodoList getTodoListService(BackendSession bs, java.lang.String containerUid) throws ServerFault
bs
- containerUid
- ServerFault
protected ItemChangeReference getItemChange(CollectionId collectionId, long id, ItemDataType type, ChangeType changeType)
protected java.lang.Long getItemId(java.lang.String serverId)
serverId
- Copyright © 2021. All Rights Reserved.