apm_one_package_inherit_order (public)

 apm_one_package_inherit_order package_key

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

Returns a list of package keys in package inheritance order.

Parameters:
package_key (required)

Partial Call Graph (max 5 caller/called nodes):
%3 apm_build_one_package_relationships apm_build_one_package_relationships (public) apm_one_package_inherit_order apm_one_package_inherit_order apm_build_one_package_relationships->apm_one_package_inherit_order apm_generate_package_spec apm_generate_package_spec (public) apm_generate_package_spec->apm_one_package_inherit_order packages/acs-admin/www/apm/version-parameters.tcl packages/acs-admin/ www/apm/version-parameters.tcl packages/acs-admin/www/apm/version-parameters.tcl->apm_one_package_inherit_order db_list db_list (public) apm_one_package_inherit_order->db_list

Testcases:
No testcase defined.
Source code:

    if { [info exists ::apm_visited_package_keys($package_key)] } {
        return
    }
    set ::apm_visited_package_keys($package_key) 1

    foreach dependency [db_list get_dependencies {}] {
        apm_one_package_inherit_order $dependency
    }

    lappend ::apm_package_inherit_order $package_key
Generic XQL file:
<fullquery name="apm_one_package_inherit_order.get_dependencies">
    <querytext>
      select apd.service_uri
      from apm_package_versions apv, apm_package_dependencies apd
      where apv.package_key = :package_key
        and apv.installed_p = 't'
        and apd.version_id = apv.version_id
        and apd.dependency_type in ('extends', 'embeds')
      order by apd.dependency_id desc
    </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: