apm_version_enable (public)

 apm_version_enable [ -callback callback ] version_id

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

Enables a version of a package (disabling any other version of the package).

Switches:
-callback (optional, defaults to "apm_dummy_callback")
Parameters:
version_id (required)
The id of the version to be enabled.

Partial Call Graph (max 5 caller/called nodes):
%3 test_upgrade upgrade (test acs-lang) apm_version_enable apm_version_enable test_upgrade->apm_version_enable acs::try_cache acs::try_cache (private) apm_version_enable->acs::try_cache apm_callback_and_log apm_callback_and_log (public) apm_version_enable->apm_callback_and_log apm_package_key_from_version_id apm_package_key_from_version_id (public) apm_version_enable->apm_package_key_from_version_id db_exec_plsql db_exec_plsql (public) apm_version_enable->db_exec_plsql apm_package_install apm_package_install (public) apm_package_install->apm_version_enable 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_version_enable packages/acs-admin/www/apm/version-enable.tcl packages/acs-admin/ www/apm/version-enable.tcl packages/acs-admin/www/apm/version-enable.tcl->apm_version_enable packages/acs-admin/www/install/install-3.tcl packages/acs-admin/ www/install/install-3.tcl packages/acs-admin/www/install/install-3.tcl->apm_version_enable

Testcases:
upgrade
Source code:
    db_exec_plsql apm_package_version_enable {}
    acs::try_cache acs::misc_cache flush  apm_package_enabled-[apm_package_key_from_version_id $version_id]
    apm_callback_and_log $callback  "<p>Package enabled."
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

PostgreSQL XQL file:
<fullquery name="apm_version_enable.apm_package_version_enable">
    <querytext>

	  select apm_package_version__enable(
            :version_id
	  );
    
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs-postgresql.xql

Oracle XQL file:
<fullquery name="apm_version_enable.apm_package_version_enable">
    <querytext>
      
	begin
	  apm_package_version.enable(
            version_id => :version_id
	  );
	end;
    
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs-oracle.xql

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