- Publicity: Public Only All
notification-type-procs.tcl
Notification Types Notifications are categorized by type. These procs manage the types. Notification types are a service contract in order to handle notification replies appropriately (handling a forum reply is not the same as handling a calendar reply).
- Location:
- packages/notifications/tcl/notification-type-procs.tcl
- Created:
- 2002-05-24
- Author:
- Ben Adida
- CVS Identification:
$Id: notification-type-procs.tcl,v 1.16.2.7 2022/07/12 14:16:28 antoniop Exp $
Procedures in this file
- notification::type::delete (public)
- notification::type::delivery_method_disable (public)
- notification::type::delivery_method_enable (public)
- notification::type::get (public)
- notification::type::get_impl_key (public)
- notification::type::get_type_id (public)
- notification::type::get_type_id_not_cached (private)
- notification::type::interval_disable (public)
- notification::type::interval_enable (public)
- notification::type::new (public)
- notification::type::process_reply (public)
Detailed information
notification::type::delete (public)
notification::type::delete -short_name short_name
Remove a notification type. This is very rare.
- Switches:
- -short_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::delivery_method_disable (public)
notification::type::delivery_method_disable -type_id type_id \ -delivery_method_id delivery_method_id
Delivery methods must be enabled on a per notification type basis. For example, full forum posts may not be enabled for SMS delivery, as that would be too long. This disables a given delivery method for a given notification type.
- Switches:
- -type_id (required)
- -delivery_method_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::delivery_method_enable (public)
notification::type::delivery_method_enable -type_id type_id \ -delivery_method_id delivery_method_id
Delivery methods must be enabled on a per notification type basis. For example, full forum posts may not be enabled for SMS delivery, as that would be too long. This enables a given delivery method for a given notification type.
- Switches:
- -type_id (required)
- -delivery_method_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::get (public)
notification::type::get -short_name short_name \ -column_array column_array
select information about the notification type into the given Tcl Array
- Switches:
- -short_name (required)
- -column_array (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::get_impl_key (public)
notification::type::get_impl_key -type_id type_id
return the service contract implementation key for a given notification type.
- Switches:
- -type_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::get_type_id (public)
notification::type::get_type_id -short_name short_name
return the notification type ID given a short name. Short names are unique but not primary keys.
- Switches:
- -short_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases
notification::type::get_type_id_not_cached (private)
notification::type::get_type_id_not_cached short_name
return the notification type ID given a short name. Short names are unique but not primary keys.
- Parameters:
- short_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::interval_disable (public)
notification::type::interval_disable -type_id type_id \ -interval_id interval_id
Intervals must be enabled on a per notification type basis. For example, weekly notifications may not be enabled for full forum posts, as that might be too much email (system choice) This disables a given interval for a given notification type.
- Switches:
- -type_id (required)
- -interval_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::interval_enable (public)
notification::type::interval_enable -type_id type_id \ -interval_id interval_id
Intervals must be enabled on a per notification type basis. For example, weekly notifications may not be enabled for full forum posts, as that might be too much email (system choice) This enables a given interval for a given notification type.
- Switches:
- -type_id (required)
- -interval_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::new (public)
notification::type::new [ -all_intervals ] [ -all_delivery_methods ] \ [ -type_id type_id ] -sc_impl_id sc_impl_id -short_name short_name \ -pretty_name pretty_name [ -description description ]
create a new notification type. Must provide a service contract implementation ID.
- Switches:
- -all_intervals (optional, boolean, defaults to
"0"
)- -all_delivery_methods (optional, boolean, defaults to
"0"
)- -type_id (optional)
- -sc_impl_id (required)
- -short_name (required)
- -pretty_name (required)
- -description (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
notification::type::process_reply (public)
notification::type::process_reply -type_id type_id -reply_id reply_id
The wrapper procedure for processing a given reply. This calls down to the service contract implementation to specifically handle a reply.
- Switches:
- -type_id (required)
- -reply_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.