site_node::instantiate_and_mount (public)

 site_node::instantiate_and_mount [ -node_id node_id ] \
    [ -parent_node_id parent_node_id ] [ -node_name node_name ] \
    [ -package_name package_name ] [ -context_id context_id ] \
    -package_key package_key [ -package_id package_id ]

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

Instantiate and mount a package of given type. Will use an existing site node if possible.

Switches:
-node_id (optional)
The id of the node in the site map where the package should be mounted.
-parent_node_id (optional)
If no node_id is specified this will be the parent node under which the new node is created. Defaults to the main site node id.
-node_name (optional)
If node_id is not specified then this will be the name of the new site node that is created. Defaults to package_key.
-package_name (optional)
The name of the new package instance. Defaults to pretty name of package type.
-context_id (optional)
The context_id of the package. Defaults to the closest ancestor package in the site map.
-package_key (required)
The key of the package type to instantiate.
-package_id (optional)
The id of the new package. Optional.
Returns:
The id of the instantiated package
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_proc_permission_grant_and_revoke ad_proc_permission_grant_and_revoke (test acs-tcl) site_node::instantiate_and_mount site_node::instantiate_and_mount test_ad_proc_permission_grant_and_revoke->site_node::instantiate_and_mount test_ad_proc_permission_permission_p ad_proc_permission_permission_p (test acs-tcl) test_ad_proc_permission_permission_p->site_node::instantiate_and_mount test_fs_publish_file fs_publish_file (test file-storage) test_fs_publish_file->site_node::instantiate_and_mount test_site_node_closest_ancestor_package site_node_closest_ancestor_package (test acs-tcl) test_site_node_closest_ancestor_package->site_node::instantiate_and_mount test_site_node_update_cache site_node_update_cache (test acs-tcl) test_site_node_update_cache->site_node::instantiate_and_mount apm_package_instance_new apm_package_instance_new (public) site_node::instantiate_and_mount->apm_package_instance_new site_node::closest_ancestor_package site_node::closest_ancestor_package (public) site_node::instantiate_and_mount->site_node::closest_ancestor_package site_node::exists_p site_node::exists_p (public) site_node::instantiate_and_mount->site_node::exists_p site_node::get site_node::get (public) site_node::instantiate_and_mount->site_node::get site_node::get_node_id site_node::get_node_id (public) site_node::instantiate_and_mount->site_node::get_node_id aa_get_first_url aa_get_first_url (public) aa_get_first_url->site_node::instantiate_and_mount acs::test::require_package_instance acs::test::require_package_instance (public) acs::test::require_package_instance->site_node::instantiate_and_mount acs_admin::require_site_wide_package acs_admin::require_site_wide_package (public) acs_admin::require_site_wide_package->site_node::instantiate_and_mount acs_admin::require_site_wide_subsite acs_admin::require_site_wide_subsite (public) acs_admin::require_site_wide_subsite->site_node::instantiate_and_mount apm_mount_core_packages apm_mount_core_packages (private) apm_mount_core_packages->site_node::instantiate_and_mount

Testcases:
subsite_api, site_node_update_cache, site_node_closest_ancestor_package, ad_proc_permission_grant_and_revoke, ad_proc_permission_permission_p, test_inheritance_and_custom_permissions, fs_publish_file, xowiki_test_cases
[ show source ]
Show another procedure: