site_node::new (public)

 site_node::new -name name -parent_id parent_id \
    [ -directory_p directory_p ] [ -pattern_p pattern_p ]

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

Create a new site node

Switches:
-name (required)
-parent_id (required)
-directory_p (optional, defaults to "t")
-pattern_p (optional, defaults to "t")
Returns:
node_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_context_bar ad_context_bar (test acs-tcl) site_node::new site_node::new test_ad_context_bar->site_node::new test_site_node_closest_ancestor_package site_node_closest_ancestor_package (test acs-tcl) test_site_node_closest_ancestor_package->site_node::new package_instantiate_object package_instantiate_object (public) site_node::new->package_instantiate_object apm_package_install apm_package_install (public) apm_package_install->site_node::new install::xml::action::mount install::xml::action::mount (public) install::xml::action::mount->site_node::new install::xml::action::mount-existing install::xml::action::mount-existing (public) install::xml::action::mount-existing->site_node::new packages/acs-subsite/www/admin/site-map/new.tcl packages/acs-subsite/ www/admin/site-map/new.tcl packages/acs-subsite/www/admin/site-map/new.tcl->site_node::new site_node::instantiate_and_mount site_node::instantiate_and_mount (public) site_node::instantiate_and_mount->site_node::new

Testcases:
ad_context_bar, site_node_closest_ancestor_package
Source code:
    set var_list [list  [list name $name]  [list parent_id $parent_id]  [list directory_p $directory_p]  [list pattern_p $pattern_p]]

    set node_id [package_instantiate_object -var_list $var_list site_node]
    return $node_id
Generic XQL file:
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: