- Publicity: Public Only All
acs-service-contract-procs.tcl
Support library for acs service contracts.
- Location:
- packages/acs-service-contract/tcl/acs-service-contract-procs.tcl
- Created:
- 2001-09-01
- Author:
- Neophytos Demetriou
- CVS Identification:
$Id: acs-service-contract-procs.tcl,v 1.33.2.6 2022/08/22 14:44:18 gustafn Exp $
Procedures in this file
- acs_sc::invoke (public)
- acs_sc_binding_exists_p (public)
- acs_sc_update_alias_wrappers (public)
Detailed information
acs_sc::invoke (public)
acs_sc::invoke [ -contract contract ] -operation operation \ [ -impl impl ] [ -impl_id impl_id ] [ -call_args call_args ] \ [ -error ]
A replacement of the former acs_sc_call procedure. One must supply either contract and impl, or just impl_id. If you supply impl_id and contract, we throw an error if the impl_id's contract doesn't match the contract you passed in. If you supply both impl_id and impl, we throw an error. Additional documentation and commentary at http://openacs.org/forums/message-view?message_id=108614.
- Switches:
- -contract
(optional)- The name of the contract you wish to use.
- -operation
(required)- The name of the operation in the contract you wish to call.
- -impl
(optional)- The name of the implementation you wish to use.
- -impl_id
(optional)- The ID of the implementation you wish to use.
- -call_args
(optional)- The arguments you want to pass to the proc.
- -error
(boolean) (optional)- If specified, will throw an error if the operation isn't implemented.
- Author:
- Lars Pind <lars@collaboraid.biz>
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- sync_http_get_document, sync_file_get_document
acs_sc_binding_exists_p (public)
acs_sc_binding_exists_p contract impl
Returns a boolean depending on whether or not the binding between the contract and implementation exists.
- Parameters:
- contract - the contract name
impl - the implementation name
- Returns:
- boolean
- Author:
- Neophytos Demetriou
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
acs_sc_update_alias_wrappers (public)
acs_sc_update_alias_wrappers
Loop over actual bindings, finding every impl alias for each contract operation and call "acs_sc_proc" for all of these.
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.