site_node::unmount (public)

 site_node::unmount -node_id node_id

Defined in packages/acs-tcl/tcl/site-nodes-procs.tcl

unmount an object from the site node

Switches:
-node_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_path_resolve path_resolve (test xowiki) site_node::unmount site_node::unmount test_path_resolve->site_node::unmount test_site_node_update_cache site_node_update_cache (test acs-tcl) test_site_node_update_cache->site_node::unmount test_slot_interactions slot_interactions (test xowiki) test_slot_interactions->site_node::unmount test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->site_node::unmount apm_invoke_callback_proc apm_invoke_callback_proc (public) site_node::unmount->apm_invoke_callback_proc apm_package_key_from_id apm_package_key_from_id (public) site_node::unmount->apm_package_key_from_id db_dml db_dml (public) site_node::unmount->db_dml site_node::get_object_id site_node::get_object_id (public) site_node::unmount->site_node::get_object_id site_node::get_url site_node::get_url (public) site_node::unmount->site_node::get_url apm_package_delete apm_package_delete (public) apm_package_delete->site_node::unmount packages/acs-subsite/www/admin/applications/application-delete.tcl packages/acs-subsite/ www/admin/applications/application-delete.tcl packages/acs-subsite/www/admin/applications/application-delete.tcl->site_node::unmount packages/acs-subsite/www/admin/site-map/instance-delete.tcl packages/acs-subsite/ www/admin/site-map/instance-delete.tcl packages/acs-subsite/www/admin/site-map/instance-delete.tcl->site_node::unmount packages/acs-subsite/www/admin/site-map/unmount.tcl packages/acs-subsite/ www/admin/site-map/unmount.tcl packages/acs-subsite/www/admin/site-map/unmount.tcl->site_node::unmount packages/edit-this-page/www/etp-trash.tcl packages/edit-this-page/ www/etp-trash.tcl packages/edit-this-page/www/etp-trash.tcl->site_node::unmount

Testcases:
site_node_update_cache, xowiki_test_cases, slot_interactions, path_resolve
Source code:
    set package_id [get_object_id -node_id $node_id]
    set package_key [apm_package_key_from_id $package_id]

    if {[nsv_exists apm_package_inherit_order $package_key]} {
        foreach inherited_package_key [nsv_get apm_package_inherit_order $package_key] {
            apm_invoke_callback_proc  -package_key $inherited_package_key  -type before-unmount  -arg_list [list package_id $package_id node_id $node_id]
        }
    }
    set url [site_node::get_url -node_id $node_id]
    db_dml unmount_object {}
    db_dml update_object_package_id {}
    update_cache -node_id $node_id -url $url -object_id $package_id
Generic XQL file:
<fullquery name="site_node::unmount.unmount_object">
    <querytext>
            update site_nodes
            set object_id = null
            where node_id = :node_id
        </querytext>
</fullquery>

<fullquery name="site_node::unmount.update_object_package_id">
    <querytext>
            update acs_objects
            set package_id = null
            where object_id = :node_id
        </querytext>
</fullquery>
packages/acs-tcl/tcl/site-nodes-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/site-nodes-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/site-nodes-procs-oracle.xql

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