install::xml::action::create-package (public)

 install::xml::action::create-package node

Defined in packages/acs-tcl/tcl/install-procs.tcl

Create a relation type.

Parameters:
node (required)

Partial Call Graph (max 5 caller/called nodes):
%3 apm_attribute_value apm_attribute_value (public) apm_package_instance_new apm_package_instance_new (public) apm_required_attribute_value apm_required_attribute_value (public) install::xml::util::get_id install::xml::util::get_id (public) permission::set_not_inherit permission::set_not_inherit (public) install::xml::action::create-package install::xml::action::create-package install::xml::action::create-package->apm_attribute_value install::xml::action::create-package->apm_package_instance_new install::xml::action::create-package->apm_required_attribute_value install::xml::action::create-package->install::xml::util::get_id install::xml::action::create-package->permission::set_not_inherit

Testcases:
No testcase defined.
Source code:
    variable ::install::xml::ids
    set package_key [apm_required_attribute_value $node package-key]
    set instance_name [apm_attribute_value -default "" $node name]
    set context_id [apm_attribute_value -default "" $node context-id]
    set security_inherit_p [apm_attribute_value -default "t" $node security-inherit-p]

    if {$context_id ne ""} {
        set context_id [install::xml::util::get_id $context_id]
    }

    set package_id [apm_package_instance_new  -instance_name $instance_name  -package_key $package_key  -context_id $context_id]

    if {![string is true -strict $security_inherit_p]} {
         permission::set_not_inherit -object_id $package_id
    }

    if {![string is space $id]} {
        set ::install::xml::ids($id$package_id
    }

    return
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: