authority-procs.tcl

Procs for authority management.

Location:
packages/acs-authentication/tcl/authority-procs.tcl
Created:
2003-05-14
Author:
Lars Pind <lars@collaobraid.biz>
CVS Identification:
$Id: authority-procs.tcl,v 1.39.2.8 2022/08/29 14:17:23 antoniop Exp $

Procedures in this file

Detailed information

auth::authority::batch_sync (public)

 auth::authority::batch_sync -authority_id authority_id

Execute batch synchronization for this authority now.

Switches:
-authority_id (required)
Returns:
job_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_sync_batch_for_local sync_batch_for_local (test acs-authentication) auth::authority::batch_sync auth::authority::batch_sync test_sync_batch_for_local->auth::authority::batch_sync test_sync_batch_ims_example_doc sync_batch_ims_example_doc (test acs-authentication) test_sync_batch_ims_example_doc->auth::authority::batch_sync test_sync_batch_ims_test sync_batch_ims_test (test acs-authentication) test_sync_batch_ims_test->auth::authority::batch_sync ad_log ad_log (public) auth::authority::batch_sync->ad_log ad_try ad_try (public) auth::authority::batch_sync->ad_try auth::authority::get auth::authority::get (public) auth::authority::batch_sync->auth::authority::get auth::sync::GetAcknowledgementDocument auth::sync::GetAcknowledgementDocument (private) auth::authority::batch_sync->auth::sync::GetAcknowledgementDocument auth::sync::GetDocument auth::sync::GetDocument (private) auth::authority::batch_sync->auth::sync::GetDocument auth::sync::sweeper auth::sync::sweeper (private) auth::sync::sweeper->auth::authority::batch_sync packages/acs-admin/www/auth/batch-job-run.tcl packages/acs-admin/ www/auth/batch-job-run.tcl packages/acs-admin/www/auth/batch-job-run.tcl->auth::authority::batch_sync

Testcases:
sync_batch_for_local, sync_batch_ims_example_doc, sync_batch_ims_test

auth::authority::create (public)

 auth::authority::create [ -authority_id authority_id ] -array array

Create a new authentication authority.

Switches:
-authority_id (optional)
-array (required)
Name of an array containing the column values. The entries are:
  • short_name Short name for authority. Used as a key by applications to identify this authority.
  • pretty_name Label for the authority to be shown in a list to users picking an authority.
  • enabled_p 't' if this authority available, 'f' if it's disabled. Defaults to 'f'.
  • sort_order Sort ordering determines the order in which authorities are listed in the user interface. Defaults to the currently highest sort order plus one.
  • auth_impl_id The ID of the implementation of the 'auth_authentication' service contract. Defaults to none.
  • pwd_impl_id The ID of the implementation of the 'auth_password' service contract. Defaults to none.
  • forgotten_pwd_url An alternative URL to redirect to when the user has forgotten his/her password. Defaults to none.
  • change_pwd_url An alternative URL to redirect to when the user wants to change his/her password. Defaults to none.
  • register_impl_id The ID of the implementation of the 'auth_registration' service contract. Defaults to none.
  • register_url An alternative URL to redirect to when the user wants to register for an account. Defaults to none.
  • user_info_impl_id The ID of the implementation of the 'auth_user_info' service contract. Defaults to none.
  • get_doc_impl_id Id of the 'auth_sync_retrieve' service contract implementation
  • process_doc_impl_id Id of the 'auth_sync_process' service contract implementation
  • batch_sync_enabled_p Is batch sync enabled for the authority?
Options:
-authority_id
Authority_id, or blank if you want one generated for you.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::create auth::authority::create test_auth_authority_api->auth::authority::create test_sync_batch_ims_example_doc sync_batch_ims_example_doc (test acs-authentication) test_sync_batch_ims_example_doc->auth::authority::create test_sync_batch_ims_test sync_batch_ims_test (test acs-authentication) test_sync_batch_ims_test->auth::authority::create ad_conn ad_conn (public) auth::authority::create->ad_conn auth::authority::edit auth::authority::edit (public) auth::authority::create->auth::authority::edit auth::authority::get_column_defaults auth::authority::get_column_defaults (private) auth::authority::create->auth::authority::get_column_defaults auth::authority::get_id_flush auth::authority::get_id_flush (private) auth::authority::create->auth::authority::get_id_flush auth::authority::get_required_columns auth::authority::get_required_columns (private) auth::authority::create->auth::authority::get_required_columns acs::test::auth::install acs::test::auth::install (private) acs::test::auth::install->auth::authority::create packages/acs-admin/www/auth/authority.tcl packages/acs-admin/ www/auth/authority.tcl packages/acs-admin/www/auth/authority.tcl->auth::authority::create

Testcases:
auth_authority_api, sync_batch_ims_example_doc, sync_batch_ims_test

auth::authority::delete (public)

 auth::authority::delete -authority_id authority_id

Delete an authority.

Switches:
-authority_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::delete auth::authority::delete test_auth_authority_api->auth::authority::delete auth::authority::get_id_flush auth::authority::get_id_flush (private) auth::authority::delete->auth::authority::get_id_flush db_exec_plsql db_exec_plsql (public) auth::authority::delete->db_exec_plsql packages/acs-admin/www/auth/authority-delete.tcl packages/acs-admin/ www/auth/authority-delete.tcl packages/acs-admin/www/auth/authority-delete.tcl->auth::authority::delete

Testcases:
auth_authority_api

auth::authority::edit (public)

 auth::authority::edit -authority_id authority_id -array array

Edit info about an authority. Note that there's no checking that the columns you name exist.

Switches:
-authority_id (required)
The authority you want to get.
-array (required)
Name of an array with column values to update.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::edit auth::authority::edit test_auth_authority_api->auth::authority::edit test_auth_authority_edit auth_authority_edit (test acs-authentication) test_auth_authority_edit->auth::authority::edit auth::authority::get_columns auth::authority::get_columns (private) auth::authority::edit->auth::authority::get_columns auth::authority::get_element auth::authority::get_element (public) auth::authority::edit->auth::authority::get_element auth::authority::get_flush auth::authority::get_flush (private) auth::authority::edit->auth::authority::get_flush auth::authority::get_id_flush auth::authority::get_id_flush (private) auth::authority::edit->auth::authority::get_id_flush db_dml db_dml (public) auth::authority::edit->db_dml auth::authority::create auth::authority::create (public) auth::authority::create->auth::authority::edit auth::local::install auth::local::install (private) auth::local::install->auth::authority::edit auth::local::uninstall auth::local::uninstall (private) auth::local::uninstall->auth::authority::edit packages/acs-admin/www/auth/authority-set-enabled-p.tcl packages/acs-admin/ www/auth/authority-set-enabled-p.tcl packages/acs-admin/www/auth/authority-set-enabled-p.tcl->auth::authority::edit packages/acs-admin/www/auth/authority-set-sort-order.tcl packages/acs-admin/ www/auth/authority-set-sort-order.tcl packages/acs-admin/www/auth/authority-set-sort-order.tcl->auth::authority::edit

Testcases:
auth_authority_api, auth_authority_edit

auth::authority::get (public)

 auth::authority::get [ -authority_id authority_id ] [ -array array ]

Get info about an authority and return the authority_id. If no authority is specified, then return

Switches:
-authority_id (optional)
The authority you want to get. If not specified, return the default authority
-array (optional)
Name of an array into which the detailed attributes should be delivered
Returns:
authority_id
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::get auth::authority::get test_auth_authority_api->auth::authority::get test_auth_authority_edit auth_authority_edit (test acs-authentication) test_auth_authority_edit->auth::authority::get test_auth_driver_get_parameter_values auth_driver_get_parameter_values (test acs-authentication) test_auth_driver_get_parameter_values->auth::authority::get auth::authority::get_authority_options auth::authority::get_authority_options (public) auth::authority::get->auth::authority::get_authority_options auth::authority::get_not_cached auth::authority::get_not_cached (private) auth::authority::get->auth::authority::get_not_cached util_memoize util_memoize (public) auth::authority::get->util_memoize acs_user::get_by_username acs_user::get_by_username (public) acs_user::get_by_username->auth::authority::get auth::authority::batch_sync auth::authority::batch_sync (public) auth::authority::batch_sync->auth::authority::get auth::authority::get_element auth::authority::get_element (public) auth::authority::get_element->auth::authority::get auth::get_local_account auth::get_local_account (private) auth::get_local_account->auth::authority::get auth::get_register_authority auth::get_register_authority (public) auth::get_register_authority->auth::authority::get

Testcases:
auth_authority_api, auth_driver_get_parameter_values, auth_authority_edit

auth::authority::get_authority_options (public)

 auth::authority::get_authority_options

Returns options (value label pairs) for building the authority HTML select box.

Author:
Simon Carstensen

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::get_authority_options auth::authority::get_authority_options test_auth_authority_api->auth::authority::get_authority_options db_list_of_lists db_list_of_lists (public) auth::authority::get_authority_options->db_list_of_lists auth::authority::get auth::authority::get (public) auth::authority::get->auth::authority::get_authority_options http_auth::set_user_id http_auth::set_user_id (public) http_auth::set_user_id->auth::authority::get_authority_options oacs_dav::set_user_id oacs_dav::set_user_id (public) oacs_dav::set_user_id->auth::authority::get_authority_options packages/acs-authentication/lib/search.tcl packages/acs-authentication/ lib/search.tcl packages/acs-authentication/lib/search.tcl->auth::authority::get_authority_options packages/acs-subsite/lib/login.tcl packages/acs-subsite/ lib/login.tcl packages/acs-subsite/lib/login.tcl->auth::authority::get_authority_options

Testcases:
auth_authority_api

auth::authority::get_column_defaults (private)

 auth::authority::get_column_defaults

Get an array list with column names as keys and their default value as values. Note however that required columns are not defaulted.

Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::create auth::authority::create (public) auth::authority::get_column_defaults auth::authority::get_column_defaults auth::authority::create->auth::authority::get_column_defaults auth::authority::get_columns auth::authority::get_columns (private) auth::authority::get_columns->auth::authority::get_column_defaults ad_acs_version ad_acs_version (public) auth::authority::get_column_defaults->ad_acs_version apm_version_names_compare apm_version_names_compare (public) auth::authority::get_column_defaults->apm_version_names_compare

Testcases:
No testcase defined.

auth::authority::get_columns (private)

 auth::authority::get_columns

Get a list of the columns in the auth_authorities table.

Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::edit auth::authority::edit (public) auth::authority::get_columns auth::authority::get_columns auth::authority::edit->auth::authority::get_columns auth::authority::get_not_cached auth::authority::get_not_cached (private) auth::authority::get_not_cached->auth::authority::get_columns auth::authority::get_select_columns auth::authority::get_select_columns (private) auth::authority::get_select_columns->auth::authority::get_columns auth::authority::get_column_defaults auth::authority::get_column_defaults (private) auth::authority::get_columns->auth::authority::get_column_defaults

Testcases:
No testcase defined.

auth::authority::get_element (public)

 auth::authority::get_element [ -authority_id authority_id ] \
    -element element

Return a specific element of the auth_authority data table.

