• Publicity: Public Only All

tDAV-procs.tcl


Procedures in this file

Detailed information

tdav::check_lock (public)

 tdav::check_lock uri

Check whether the request may proceed under the resource's WebDAV lock. Remove an expired lock. If an active lock has no matching token in the If header, send HTTP 423.

Parameters:
uri (required)
Resource URI.
Returns:
unlocked if the request may proceed, or filter_return after HTTP 423.

Partial Call Graph (max 5 caller/called nodes):
fs::impl::fs_object::put fs::impl::fs_object::put (private) tdav::check_lock tdav::check_lock fs::impl::fs_object::put->tdav::check_lock oacs_dav::impl::content_folder::copy oacs_dav::impl::content_folder::copy (private) oacs_dav::impl::content_folder::copy->tdav::check_lock oacs_dav::impl::content_folder::delete oacs_dav::impl::content_folder::delete (private) oacs_dav::impl::content_folder::delete->tdav::check_lock oacs_dav::impl::content_folder::lock oacs_dav::impl::content_folder::lock (private) oacs_dav::impl::content_folder::lock->tdav::check_lock oacs_dav::impl::content_folder::move oacs_dav::impl::content_folder::move (private) oacs_dav::impl::content_folder::move->tdav::check_lock tdav::get_lock_file tdav::get_lock_file (public) tdav::check_lock->tdav::get_lock_file tdav::lock_timeout_left tdav::lock_timeout_left (private) tdav::check_lock->tdav::lock_timeout_left tdav::read_lock tdav::read_lock (private) tdav::check_lock->tdav::read_lock tdav::remove_lock tdav::remove_lock (public) tdav::check_lock->tdav::remove_lock

Testcases:
No testcase defined.

tdav::check_lock_for_unlock (public)

 tdav::check_lock_for_unlock uri

Check the Lock-Token header against the stored lock for an UNLOCK request.

Parameters:
uri (required)
Resource URI.
Returns:
unlocked if the token matches or no lock exists, or filter_return if the token is missing or does not match.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::unlock oacs_dav::impl::content_folder::unlock (private) tdav::check_lock_for_unlock tdav::check_lock_for_unlock oacs_dav::impl::content_folder::unlock->tdav::check_lock_for_unlock oacs_dav::impl::content_revision::unlock oacs_dav::impl::content_revision::unlock (private) oacs_dav::impl::content_revision::unlock->tdav::check_lock_for_unlock tdav::get_lock_file tdav::get_lock_file (public) tdav::check_lock_for_unlock->tdav::get_lock_file tdav::read_lock tdav::read_lock (private) tdav::check_lock_for_unlock->tdav::read_lock

Testcases:
No testcase defined.

tdav::conn (public)

 tdav::conn [ args... ]

Read or write tDAV request state. A read falls back to ns_conn when no tDAV value is set for the requested field.

Returns:
The value read or stored.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::lock oacs_dav::impl::content_folder::lock (private) tdav::conn tdav::conn oacs_dav::impl::content_folder::lock->tdav::conn oacs_dav::impl::content_revision::lock oacs_dav::impl::content_revision::lock (private) oacs_dav::impl::content_revision::lock->tdav::conn

Testcases:
No testcase defined.

tdav::copy_props (public)

 tdav::copy_props uri newuri

Copy persistent user properties from one resource to another.

Parameters:
uri (required)
Source resource URI.
newuri (required)
Destination resource URI.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::copy oacs_dav::impl::content_folder::copy (private) tdav::copy_props tdav::copy_props oacs_dav::impl::content_folder::copy->tdav::copy_props oacs_dav::impl::content_folder::move oacs_dav::impl::content_folder::move (private) oacs_dav::impl::content_folder::move->tdav::copy_props oacs_dav::impl::content_revision::copy oacs_dav::impl::content_revision::copy (private) oacs_dav::impl::content_revision::copy->tdav::copy_props oacs_dav::impl::content_revision::move oacs_dav::impl::content_revision::move (private) oacs_dav::impl::content_revision::move->tdav::copy_props ad_get_client_property ad_get_client_property (public) tdav::copy_props->ad_get_client_property ad_set_client_property ad_set_client_property (public) tdav::copy_props->ad_set_client_property

Testcases:
No testcase defined.

tdav::delete_props (public)

 tdav::delete_props uri

Clear the persistent user properties for a resource.

Parameters:
uri (required)
Resource URI.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::delete oacs_dav::impl::content_folder::delete (private) tdav::delete_props tdav::delete_props oacs_dav::impl::content_folder::delete->tdav::delete_props oacs_dav::impl::content_folder::move oacs_dav::impl::content_folder::move (private) oacs_dav::impl::content_folder::move->tdav::delete_props oacs_dav::impl::content_revision::delete oacs_dav::impl::content_revision::delete (private) oacs_dav::impl::content_revision::delete->tdav::delete_props oacs_dav::impl::content_revision::move oacs_dav::impl::content_revision::move (private) oacs_dav::impl::content_revision::move->tdav::delete_props ad_set_client_property ad_set_client_property (public) tdav::delete_props->ad_set_client_property

Testcases:
No testcase defined.

tdav::get_lock_file (public)

 tdav::get_lock_file uri

