apm_package_rename (public)

 apm_package_rename [ -package_id package_id ] \
    -instance_name instance_name

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

Renames a package instance

Switches:
-package_id (optional)
-instance_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 install::xml::action::rename-instance install::xml::action::rename-instance (public) apm_package_rename apm_package_rename install::xml::action::rename-instance->apm_package_rename packages/acs-subsite/www/admin/applications/application-add.tcl packages/acs-subsite/ www/admin/applications/application-add.tcl packages/acs-subsite/www/admin/applications/application-add.tcl->apm_package_rename packages/acs-subsite/www/admin/configure.tcl packages/acs-subsite/ www/admin/configure.tcl packages/acs-subsite/www/admin/configure.tcl->apm_package_rename packages/acs-subsite/www/admin/site-map/rename.tcl packages/acs-subsite/ www/admin/site-map/rename.tcl packages/acs-subsite/www/admin/site-map/rename.tcl->apm_package_rename ad_conn ad_conn (public) apm_package_rename->ad_conn db_dml db_dml (public) apm_package_rename->db_dml db_list db_list (public) apm_package_rename->db_list db_transaction db_transaction (public) apm_package_rename->db_transaction site_node::update_cache site_node::update_cache (public) apm_package_rename->site_node::update_cache

Testcases:
No testcase defined.
Source code:
    if { $package_id eq "" } {
        set package_id [ad_conn package_id]
    }
    db_transaction {
        db_dml app_rename {
            update apm_packages
            set instance_name = :instance_name
            where package_id = :package_id
        }
        db_dml rename_acs_object {
            update acs_objects
            set title = :instance_name
            where object_id = :package_id
        }
    }
    foreach node_id [db_list nodes_to_sync {}] {
        site_node::update_cache -node_id $node_id
    }
Generic XQL file:
<fullquery name="apm_package_rename.nodes_to_sync">
    <querytext>
      select node_id
      from site_nodes
      where object_id = :package_id
    </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-procs.xql

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

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

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