Class Notification<NI extends Notification.NotificationItem>
- Type Parameters:
NI-
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.
- Author:
- douglm
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNotification(String subscriptionId) Create a notification for an unsubscribeNotification(Subscription sub) Create a notification for a subscriptionNotification(Subscription sub, org.bedework.synch.wsmessages.SubscribeResponseType response) Create a new subscription objectNotification(Subscription sub, org.bedework.synch.wsmessages.SubscriptionStatusRequestType request, org.bedework.synch.wsmessages.SubscriptionStatusResponseType response) Create a new subscription status objectNotification(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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationItem(NI val) org.bedework.synch.wsmessages.SynchEndTypegetEnd()getSub()Our generated subscriptionId.toString()protected void
-
Constructor Details
-
Notification
Create a notification for an unsubscribe- Parameters:
subscriptionId- id to unsubscribe
-
Method Details
-
getSub
- Returns:
- Subscription
-
getSubscriptionId
Our generated subscriptionId.- Returns:
- String
-
getEnd
public org.bedework.synch.wsmessages.SynchEndType getEnd()- Returns:
- end designator
-
getNotifications
- Returns:
- notifications
-
addNotificationItem
- Parameters:
val- notification
-
toStringSegment
-
toString
-