acs_sc::impl::get_id (public)

 acs_sc::impl::get_id -owner owner -name name [ -contract contract ]

Defined in packages/acs-service-contract/tcl/implementation-procs.tcl

Retrieves the ID for a service contract. If the contract is specified then the ID is retrieved for the specified contract, otherwise all service contract IDs will be retrieved that match the specified owner and implementation name. If nothing is found, the functions returns empty.

Switches:
-owner
(required)
Owner of the service contract.
-name
(required)
Implementation name.
-contract
(optional)
Implementation contract name.
Returns:
Returns the ID for a specified service contract, or all IDs for service contracts that match the owner and implementation name of a service contract, if the contract is not specified. If there is no such service contract, the function returns empty.

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_driver_get_parameter_values auth_driver_get_parameter_values (test acs-authentication) acs_sc::impl::get_id acs_sc::impl::get_id test_auth_driver_get_parameter_values->acs_sc::impl::get_id test_sync_batch_ims_example_doc sync_batch_ims_example_doc (test acs-authentication) test_sync_batch_ims_example_doc->acs_sc::impl::get_id test_sync_batch_ims_test sync_batch_ims_test (test acs-authentication) test_sync_batch_ims_test->acs_sc::impl::get_id db_string db_string (public) acs_sc::impl::get_id->db_string acs::test::auth::install acs::test::auth::install (private) acs::test::auth::install->acs_sc::impl::get_id auth::after_upgrade auth::after_upgrade (private) auth::after_upgrade->acs_sc::impl::get_id packages/file-storage/www/admin/rss-subscr-ae.tcl packages/file-storage/ www/admin/rss-subscr-ae.tcl packages/file-storage/www/admin/rss-subscr-ae.tcl->acs_sc::impl::get_id workflow::install::register_notification_types workflow::install::register_notification_types (public) workflow::install::register_notification_types->acs_sc::impl::get_id workflow::service_contract::get_impl_id workflow::service_contract::get_impl_id (public) workflow::service_contract::get_impl_id->acs_sc::impl::get_id

Testcases:
auth_driver_get_parameter_values, sync_batch_ims_example_doc, sync_batch_ims_test
Source code:
    if {$contract ne ""} {
        return [db_string select_impl_id_with_contract {} -default {}]
    } else {
        return [db_string select_impl_id {} -default {}]
    }
Generic XQL file:
<fullquery name="acs_sc::impl::get_id.select_impl_id">
    <querytext>
        select impl_id
        from   acs_sc_impls
        where  impl_owner_name = :owner
        and    impl_name = :name
    </querytext>
</fullquery>

<fullquery name="acs_sc::impl::get_id.select_impl_id_with_contract">
    <querytext>
        select impl_id
        from   acs_sc_impls
        where  impl_owner_name = :owner
        and    impl_name = :name
        and    impl_contract_name = :contract
    </querytext>
</fullquery>
packages/acs-service-contract/tcl/implementation-procs.xql

PostgreSQL XQL file:
packages/acs-service-contract/tcl/implementation-procs-postgresql.xql

Oracle XQL file:
packages/acs-service-contract/tcl/implementation-procs-oracle.xql

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