public interface ConnectorInstance<InfoT extends BaseSubscriptionInfo>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConnectorInstance.ItemInfo
Information used to synch ends A and B
This information is only valid in the context of a given subscription.
|
static class |
ConnectorInstance.SynchItemsInfo
Status OK and no items is end of batch.
|
| Modifier and Type | Method and Description |
|---|---|
org.oasis_open.docs.ws_calendar.ns.soap.AddItemResponseType |
addItem(ietf.params.xml.ns.icalendar_2.IcalendarType val)
Add a calendar component
|
boolean |
changed()
Called before a resynch takes place to determine if the end point has
changed and needs resynch.
|
org.oasis_open.docs.ws_calendar.ns.soap.DeleteItemResponseType |
deleteItem(String uid)
Delete a calendar component.
|
org.oasis_open.docs.ws_calendar.ns.soap.FetchItemResponseType |
fetchItem(String uid)
Fetch a calendar component.
|
List<org.oasis_open.docs.ws_calendar.ns.soap.FetchItemResponseType> |
fetchItems(List<String> uids)
Fetch a batch of calendar components.
|
Connector |
getConnector() |
ConnectorInstance.SynchItemsInfo |
getItemsInfo()
Get information about items in the subscribed calendar.
|
BaseSubscriptionInfo.CrudCts |
getLastCrudCts() |
InfoT |
getSubInfo() |
BaseSubscriptionInfo.CrudCts |
getTotalCrudCts() |
org.oasis_open.docs.ws_calendar.ns.soap.BaseResponseType |
open()
Called when a subscription is activated on synch engine startup or after
creation of a new subscription.
|
void |
setLastCrudCts(BaseSubscriptionInfo.CrudCts val) |
void |
setTotalCrudCts(BaseSubscriptionInfo.CrudCts val) |
boolean |
subscribe(org.bedework.synch.wsmessages.SubscribeResponseType sr)
Do whatever is required to set up a subscription to the end point for this
connector instance.
|
boolean |
unsubscribe(org.bedework.synch.wsmessages.UnsubscribeRequestType usreq,
org.bedework.synch.wsmessages.UnsubscribeResponseType usresp)
Check to see if an unsubscribe can go ahead.
|
org.oasis_open.docs.ws_calendar.ns.soap.UpdateItemResponseType |
updateItem(org.oasis_open.docs.ws_calendar.ns.soap.UpdateItemType updates)
Update a calendar component.
|
boolean |
validateActiveSubInfo(org.bedework.synch.wsmessages.ActiveSubscriptionRequestType req,
org.oasis_open.docs.ws_calendar.ns.soap.BaseResponseType resp,
Connector cnctr,
BaseSubscriptionInfo info)
Ensure active subscription info matches the subscription
|
boolean subscribe(org.bedework.synch.wsmessages.SubscribeResponseType sr)
throws SynchException
This method should set the appropriate status if an error occurs.
the open method handles any dynamic creation of a connection to the subscribed-to service.
sr - SynchExceptionboolean unsubscribe(org.bedework.synch.wsmessages.UnsubscribeRequestType usreq,
org.bedework.synch.wsmessages.UnsubscribeResponseType usresp)
throws SynchException
This method should set the appropriate status and return false if an error occurs.
usreq - usresp - SynchExceptionboolean validateActiveSubInfo(org.bedework.synch.wsmessages.ActiveSubscriptionRequestType req,
org.oasis_open.docs.ws_calendar.ns.soap.BaseResponseType resp,
Connector cnctr,
BaseSubscriptionInfo info)
throws SynchException
req - resp - cnctr - info - SynchExceptionorg.oasis_open.docs.ws_calendar.ns.soap.BaseResponseType open()
throws SynchException
SynchExceptionConnector getConnector() throws SynchException
SynchExceptionInfoT getSubInfo() throws SynchException
SynchExceptionboolean changed()
throws SynchException
SynchExceptionvoid setLastCrudCts(BaseSubscriptionInfo.CrudCts val) throws SynchException
val - SynchExceptionBaseSubscriptionInfo.CrudCts getLastCrudCts() throws SynchException
SynchExceptionvoid setTotalCrudCts(BaseSubscriptionInfo.CrudCts val) throws SynchException
val - SynchExceptionBaseSubscriptionInfo.CrudCts getTotalCrudCts() throws SynchException
SynchExceptionConnectorInstance.SynchItemsInfo getItemsInfo() throws SynchException
SynchExceptionorg.oasis_open.docs.ws_calendar.ns.soap.AddItemResponseType addItem(ietf.params.xml.ns.icalendar_2.IcalendarType val)
throws SynchException
val - SynchExceptionorg.oasis_open.docs.ws_calendar.ns.soap.FetchItemResponseType fetchItem(String uid) throws SynchException
uid - of itemSynchExceptionList<org.oasis_open.docs.ws_calendar.ns.soap.FetchItemResponseType> fetchItems(List<String> uids) throws SynchException
uids - of itemsSynchExceptionorg.oasis_open.docs.ws_calendar.ns.soap.UpdateItemResponseType updateItem(org.oasis_open.docs.ws_calendar.ns.soap.UpdateItemType updates)
throws SynchException
updates - has the change token, href, and the component selection fields set.SynchExceptionorg.oasis_open.docs.ws_calendar.ns.soap.DeleteItemResponseType deleteItem(String uid) throws SynchException
uid - - of the component to delete.SynchExceptionCopyright © 2018 Bedework. All rights reserved.