apm_package_install_owners (public)

 apm_package_install_owners [ -callback callback ] owners version_id

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

Install all of the owners of the package version.

Switches:
-callback (optional, defaults to "apm_dummy_callback")
Parameters:
owners (required)
version_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_upgrade upgrade (test acs-lang) apm_package_install_owners apm_package_install_owners test_upgrade->apm_package_install_owners db_dml db_dml (public) apm_package_install_owners->db_dml apm_package_install apm_package_install (public) apm_package_install->apm_package_install_owners packages/acs-admin/www/apm/package-add-2.tcl packages/acs-admin/ www/apm/package-add-2.tcl packages/acs-admin/www/apm/package-add-2.tcl->apm_package_install_owners packages/acs-admin/www/apm/version-edit-2.tcl packages/acs-admin/ www/apm/version-edit-2.tcl packages/acs-admin/www/apm/version-edit-2.tcl->apm_package_install_owners

Testcases:
upgrade
Source code:
    db_dml apm_delete_owners {
        delete from apm_package_owners where version_id = :version_id
    }
    set counter 0
    foreach item $owners {
        lassign $item owner_name owner_uri
        db_dml owner_insert {
            insert into apm_package_owners(version_id, owner_uri, owner_name, sort_key)
            values(:version_id, :owner_uri, :owner_name, :counter)
        }
        incr counter
    }
Generic XQL file:
<fullquery name="apm_package_install_owners.apm_delete_owners">
    <querytext>
      
	delete from apm_package_owners where version_id = :version_id
    
      </querytext>
</fullquery>

<fullquery name="apm_package_install_owners.owner_insert">
    <querytext>
      
	    insert into apm_package_owners(version_id, owner_uri, owner_name, sort_key)
	    values(:version_id, :owner_uri, :owner_name, :counter)
	
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs.xql

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

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

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