4 * Adds caldav notification support to a backend.
6 * Notifications are defined at:
7 * http://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk/doc/Extensions/caldav-notifications.txt
9 * These notifications are basically a list of server-generated notifications
10 * displayed to the user. Users can dismiss notifications by deleting them.
12 * The primary usecase is to allow for calendar-sharing.
16 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
17 * @author Evert Pot (http://www.rooftopsolutions.nl/)
18 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
20 interface Sabre_CalDAV_Backend_NotificationSupport extends Sabre_CalDAV_Backend_BackendInterface {
23 * Returns a list of notifications for a given principal url.
25 * The returned array should only consist of implementations of
26 * Sabre_CalDAV_Notifications_INotificationType.
28 * @param string $principalUri
31 public function getNotificationsForPrincipal($principalUri);
34 * This deletes a specific notifcation.
36 * This may be called by a client once it deems a notification handled.
38 * @param string $principalUri
39 * @param Sabre_CalDAV_Notifications_INotificationType $notification
42 public function deleteNotification($principalUri, Sabre_CalDAV_Notifications_INotificationType $notification);