Switches:
-authority_id (optional)
-element (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_edit auth_authority_edit (test acs-authentication) auth::authority::get_element auth::authority::get_element test_auth_authority_edit->auth::authority::get_element auth::authority::get auth::authority::get (public) auth::authority::get_element->auth::authority::get auth::authority::get_select_columns auth::authority::get_select_columns (private) auth::authority::get_element->auth::authority::get_select_columns auth::authenticate auth::authenticate (public) auth::authenticate->auth::authority::get_element auth::authentication::authenticate auth::authentication::authenticate (public) auth::authentication::authenticate->auth::authority::get_element auth::authority::edit auth::authority::edit (public) auth::authority::edit->auth::authority::get_element auth::create_local_account auth::create_local_account (public) auth::create_local_account->auth::authority::get_element auth::create_user auth::create_user (public) auth::create_user->auth::authority::get_element

Testcases:
auth_authority_edit

auth::authority::get_flush (private)

 auth::authority::get_flush [ -authority_id authority_id ]

Flush the cache for auth::authority::get.

Switches:
-authority_id (optional)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::edit auth::authority::edit (public) auth::authority::get_flush auth::authority::get_flush auth::authority::edit->auth::authority::get_flush util_memoize_flush util_memoize_flush (public) auth::authority::get_flush->util_memoize_flush util_memoize_flush_regexp util_memoize_flush_regexp (public) auth::authority::get_flush->util_memoize_flush_regexp

Testcases:
No testcase defined.

auth::authority::get_id (public)

 auth::authority::get_id -short_name short_name

Get authority_id by short_name.

Switches:
-short_name (required)
The short_name of the authority you wish to get information for.
Returns:
authority_id or the empty string if short_name doesn't exist.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::get_id auth::authority::get_id test_auth_authority_api->auth::authority::get_id test_auth_authority_edit auth_authority_edit (test acs-authentication) test_auth_authority_edit->auth::authority::get_id test_auth_use_email_for_login_p auth_use_email_for_login_p (test acs-authentication) test_auth_use_email_for_login_p->auth::authority::get_id test_party_procs_test party_procs_test (test acs-tcl) test_party_procs_test->auth::authority::get_id test_person_procs_test person_procs_test (test acs-tcl) test_person_procs_test->auth::authority::get_id auth::authority::get_id_not_cached auth::authority::get_id_not_cached (private) auth::authority::get_id->auth::authority::get_id_not_cached util_memoize util_memoize (public) auth::authority::get_id->util_memoize acs::test::auth::install acs::test::auth::install (private) acs::test::auth::install->auth::authority::get_id acs::test::user::create acs::test::user::create (public) acs::test::user::create->auth::authority::get_id auth::authority::local auth::authority::local (public) auth::authority::local->auth::authority::get_id auth::get_register_authority auth::get_register_authority (public) auth::get_register_authority->auth::authority::get_id

Testcases:
auth_authority_api, auth_use_email_for_login_p, auth_authority_edit, sync_snapshot, person_procs_test, party_procs_test

auth::authority::get_id_flush (private)

 auth::authority::get_id_flush [ -short_name short_name ]

Flush the cache for auth::authority::get_id by short_name.

Switches:
-short_name (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::create auth::authority::create (public) auth::authority::get_id_flush auth::authority::get_id_flush auth::authority::create->auth::authority::get_id_flush auth::authority::delete auth::authority::delete (public) auth::authority::delete->auth::authority::get_id_flush auth::authority::edit auth::authority::edit (public) auth::authority::edit->auth::authority::get_id_flush util_memoize_flush util_memoize_flush (public) auth::authority::get_id_flush->util_memoize_flush util_memoize_flush_regexp util_memoize_flush_regexp (public) auth::authority::get_id_flush->util_memoize_flush_regexp

Testcases:
No testcase defined.

auth::authority::get_id_not_cached (private)

 auth::authority::get_id_not_cached -short_name short_name

Get authority_id by short_name. Not cached.

Switches:
-short_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::get_id auth::authority::get_id (public) auth::authority::get_id_not_cached auth::authority::get_id_not_cached auth::authority::get_id->auth::authority::get_id_not_cached db_string db_string (public) auth::authority::get_id_not_cached->db_string

Testcases:
No testcase defined.

auth::authority::get_not_cached (private)

 auth::authority::get_not_cached authority_id

Get info about an authority, either by authority_id, user_id, or authority short_name. Not cached

Parameters:
authority_id (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::get auth::authority::get (public) auth::authority::get_not_cached auth::authority::get_not_cached auth::authority::get->auth::authority::get_not_cached ad_acs_version ad_acs_version (public) auth::authority::get_not_cached->ad_acs_version apm_version_names_compare apm_version_names_compare (public) auth::authority::get_not_cached->apm_version_names_compare auth::authority::get_columns auth::authority::get_columns (private) auth::authority::get_not_cached->auth::authority::get_columns db_1row db_1row (public) auth::authority::get_not_cached->db_1row

Testcases:
No testcase defined.

auth::authority::get_required_columns (private)

 auth::authority::get_required_columns

Get a list of the required columns in the auth_authorities table.

Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::create auth::authority::create (public) auth::authority::get_required_columns auth::authority::get_required_columns auth::authority::create->auth::authority::get_required_columns

Testcases:
No testcase defined.

auth::authority::get_sc_impl_columns (public)

 auth::authority::get_sc_impl_columns

Get a list of column names for storing service contract implementation ids of the authority.

Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_authority__get_sc_impl_columns authority__get_sc_impl_columns (test acs-authentication) auth::authority::get_sc_impl_columns auth::authority::get_sc_impl_columns test_authority__get_sc_impl_columns->auth::authority::get_sc_impl_columns ad_acs_version ad_acs_version (public) auth::authority::get_sc_impl_columns->ad_acs_version apm_version_names_compare apm_version_names_compare (public) auth::authority::get_sc_impl_columns->apm_version_names_compare packages/acs-admin/www/auth/authority-parameters.tcl packages/acs-admin/ www/auth/authority-parameters.tcl packages/acs-admin/www/auth/authority-parameters.tcl->auth::authority::get_sc_impl_columns packages/acs-admin/www/auth/authority.tcl packages/acs-admin/ www/auth/authority.tcl packages/acs-admin/www/auth/authority.tcl->auth::authority::get_sc_impl_columns

Testcases:
authority__get_sc_impl_columns

auth::authority::get_select_columns (private)

 auth::authority::get_select_columns

Get a list of the columns which can be selected from auth_authorities table.

Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 auth::authority::get_element auth::authority::get_element (public) auth::authority::get_select_columns auth::authority::get_select_columns auth::authority::get_element->auth::authority::get_select_columns ad_acs_version ad_acs_version (public) auth::authority::get_select_columns->ad_acs_version apm_version_names_compare apm_version_names_compare (public) auth::authority::get_select_columns->apm_version_names_compare auth::authority::get_columns auth::authority::get_columns (private) auth::authority::get_select_columns->auth::authority::get_columns

Testcases:
No testcase defined.

auth::authority::get_short_names (public)

 auth::authority::get_short_names

Return a list of authority short names.

Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_authority_api auth_authority_api (test acs-authentication) auth::authority::get_short_names auth::authority::get_short_names test_auth_authority_api->auth::authority::get_short_names db_list db_list (public) auth::authority::get_short_names->db_list auth::get_register_authority auth::get_register_authority (public) auth::get_register_authority->auth::authority::get_short_names

Testcases:
auth_authority_api

auth::authority::local (public)

 auth::authority::local

Returns the authority_id of the local authority.

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_driver_get_parameter_values auth_driver_get_parameter_values (test acs-authentication) auth::authority::local auth::authority::local test_auth_driver_get_parameter_values->auth::authority::local test_auth_password_reset auth_password_reset (test acs-authentication) test_auth_password_reset->auth::authority::local test_auth_use_email_for_login_p auth_use_email_for_login_p (test acs-authentication) test_auth_use_email_for_login_p->auth::authority::local test_sync_actions sync_actions (test acs-authentication) test_sync_actions->auth::authority::local test_sync_batch_for_local sync_batch_for_local (test acs-authentication) test_sync_batch_for_local->auth::authority::local auth::authority::get_id auth::authority::get_id (public) auth::authority::local->auth::authority::get_id auth::authenticate auth::authenticate (public) auth::authenticate->auth::authority::local auth::create_local_account auth::create_local_account (public) auth::create_local_account->auth::authority::local auth::get_local_account auth::get_local_account (private) auth::get_local_account->auth::authority::local auth::get_register_authority auth::get_register_authority (public) auth::get_register_authority->auth::authority::local auth::local::authentication::Authenticate auth::local::authentication::Authenticate (private) auth::local::authentication::Authenticate->auth::authority::local

Testcases:
auth_password_reset, auth_driver_get_parameter_values, auth_use_email_for_login_p, sync_start_end, sync_actions, sync_batch_for_local
[ show source ]