module Tilia::Dav::Locks::Backend::BackendInterface

If you are defining your own Locks backend, you must implement this interface.

Public Instance Methods

lock(uri, lock_info) click to toggle source

Locks a uri

@param string uri @param LocksLockInfo lock_info @return bool

# File lib/tilia/dav/locks/backend/backend_interface.rb, line 27
def lock(uri, lock_info)
end
locks(uri, return_child_locks) click to toggle source

Returns a list of SabreDAVLocksLockInfo objects

This method should return all the locks for a particular uri, including locks that might be set on a parent uri.

If returnChildLocks is set to true, this method should also look for any locks in the subtree of the uri for locks.

@param string uri @param bool return_child_locks @return array

# File lib/tilia/dav/locks/backend/backend_interface.rb, line 19
def locks(uri, return_child_locks)
end
unlock(uri, lock_info) click to toggle source

Removes a lock from a uri

@param string uri @param LocksLockInfo lock_info @return bool

# File lib/tilia/dav/locks/backend/backend_interface.rb, line 35
def unlock(uri, lock_info)
end