module Tilia::CalDav::Backend::SchedulingSupport

Implementing this interface adds CalDAV Scheduling support to your caldav server, as defined in rfc6638.

Public Instance Methods

create_scheduling_object(principal_uri, object_uri, object_data) click to toggle source

Creates a new scheduling object. This should land in a users' inbox.

@param string principal_uri @param string object_uri @param string object_data @return void

# File lib/tilia/cal_dav/backend/scheduling_support.rb, line 52
def create_scheduling_object(principal_uri, object_uri, object_data)
end
delete_scheduling_object(principal_uri, object_uri) click to toggle source

Deletes a scheduling object from the inbox collection.

@param string principal_uri @param string object_uri @return void

# File lib/tilia/cal_dav/backend/scheduling_support.rb, line 43
def delete_scheduling_object(principal_uri, object_uri)
end
scheduling_object(principal_uri, object_uri) click to toggle source

Returns a single scheduling object for the inbox collection.

The returned array should contain the following elements:

* uri - A unique basename for the object. This will be used to
        construct a full uri.
* calendardata - The iCalendar object
* lastmodified - The last modification date. Can be an int for a unix
                 timestamp, or a PHP DateTime object.
* etag - A unique token that must change if the object changed.
* size - The size of the object, in bytes.

@param string principal_uri @param string object_uri @return array

# File lib/tilia/cal_dav/backend/scheduling_support.rb, line 23
def scheduling_object(principal_uri, object_uri)
end
scheduling_objects(principal_uri) click to toggle source

Returns all scheduling objects for the inbox collection.

These objects should be returned as an array. Every item in the array should follow the same structure as returned from getSchedulingObject.

The main difference is that 'calendardata' is optional.

@param string principal_uri @return array

# File lib/tilia/cal_dav/backend/scheduling_support.rb, line 35
def scheduling_objects(principal_uri)
end