Return the path to the lock file for a resource, creating its parent directory if needed. Use the configured lockdir or the default lockdir next to the page root.

Parameters:
uri (required)
Resource URI.
Returns:
Lock file path.

Partial Call Graph (max 5 caller/called nodes):
fs::impl::fs_object::put fs::impl::fs_object::put (private) tdav::get_lock_file tdav::get_lock_file fs::impl::fs_object::put->tdav::get_lock_file oacs_dav::impl::content_revision::put oacs_dav::impl::content_revision::put (private) oacs_dav::impl::content_revision::put->tdav::get_lock_file tdav::check_lock tdav::check_lock (public) tdav::check_lock->tdav::get_lock_file tdav::check_lock_for_unlock tdav::check_lock_for_unlock (public) tdav::check_lock_for_unlock->tdav::get_lock_file tdav::read_lock tdav::read_lock (private) tdav::read_lock->tdav::get_lock_file

Testcases:
No testcase defined.

tdav::get_user_props (public)

 tdav::get_user_props uri depth prop_req

Read all stored user properties for a resource.

Parameters:
uri (required)
Resource URI.
depth (required)
Requested traversal depth. Accepted but unused.
prop_req (required)
Requested property selection. Accepted but unused.
Returns:
A list of property key and value pairs.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::propfind oacs_dav::impl::content_folder::propfind (private) tdav::get_user_props tdav::get_user_props oacs_dav::impl::content_folder::propfind->tdav::get_user_props oacs_dav::impl::content_revision::propfind oacs_dav::impl::content_revision::propfind (private) oacs_dav::impl::content_revision::propfind->tdav::get_user_props tdav::dbm_read_list tdav::dbm_read_list (private) tdav::get_user_props->tdav::dbm_read_list

Testcases:
No testcase defined.

tdav::remove_lock (public)

 tdav::remove_lock uri

Delete the stored lock file for a resource.

Parameters:
uri (required)
Resource URI.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::delete oacs_dav::impl::content_folder::delete (private) tdav::remove_lock tdav::remove_lock oacs_dav::impl::content_folder::delete->tdav::remove_lock oacs_dav::impl::content_folder::move oacs_dav::impl::content_folder::move (private) oacs_dav::impl::content_folder::move->tdav::remove_lock oacs_dav::impl::content_folder::unlock oacs_dav::impl::content_folder::unlock (private) oacs_dav::impl::content_folder::unlock->tdav::remove_lock oacs_dav::impl::content_revision::delete oacs_dav::impl::content_revision::delete (private) oacs_dav::impl::content_revision::delete->tdav::remove_lock oacs_dav::impl::content_revision::move oacs_dav::impl::content_revision::move (private) oacs_dav::impl::content_revision::move->tdav::remove_lock tdav::get_lock_file tdav::get_lock_file (public) tdav::remove_lock->tdav::get_lock_file

Testcases:
No testcase defined.

tdav::respond (public)

 tdav::respond response

Send a WebDAV response. Format the response for the current HTTP method, with a plain text response for HTTP 423.

Parameters:
response (required)
List starting with the HTTP status code, followed by method-specific response data.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::handle_request oacs_dav::handle_request (public) tdav::respond tdav::respond oacs_dav::handle_request->tdav::respond

Testcases:
No testcase defined.

tdav::set_lock (public)

 tdav::set_lock uri depth type scope owner [ timeout ] [ locktime ]

Create and store a WebDAV lock for a resource.

Parameters:
uri (required)
Resource URI.
depth (required)
Lock depth.
type (required)
Lock type.
scope (required)
Lock scope.
owner (required)
Lock owner.
timeout (optional)
Lock lifetime. An empty value uses the configured default.
locktime (optional)
Lock creation time. An empty value uses the current time.
Returns:
The generated lock token.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::lock oacs_dav::impl::content_folder::lock (private) tdav::set_lock tdav::set_lock oacs_dav::impl::content_folder::lock->tdav::set_lock oacs_dav::impl::content_revision::lock oacs_dav::impl::content_revision::lock (private) oacs_dav::impl::content_revision::lock->tdav::set_lock tdav::write_lock tdav::write_lock (private) tdav::set_lock->tdav::write_lock

Testcases:
No testcase defined.

tdav::update_user_props (public)

 tdav::update_user_props uri prop_req

Apply set and remove operations to a resource's stored user properties.

Parameters:
uri (required)
Resource URI.
prop_req (required)
Alternating action and property records. Each property record contains a namespace/name key and a value.
Returns:
A list of HTTP status and property key pairs.

Partial Call Graph (max 5 caller/called nodes):
oacs_dav::impl::content_folder::proppatch oacs_dav::impl::content_folder::proppatch (private) tdav::update_user_props tdav::update_user_props oacs_dav::impl::content_folder::proppatch->tdav::update_user_props oacs_dav::impl::content_revision::proppatch oacs_dav::impl::content_revision::proppatch (private) oacs_dav::impl::content_revision::proppatch->tdav::update_user_props tdav::dbm_read_list tdav::dbm_read_list (private) tdav::update_user_props->tdav::dbm_read_list tdav::dbm_write_list tdav::dbm_write_list (private) tdav::update_user_props->tdav::dbm_write_list

Testcases:
No testcase defined.
[ show source ]