- Publicity: Public Only All
oacs-dav-procs.tcl
Support for tDAV Tcl webDAV implementation
- Location:
- packages/oacs-dav/tcl/oacs-dav-procs.tcl
- Created:
- 2003-09-11
- Author:
- Dave Bauer <dave@thedesignexperience.org>
- CVS Identification:
$Id: oacs-dav-procs.tcl,v 1.24.2.10 2023/07/10 09:41:44 gustafn Exp $
Procedures in this file
- oacs_dav::authorize (public)
- oacs_dav::children_have_permission_p (public)
- oacs_dav::conn (public)
- oacs_dav::conn_setup (public)
- oacs_dav::folder_enabled (public)
- oacs_dav::handle_request (public)
- oacs_dav::impl::content_folder::head (public)
- oacs_dav::item_parent_folder_id (public)
- oacs_dav::register_folder (public)
- oacs_dav::request_folder_id (public)
- oacs_dav::request_site_node (public)
- oacs_dav::set_user_id (public)
- oacs_dav::unregister_folder (public)
- oacs_dav::uri_prefix (public)
Detailed information
oacs_dav::authorize (public)
oacs_dav::authorize [ args... ]
check is user_id has permission to perform the WebDAV method on the URI
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::children_have_permission_p (public)
oacs_dav::children_have_permission_p [ -user_id user_id ] \ [ -item_id item_id ] [ -privilege privilege ]
Check permission on child items of item_id for user_id with privilege
- Switches:
- -user_id (optional)
- -item_id (optional)
- -privilege (optional)
- Returns:
- returns 0 if user does not have privilege over all children otherwise return 1
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- oacs_dav_children_have_permission_p
oacs_dav::conn (public)
oacs_dav::conn [ args... ]
shared data for WebDAV requests
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- oacs_dav_put, oacs_dav_mkcol
oacs_dav::conn_setup (public)
oacs_dav::conn_setup
Setup oacs_dav::conn, authenticate user
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::folder_enabled (public)
oacs_dav::folder_enabled [ -folder_id folder_id ]
- Switches:
- -folder_id (optional)
- Returns:
- t if folder is webdav enabled, f if not
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::handle_request (public)
oacs_dav::handle_request [ args... ]
dispatch request to the proper service contract implementation
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::impl::content_folder::head (public)
oacs_dav::impl::content_folder::head
HEAD DAV method for content folders can't get a folder
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::item_parent_folder_id (public)
oacs_dav::item_parent_folder_id uri
get the folder_id of the parent of an item from the uri
- Parameters:
- uri (required)
- Returns:
- parent_folder_id or empty string if folder does not exist
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::register_folder (public)
oacs_dav::register_folder [ -enabled_p enabled_p ] folder_id node_id
add a uri to dav support
- Switches:
- -enabled_p (optional, defaults to
"t"
)- Parameters:
- folder_id (required)
- node_id (required)
- Register a root WebDAV enabled folder for a site node_id All requests that resolve to this site node id will be checked for WebDAV content using this folder as the root. Only one folder per node_id can be registered.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- oacs_dav_put, oacs_dav_mkcol
oacs_dav::request_folder_id (public)
oacs_dav::request_folder_id node_id
resolves a node_id to a DAV enabled folder_id
- Parameters:
- node_id (required)
- site node_id of request
- Returns:
- folder_id, or empty string if no folder exists in dav_package_folder_map for this node_id
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::request_site_node (public)
oacs_dav::request_site_node uri
resolves uri to a site node_id
- Parameters:
- uri (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::set_user_id (public)
oacs_dav::set_user_id
set user_id based on authentication header
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::unregister_folder (public)
oacs_dav::unregister_folder folder_id node_id
remove a uri from dav support
- Parameters:
- folder_id (required)
- node_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
oacs_dav::uri_prefix (public)
oacs_dav::uri_prefix
- Returns:
- URI prefix to use for WebDAV requests
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.