NI - public class Notification<NI extends Notification.NotificationItem> extends Object
The system can handle notifications of changes as defined by ActionType below. Connectors set up their remote service to notify the synch engine via the web callback service. These incoming notifications are system specific.
On receipt, a connector instance is located and creates a notification which is a subclass of this class. That object will be used to activate a synchling.
Some systems will send multiple notifications for the same entity. Each object of this class will contain a list of notification items. Presumably these reflect activity since the last notification.
Each notification item defines an action along with a uid and a possible calendar entity. The uid is required as a key as it is the only value which is guaranteed to be available at both ends.
We assume that any change to any part of a recurring event master or overrides will result in synching the whole entity.
| Modifier and Type | Class and Description |
|---|---|
static class |
Notification.NotificationItem |
| Constructor and Description |
|---|
Notification(Notification.NotificationItem.ActionType action) |
Notification(String subscriptionId)
Create a notification for an unsubscribe
|
Notification(Subscription sub)
Create a notification for a subscription
|
Notification(Subscription sub,
org.bedework.synch.wsmessages.SubscribeResponseType response)
Create a new subscription object
|
Notification(Subscription sub,
org.bedework.synch.wsmessages.SubscriptionStatusRequestType request,
org.bedework.synch.wsmessages.SubscriptionStatusResponseType response)
Create a new subscription status object
|
Notification(Subscription sub,
org.bedework.synch.wsmessages.SynchEndType end)
Create object with a single notification.
|
Notification(Subscription sub,
org.bedework.synch.wsmessages.SynchEndType end,
NI notificationItem)
Create object with a single notification.
|
Notification(Subscription sub,
org.bedework.synch.wsmessages.UnsubscribeRequestType request,
org.bedework.synch.wsmessages.UnsubscribeResponseType response)
Create a new unsubscription object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationItem(NI val) |
org.bedework.synch.wsmessages.SynchEndType |
getEnd() |
List<NI> |
getNotifications() |
Subscription |
getSub() |
String |
getSubscriptionId()
Our generated subscriptionId.
|
String |
toString() |
protected void |
toStringSegment(StringBuilder sb) |
public Notification(Subscription sub)
sub - subscriptionpublic Notification(String subscriptionId)
subscriptionId - id to unsubscribepublic Notification(Subscription sub, org.bedework.synch.wsmessages.SynchEndType end)
sub - subscriptionend - which endpublic Notification(Subscription sub, org.bedework.synch.wsmessages.SynchEndType end, NI notificationItem)
sub - subscriptionend - which endnotificationItem - the notificationpublic Notification(Subscription sub, org.bedework.synch.wsmessages.SubscribeResponseType response)
sub - subscriptionresponse - and the responsepublic Notification(Subscription sub, org.bedework.synch.wsmessages.UnsubscribeRequestType request, org.bedework.synch.wsmessages.UnsubscribeResponseType response)
sub - subscriptionrequest - unsubscriberesponse - and the responsepublic Notification(Subscription sub, org.bedework.synch.wsmessages.SubscriptionStatusRequestType request, org.bedework.synch.wsmessages.SubscriptionStatusResponseType response)
sub - subscriptionrequest - for statusresponse - and the responsepublic Notification(Notification.NotificationItem.ActionType action)
action - for notificationpublic Subscription getSub()
public String getSubscriptionId()
public org.bedework.synch.wsmessages.SynchEndType getEnd()
public void addNotificationItem(NI val)
val - notificationprotected void toStringSegment(StringBuilder sb)
Copyright © 2018 Bedework. All rights reserved.