Package org.bedework.calfacade.util
Class NotificationsInfo
java.lang.Object
org.bedework.calfacade.util.NotificationsInfo
Generate change notification messages from event and other information.
Output is an XML object following the Apple extensions.
Call open first, then one or more of the methods describing changes, followed by a call to close which returns the entire XML body.
- Author:
- douglm
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic org.bedework.caldav.util.notifications.ResourceChangeTypeCall for an added eventstatic org.bedework.caldav.util.notifications.ResourceChangeTypegetDeleted(String currentAuth, BwEvent ev) Call for a deleted eventstatic org.bedework.caldav.util.notifications.ResourceChangeTypegetUpdated(String currentAuth, BwEvent ev) Call for an updated event.static String
-
Method Details
-
added
- Parameters:
currentAuth- authenticated principalev- the event- Returns:
- Info for single added event.
-
deleted
- Parameters:
currentAuth- authenticated principalev- the event- Returns:
- Info for single deleted event.
-
updated
- Parameters:
currentAuth- authenticated principalev- the event- Returns:
- Info for single updated event.
-
getDeleted
public static org.bedework.caldav.util.notifications.ResourceChangeType getDeleted(String currentAuth, BwEvent ev) Call for a deleted event- Parameters:
currentAuth- authenticated principalev- the event- Returns:
- resource deleted notification.
-
getAdded
public static org.bedework.caldav.util.notifications.ResourceChangeType getAdded(String currentAuth, BwEvent ev) Call for an added event- Parameters:
currentAuth- authenticated principalev- the event- Returns:
- resource created notification.
-
getUpdated
public static org.bedework.caldav.util.notifications.ResourceChangeType getUpdated(String currentAuth, BwEvent ev) Call for an updated event.- Parameters:
currentAuth- authenticated principalev- the event- Returns:
- resource updated notification.
-