- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::ConnectionContext
::xo::ConnectionContext create ... \
[ -mobile mobile ] \
[ -requester requester ] \
[ -url url ] \
[ -user user ] \
[ -user_id user_id ]
Class Relations
Methods (to be applied on the object)
require (scripted)
xo::ConnectionContext require
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_xo_cc, xotcl-core
Methods (to be applied on instances)
eval_as_user (scripted, public)
<instance of xo::ConnectionContext> eval_as_user \ [ -user_id user_id ] cmdRun a command as the specified different user. Essentially, this method updates xo::cc and the ad_conn array array with the specified user, runs the command and resets the user to the previous value.
- Switches:
- -user_id
(optional)- switch temporarily to this user
- Parameters:
- cmd - command to be exevuted
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_test_items
form_parameter (scripted)
<instance of xo::ConnectionContext> form_parameter
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_workflow_with_instance, xowf, xowiki_test_cases
get_all_form_parameter (scripted)
<instance of xo::ConnectionContext> get_all_form_parameter
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases, xowiki, create_form_with_form_instance
get_parameter (scripted)
<instance of xo::ConnectionContext> get_parameter
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases, xowiki, link_tests
mobile (setter)
<instance of xo::ConnectionContext> mobile
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_workflow_with_instance, xowf
permission (scripted, public)
<instance of xo::ConnectionContext> permission \ [ -object_id object_id ] -privilege privilege \ [ -party_id party_id ]Call ::permission::permission_p but avoid multiple calls in the same request through caching in the connection context
- Switches:
- -object_id
(optional)- -privilege
(required)- -party_id
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases
query_parameter (scripted, public)
<instance of xo::ConnectionContext> query_parameter __spec \ [ default ]Get query parameter with default and optional value constraints. In case the value check for the query parameter fails, and no further precautions are performed (::aa_test_noabort is set), the method raises an exception with "ad_return_complaint" and aborts the script.
- Parameters:
- __spec - has the formname or name:value_constraint
default (optional) - default value
- Returns:
- actual value of the query parameter
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- api__context, test_xo_cc, path_resolve
returnredirect (scripted)
<instance of xo::ConnectionContext> returnredirect
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases, xowiki
set_parameter (scripted)
<instance of xo::ConnectionContext> set_parameter
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_workflow_with_instance, xowf
url (setter)
<instance of xo::ConnectionContext> url
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_workflow_with_instance, xowf, xowiki_test_cases
user_id (setter)
<instance of xo::ConnectionContext> user_id
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xotcl_core_tutorial_2, xotcl-core, create_workflow_with_instance, package_normalize_path, xowiki_test_cases, link_tests, slot_interactions, path_resolve, create_form_with_form_instance
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables