Package org.bedework.synch.shared
Class Notification.NotificationItem
- java.lang.Object
-
- org.bedework.synch.shared.Notification.NotificationItem
-
- Enclosing class:
- Notification<NI extends Notification.NotificationItem>
public static class Notification.NotificationItem extends Object
- Author:
- douglm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotification.NotificationItem.ActionType
-
Constructor Summary
Constructors Constructor Description NotificationItem(Notification.NotificationItem.ActionType action)Create a notification item for an action.NotificationItem(Notification.NotificationItem.ActionType action, ietf.params.xml.ns.icalendar_2.IcalendarType ical, String uid)Create a notification item for an action.NotificationItem(org.bedework.synch.wsmessages.SubscribeResponseType subResponse)Create a notification item for a new subscription.NotificationItem(org.bedework.synch.wsmessages.SubscriptionStatusRequestType subStatusReq, org.bedework.synch.wsmessages.SubscriptionStatusResponseType subStatusResponse)Create a notification item for status.NotificationItem(org.bedework.synch.wsmessages.UnsubscribeRequestType unsubRequest, org.bedework.synch.wsmessages.UnsubscribeResponseType unsubResponse)Create a notification item for unsubscribe.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Notification.NotificationItem.ActionTypegetAction()ietf.params.xml.ns.icalendar_2.IcalendarTypegetIcal()org.bedework.synch.wsmessages.SubscribeResponseTypegetSubResponse()org.bedework.synch.wsmessages.SubscriptionStatusRequestTypegetSubStatusReq()org.bedework.synch.wsmessages.SubscriptionStatusResponseTypegetSubStatusResponse()StringgetUid()org.bedework.synch.wsmessages.UnsubscribeRequestTypegetUnsubRequest()org.bedework.synch.wsmessages.UnsubscribeResponseTypegetUnsubResponse()StringtoString()protected voidtoStringSegment(StringBuilder sb)
-
-
-
Constructor Detail
-
NotificationItem
public NotificationItem(Notification.NotificationItem.ActionType action)
Create a notification item for an action.- Parameters:
action- for notification
-
NotificationItem
public NotificationItem(Notification.NotificationItem.ActionType action, ietf.params.xml.ns.icalendar_2.IcalendarType ical, String uid)
Create a notification item for an action.- Parameters:
action- for notificationical- - the entity if availableuid- - Uid for the entity if entity not available
-
NotificationItem
public NotificationItem(org.bedework.synch.wsmessages.SubscribeResponseType subResponse)
Create a notification item for a new subscription.- Parameters:
subResponse- to the subscribe
-
NotificationItem
public NotificationItem(org.bedework.synch.wsmessages.UnsubscribeRequestType unsubRequest, org.bedework.synch.wsmessages.UnsubscribeResponseType unsubResponse)Create a notification item for unsubscribe.- Parameters:
unsubRequest- to unsubscribeunsubResponse- to the unsubscribe
-
NotificationItem
public NotificationItem(org.bedework.synch.wsmessages.SubscriptionStatusRequestType subStatusReq, org.bedework.synch.wsmessages.SubscriptionStatusResponseType subStatusResponse)Create a notification item for status.- Parameters:
subStatusReq- for statussubStatusResponse- to the status request
-
-
Method Detail
-
getAction
public Notification.NotificationItem.ActionType getAction()
- Returns:
- the action
-
getIcal
public ietf.params.xml.ns.icalendar_2.IcalendarType getIcal()
- Returns:
- the icalendar entity we were notified about
-
getUid
public String getUid()
- Returns:
- the uid of the icalendar entity we were notified about
-
getSubResponse
public org.bedework.synch.wsmessages.SubscribeResponseType getSubResponse()
- Returns:
- response to a notification item
-
getUnsubRequest
public org.bedework.synch.wsmessages.UnsubscribeRequestType getUnsubRequest()
- Returns:
- request leading to a notification item
-
getUnsubResponse
public org.bedework.synch.wsmessages.UnsubscribeResponseType getUnsubResponse()
- Returns:
- response to a notification item
-
getSubStatusReq
public org.bedework.synch.wsmessages.SubscriptionStatusRequestType getSubStatusReq()
- Returns:
- request leading to a notification item
-
getSubStatusResponse
public org.bedework.synch.wsmessages.SubscriptionStatusResponseType getSubStatusResponse()
- Returns:
- response to a notification item
-
toStringSegment
protected void toStringSegment(StringBuilder sb)
-
-