module Tilia::CalDav::Backend::NotificationSupport

Adds caldav notification support to a backend.

Note: This feature is experimental, and may change in between different SabreDAV versions.

Notifications are defined at: svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk/doc/Extensions/caldav-notifications.txt

These notifications are basically a list of server-generated notifications displayed to the user. Users can dismiss notifications by deleting them.

The primary usecase is to allow for calendar-sharing.

Public Instance Methods

delete_notification(principal_uri, notification) click to toggle source

This deletes a specific notifcation.

This may be called by a client once it deems a notification handled.

@param string principal_uri @param NotificationInterface notification @return void

# File lib/tilia/cal_dav/backend/notification_support.rb, line 33
def delete_notification(principal_uri, notification)
end
notifications_for_principal(principal_uri) click to toggle source

Returns a list of notifications for a given principal url.

@param string principal_uri @return NotificationInterface[]

# File lib/tilia/cal_dav/backend/notification_support.rb, line 23
def notifications_for_principal(principal_uri)
end