Module: Tilia::CalDav::Backend::NotificationSupport

Includes:
BackendInterface
Included in:
SharingSupport
Defined in:
lib/tilia/cal_dav/backend/notification_support.rb

Overview

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.

Instance Method Summary collapse

Methods included from BackendInterface

#calendar_object, #calendar_object_by_uid, #calendar_objects, #calendar_query, #calendars_for_user, #create_calendar, #create_calendar_object, #delete_calendar, #delete_calendar_object, #multiple_calendar_objects, #update_calendar, #update_calendar_object

Instance Method Details

#delete_notification(principal_uri, notification) ⇒ Object

This deletes a specific notifcation.

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

Parameters:

  • string

    principal_uri

  • NotificationInterface

    notification

Returns:

  • void



33
34
# File 'lib/tilia/cal_dav/backend/notification_support.rb', line 33

def delete_notification(principal_uri, notification)
end

#notifications_for_principal(principal_uri) ⇒ Object

Returns a list of notifications for a given principal url.

Parameters:

  • string

    principal_uri

Returns:

  • NotificationInterface[]



23
24
# File 'lib/tilia/cal_dav/backend/notification_support.rb', line 23

def notifications_for_principal(principal_uri)
end