%3 ::xo::Package ::xo::Package initialize reply_to_user require_root_folder ::xo::db::Object ::xo::db::Object delete save save_new update ::xo::Package->::xo::db::Object ::xo::db::chat_transcript ::xo::db::chat_transcript save_new ::xo::db::chat_transcript->::xo::db::Object ::xo::db::chat_room ::xo::db::chat_room ban_user count_messages create_transcript delete delete_messages flush grant_creator grant_moderator grant_user post_message revoke_moderator revoke_user save_new transcript_messages unban_user ::xo::db::chat_room->::xo::db::Object ::xo::db::CrItem ::xo::db::CrItem delete is_package_root_folder privilege=creator rename save save_new set_live_revision update_attribute_from_slot update_item_index ::xo::db::CrItem->::xo::db::Object ::xo::db::CrCache::Item ::xo::db::CrCache::Item ::xo::db::CrItem->::xo::db::CrCache::Item ::xo::db::apm_parameter ::xo::db::apm_parameter ::xo::db::apm_parameter->::xo::db::Object ::xo::parameter ::xo::parameter ::xo::db::apm_parameter->::xo::parameter ::xotcl::Object ::xotcl::Object ::xo::db::Object->::xotcl::Object

Class ::xo::db::chat_transcript

::xo::db::chat_transcript[i] create ...

Defined in

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xo::db::Object[i]
::xo::db::Class create ::xo::db::chat_transcript \
     -superclass ::xo::db::Object

Methods (to be applied on instances)

  • save_new (scripted, public)

     <instance of xo::db::chat_transcript[i]> save_new args [ args... ]

    Save a new transcript, making sure its creator is granted the necessary operative privileges.

    Parameters:
    args (required)
    Returns:
    new transcript id

    Testcases:
    No testcase defined.
    if {![info exists :context_id]} {
        set :context_id ${:package_id}
    }
    ::xo::dc transaction {
        set transcript_id [next]
        foreach privilege {edit view delete} {
            permission::grant  -party_id  ${:creation_user}  -object_id ${:transcript_id}  -privilege chat_transcript_${privilege}
        }
    }
    return $transcript_id