apm_package_register (public)
apm_package_register [ -spec_file_path spec_file_path ] \ [ -spec_file_mtime spec_file_mtime ] package_key pretty_name \ pretty_plural package_uri package_type initial_install_p \ singleton_p implements_subsite_p inherit_templates_p
Defined in packages/acs-tcl/tcl/apm-install-procs.tcl
Register the package in the system.
- Switches:
- -spec_file_path (optional)
- -spec_file_mtime (optional)
- Parameters:
- package_key (required)
- pretty_name (required)
- pretty_plural (required)
- package_uri (required)
- package_type (required)
- initial_install_p (required)
- singleton_p (required)
- implements_subsite_p (required)
- inherit_templates_p (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- upgrade
Source code: if { $package_type eq "apm_application" } { db_exec_plsql application_register {} } elseif { $package_type eq "apm_service" } { db_exec_plsql service_register {} } else { error "Unrecognized package type: $package_type" }Generic XQL file: packages/acs-tcl/tcl/apm-install-procs.xql
PostgreSQL XQL file: <fullquery name="apm_package_register.application_register"> <querytext> select apm__register_application ( :package_key, :pretty_name, :pretty_plural, :package_uri, :initial_install_p, :singleton_p, :implements_subsite_p, :inherit_templates_p, :spec_file_path, :spec_file_mtime ); </querytext> </fullquery> <fullquery name="apm_package_register.service_register"> <querytext> select apm__register_service ( :package_key, :pretty_name, :pretty_plural, :package_uri, :initial_install_p, :singleton_p, :implements_subsite_p, :inherit_templates_p, :spec_file_path, :spec_file_mtime ); </querytext> </fullquery>packages/acs-tcl/tcl/apm-install-procs-postgresql.xql
Oracle XQL file: <fullquery name="apm_package_register.application_register"> <querytext> begin apm.register_application ( package_key => :package_key, package_uri => :package_uri, pretty_name => :pretty_name, pretty_plural => :pretty_plural, initial_install_p => :initial_install_p, singleton_p => :singleton_p, implements_subsite_p => :implements_subsite_p, inherit_templates_p => :inherit_templates_p, spec_file_path => :spec_file_path, spec_file_mtime => :spec_file_mtime ); end; </querytext> </fullquery> <fullquery name="apm_package_register.service_register"> <querytext> begin apm.register_service ( package_key => :package_key, package_uri => :package_uri, pretty_name => :pretty_name, pretty_plural => :pretty_plural, initial_install_p => :initial_install_p, singleton_p => :singleton_p, implements_subsite_p => :implements_subsite_p, inherit_templates_p => :inherit_templates_p, spec_file_path => :spec_file_path, spec_file_mtime => :spec_file_mtime ); end; </querytext> </fullquery>packages/acs-tcl/tcl/apm-install-procs-oracle.xql