Class NotificationsInfo

java.lang.Object
org.bedework.calfacade.util.NotificationsInfo

public class NotificationsInfo extends Object
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 Details

    • added

      public static String added(String currentAuth, BwEvent ev)
      Parameters:
      currentAuth - authenticated principal
      ev - the event
      Returns:
      Info for single added event.
    • deleted

      public static String deleted(String currentAuth, BwEvent ev)
      Parameters:
      currentAuth - authenticated principal
      ev - the event
      Returns:
      Info for single deleted event.
    • updated

      public static String updated(String currentAuth, BwEvent ev)
      Parameters:
      currentAuth - authenticated principal
      ev - 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 principal
      ev - 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 principal
      ev - 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 principal
      ev - the event
      Returns:
      resource updated notification.