Module: Tilia::Dav::IExtendedCollection

Includes:
ICollection
Included in:
CalDav::CalendarHome, CardDav::AddressBookHome, Tilia::DavAcl::PrincipalCollection
Defined in:
lib/tilia/dav/i_extended_collection.rb

Overview

The IExtendedCollection interface.

This interface can be used to create special-type of collection-resources as defined by RFC 5689.

Instance Method Summary collapse

Methods included from ICollection

#child, #child_exists, #children, #create_directory, #create_file

Methods included from INode

#delete, #last_modified, #name, #name=

Instance Method Details

#create_extended_collection(name, mkCol) ⇒ Object

Creates a new collection.

This method will receive a MkCol object with all the information about the new collection that’s being created.

The MkCol object contains information about the resourceType of the new collection. If you don’t support the specified resourceType, you should throw ExceptionInvalidResourceType.

The object also contains a list of WebDAV properties for the new collection.

You should call the handle() method on this object to specify exactly which properties you are storing. This allows the system to figure out exactly which properties you didn’t store, which in turn allows other plugins (such as the propertystorage plugin) to handle storing the property for you.

Parameters:

  • string

    name

  • MkCol

    mkCol

Returns:

  • void



32
33
# File 'lib/tilia/dav/i_extended_collection.rb', line 32

def create_extended_collection(name, mkCol)
end