oacs_dav::impl::content_folder::lock (private)

 oacs_dav::impl::content_folder::lock

Defined in packages/oacs-dav/tcl/oacs-dav-procs.tcl

LOCK DAV method for generic content folder

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.dav.lock.content_folder AcsSc.dav.lock.content_folder (private) oacs_dav::impl::content_folder::lock oacs_dav::impl::content_folder::lock AcsSc.dav.lock.content_folder->oacs_dav::impl::content_folder::lock oacs_dav::conn oacs_dav::conn (public) oacs_dav::impl::content_folder::lock->oacs_dav::conn parameter::get_from_package_key parameter::get_from_package_key (public) oacs_dav::impl::content_folder::lock->parameter::get_from_package_key tdav::check_lock tdav::check_lock oacs_dav::impl::content_folder::lock->tdav::check_lock tdav::conn tdav::conn oacs_dav::impl::content_folder::lock->tdav::conn tdav::set_lock tdav::set_lock oacs_dav::impl::content_folder::lock->tdav::set_lock

Testcases:
No testcase defined.
Source code:
    set uri [oacs_dav::conn uri]
    set owner [oacs_dav::conn lock_owner]
    set scope [oacs_dav::conn lock_scope]
    set type [oacs_dav::conn lock_type]

    if {"unlocked" ne [tdav::check_lock $uri] } {
        set ret_code 423

        set response [list $ret_code]
    } else {
        set depth [tdav::conn depth]
        set timeout [tdav::conn lock_timeout]
        if {$timeout eq ""} {
            set timeout [parameter::get_from_package_key -parameter "DefaultLockTimeout" -package_key "oacs-dav" -default "300"]
        }
        set token [tdav::set_lock $uri $depth $type $scope $owner $timeout]
        set ret_code 200
        set response [list $ret_code [list depth $depth token $token timeout $timeout owner $owner scope $scope type $type]]
    }
    return $response
Generic XQL file:
packages/oacs-dav/tcl/oacs-dav-procs.xql

PostgreSQL XQL file:
packages/oacs-dav/tcl/oacs-dav-procs-postgresql.xql

Oracle XQL file:
packages/oacs-dav/tcl/oacs-dav-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: