首頁 後端開發 C++ 使用 IntApp Walls API 處理事務團隊成員資格

使用 IntApp Walls API 處理事務團隊成員資格

Jan 05, 2025 pm 01:16 PM

IntApp Walls API 是一個強大的工具,用於管理道德牆並安全地控制對敏感資料的存取。透過利用其運營,開發人員可以與事務團隊高效互動、管理成員資格並確保遵守保密要求。

Intapp Walls API 是一種 SOAP Web 服務,提供用於與 Intapp Walls 應用程式互動的程式設計介面。它被部署為標準元件 Web 服務。

為了簡單起見,本文檔中的範例程式碼省略了錯誤檢查、異常處理、日誌記錄等實務。它僅用於說明目的,並不一定反映最佳編碼實踐。

這裡我將介紹兩個關鍵場景:

  1. 檢索並列出事務團隊成員資格。
  2. 為現有事務團隊新增成員。

透過了解和使用 IntApp Walls API 操作(例如「GetMatterTeamForMatter」、「LoadMatterTeam」和「AddUsersToMatterTeam」),您可以簡化與道德牆管理相關的任務。以下範例包括程式碼片段和逐步指導。

本文檔不會涵蓋配置對 IntApp Walls API 的開發存取的細節。但是,管理解決方案必須安裝在您的本機網域上,並且通常可以透過名為「APIService.svc」的檔案存取 Web 服務,該檔案應會以服務參考新增至 Visual Studio 中。

Working with Matter Team Membership Using the IntApp Walls API

範例程式碼引用了以下 IntApp Walls API 操作:

GetMatterTeamForMatter:取得與指定案件關聯的案件團隊的 ID。
LoadMatterTeam:載入事務團隊的屬性。
GetDMSUserID:取得 DMS 使用者 ID。某些 API 方法需要使用者的 DMS 使用者 ID。例如,CreateWall() 方法要求使用者 ID 是 DMS 的 ID,而不是使用者的計時員 ID 或記錄系統 ID。此方法可用於在給定使用者的另一個已知 ID 的情況下取得 DMS 使用者 ID。
LoadMatterTeamMembership:載入案件團隊成員資格。
GetWarningsIfUserIsIncluded:取得如果指定使用者被授予對特定客戶端或事務的存取權(即包含),則會產生的任何警告。此函數傳回任何可能由衝突的道德牆產生的警告。
AddUsersToMatterTeam:將使用者新增至具有指定角色的現有事務團隊。

範例:擷取並列出事務團隊成員資格
以下程式碼片段使用 IntApp Walls API「GetMatterTeamForMatter」和「LoadMatterTeam」操作來擷取交易團隊成員列表,然後將團隊成員詳細資料寫入控制台。

註:
• 使用 IntApp API 通常需要特定的權限,通常會授予具有適當 IntApp Walls 存取權限的服務帳戶。
• 在下面的程式碼片段中對「intapp_web_api」的引用是指 Visual Studio 中定義的 IntApp API 服務所引用的名稱。

Working with Matter Team Membership Using the IntApp Walls API

第 1 步檢索唯一的 IntApp Walls 管理的交易團隊 ID 號碼。
檢索與指定交易關聯的事務團隊的 ID。此案件團隊 ID 隨後將用於取得案件團隊成員詳細資訊。

要實現此目的,請呼叫「GetMatterTeamForMatter」操作,該操作需要「matterID」參數。 「matterID」通常是內部產生的 ID,有時稱為「案例編號」。該值由使用者或程式設計師從他們自己的 Timekeeper 類型來源提供。

string matterID = "01234"; // matterID supplied by you
string matterTeamID = String.Empty; // the return value

// get the walls matter team id
// example of matter team id "COOLE-033517"
matterTeamID = intapp_web_api.GetMatterTeamForMatter(matterID);

public static string GetMatterTeamForMatter(string matterID)
{
  intapp_web_api.Matter matter = new intapp_web_api.Matter();
  string matterTeamID = string.Empty;

  try
  {
    intapp_web_api.APIServiceClient intapp_web_api = new intapp_web_api.APIServiceClient();
    matterTeamID = intapp_web_api.GetMatterTeamForMatter(matterID);

    if ((string.IsNullOrEmpty(matterTeamID)))
    {
      matterTeamID = "blank";
    }
  }
  catch (Exception ex)
  {
    if (string.IsNullOrEmpty(matterTeamID) || ex.Message == "Error")
    {
      matterTeamID = "blank";
    }
  }
  return matterTeamID;
}
登入後複製
登入後複製

第 2 步載入問題團隊結果
定義「LoadMatterTeam」方法,並使用執行「GetMatterTeamForMatter」方法獲得的唯一 IntApp Walls 管理的案件團隊 ID 號碼「matterTeamID」變數來呼叫「LoadMatterTeam」方法來檢索案件團隊。迭代事務團隊內的「UserMemberships」集合,並將使用者團隊 ID 和角色輸出到控制台。

public static intapp_web_api.MatterTeam LoadMatterTeam(string matterTeamID)
{
  intapp_web_api.MatterTeam matterTeam = new intapp_web_api.MatterTeam();

  try
  {
    intapp_web_api.APIServiceClient intapp_web_api = new intapp_web_api.APIServiceClient();
    matterTeam = intapp_web_api.LoadMatterTeam(wallscaseteamid);
  }
  catch (Exception ex)
  {
    throw new Exception(ex.Message.ToString());
  }

  return matterTeam;
}

MatterTeam the_matter_team_list = LoadMatterTeam(wallscaseteamid);

using (APIServiceClient intapp_web_api = new APIServiceClient())
{
  // iterate through the usermemberships collection in the matterteam
  foreach (UserMembership user in the_matter_team_list.UserMemberships)
  {
    string _userid = user.UserId.ToString(); // get the user id
    string _therole = user.Role.ToString(); // get the user role

    // output the user team id and role to the console
    Console.WriteLine($"user team id: {_userid}");
    Console.WriteLine($"user team role: {_therole}");
  }
}
登入後複製
登入後複製

範例:為現有事務團隊成員新增成員
基於「GetMatterTeamForMatter」和「LoadMatterTeam」操作來檢索事務團隊成員列表,以下程式碼片段示範如何使用 IntApp Walls API 檢查現有團隊成員身份,並向團隊新增成員(如果尚未新增)會員。

註:
• 透過IntApp API 操作IntApp Walls 團隊需要特定權限,這超出了本文檔的範圍。請求者還需要具有 IntApp Walls 中定義的 IntApp Walls 事務管理員角色。
• 使用 IntApp API 通常需要特定的權限,通常會授予具有適當 IntApp Walls 存取權限的服務帳戶。
• 在下面的程式碼片段中對「intapp_web_api」的引用是指 Visual Studio 中定義的 IntApp API 服務所引用的名稱。

Working with Matter Team Membership Using the IntApp Walls API

第 1 步:使用「GetDMSUserID」操作,取得要新增至 Walls 團隊的使用者的「sAMAccountName」
「sAMAccountName」(安全帳戶管理員帳戶名稱)是 Microsoft Active Directory (AD) 中的屬性,表示用於對網域進行驗證的使用者登入名稱。

string theid = "jsmith"; // the sAMAccountName ad account name of user to add
string wallsuserid = string.Empty;

wallsuserid = intapp_web_api.GetDMSUserID(UserIDSource.WindowsNetworkLogon, $@"YourDomainName\{theid}") // change "YourDomainName" to your domain name

// check if wallsuserid contains a value
if (string.IsNullOrEmpty(wallsuserid))
{
  Console.WriteLine("the user you are trying to add to Walls team does not exists in Walls");
  return;
}
登入後複製
登入後複製

第 2 步:檢查牆壁​​中是否有該物質。

string matterID = "01234"; // matterID supplied by you
string matterTeamID = String.Empty; // the return value

// get the walls matter team id
// example of matter team id "COOLE-033517"
matterTeamID = intapp_web_api.GetMatterTeamForMatter(matterID);

public static string GetMatterTeamForMatter(string matterID)
{
  intapp_web_api.Matter matter = new intapp_web_api.Matter();
  string matterTeamID = string.Empty;

  try
  {
    intapp_web_api.APIServiceClient intapp_web_api = new intapp_web_api.APIServiceClient();
    matterTeamID = intapp_web_api.GetMatterTeamForMatter(matterID);

    if ((string.IsNullOrEmpty(matterTeamID)))
    {
      matterTeamID = "blank";
    }
  }
  catch (Exception ex)
  {
    if (string.IsNullOrEmpty(matterTeamID) || ex.Message == "Error")
    {
      matterTeamID = "blank";
    }
  }
  return matterTeamID;
}
登入後複製
登入後複製

第 3 步:如果問題存在,使用者是否已經是團隊成員?

public static intapp_web_api.MatterTeam LoadMatterTeam(string matterTeamID)
{
  intapp_web_api.MatterTeam matterTeam = new intapp_web_api.MatterTeam();

  try
  {
    intapp_web_api.APIServiceClient intapp_web_api = new intapp_web_api.APIServiceClient();
    matterTeam = intapp_web_api.LoadMatterTeam(wallscaseteamid);
  }
  catch (Exception ex)
  {
    throw new Exception(ex.Message.ToString());
  }

  return matterTeam;
}

MatterTeam the_matter_team_list = LoadMatterTeam(wallscaseteamid);

using (APIServiceClient intapp_web_api = new APIServiceClient())
{
  // iterate through the usermemberships collection in the matterteam
  foreach (UserMembership user in the_matter_team_list.UserMemberships)
  {
    string _userid = user.UserId.ToString(); // get the user id
    string _therole = user.Role.ToString(); // get the user role

    // output the user team id and role to the console
    Console.WriteLine($"user team id: {_userid}");
    Console.WriteLine($"user team role: {_therole}");
  }
}
登入後複製
登入後複製

第 4 步:將使用者加入 Matter 團隊會導致內部衝突嗎?

string theid = "jsmith"; // the sAMAccountName ad account name of user to add
string wallsuserid = string.Empty;

wallsuserid = intapp_web_api.GetDMSUserID(UserIDSource.WindowsNetworkLogon, $@"YourDomainName\{theid}") // change "YourDomainName" to your domain name

// check if wallsuserid contains a value
if (string.IsNullOrEmpty(wallsuserid))
{
  Console.WriteLine("the user you are trying to add to Walls team does not exists in Walls");
  return;
}
登入後複製
登入後複製

第 5 步:最後,將使用者加入 Matter 團隊。

string matterID = "01234"; // matterID supplied by you

try
{
  matterTeamID = intapp_web_api.GetMatterTeamForMatter(matterID);
}
catch (Exception ex)
{
  if (ex.Message.Contains("The matter") && ex.Message.Contains("does not exist"))
  {
    Console.WriteLine("the matter does do not exist");
    return;
  }
  else
  {
    Console.WriteLine(ex.Message);
    return;
  }
}
登入後複製

結論
IntApp Walls API 提供了一套全面的操作,用於管理事務團隊成員資格和保護敏感資訊。從檢索團隊詳細資訊到在檢查衝突時新增成員,這些 API 功能可以與您的工作流程無縫整合並遵守道德牆政策。透過正確的實施,管理事務團隊將成為一個簡化且有效率的流程,以維護資料完整性。

以上是使用 IntApp Walls API 處理事務團隊成員資格的詳細內容。更多資訊請關注PHP中文網其他相關文章!

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

熱門話題

Java教學
1677
14
CakePHP 教程
1431
52
Laravel 教程
1334
25
PHP教程
1280
29
C# 教程
1257
24
C#與C:歷史,進化和未來前景 C#與C:歷史,進化和未來前景 Apr 19, 2025 am 12:07 AM

C#和C 的歷史與演變各有特色,未來前景也不同。 1.C 由BjarneStroustrup在1983年發明,旨在將面向對象編程引入C語言,其演變歷程包括多次標準化,如C 11引入auto關鍵字和lambda表達式,C 20引入概念和協程,未來將專注於性能和系統級編程。 2.C#由微軟在2000年發布,結合C 和Java的優點,其演變注重簡潔性和生產力,如C#2.0引入泛型,C#5.0引入異步編程,未來將專注於開發者的生產力和雲計算。

C#vs. C:學習曲線和開發人員的經驗 C#vs. C:學習曲線和開發人員的經驗 Apr 18, 2025 am 12:13 AM

C#和C 的学习曲线和开发者体验有显著差异。1)C#的学习曲线较平缓,适合快速开发和企业级应用。2)C 的学习曲线较陡峭,适用于高性能和低级控制的场景。

什麼是C  中的靜態分析? 什麼是C 中的靜態分析? Apr 28, 2025 pm 09:09 PM

靜態分析在C 中的應用主要包括發現內存管理問題、檢查代碼邏輯錯誤和提高代碼安全性。 1)靜態分析可以識別內存洩漏、雙重釋放和未初始化指針等問題。 2)它能檢測未使用變量、死代碼和邏輯矛盾。 3)靜態分析工具如Coverity能發現緩衝區溢出、整數溢出和不安全API調用,提升代碼安全性。

C和XML:探索關係和支持 C和XML:探索關係和支持 Apr 21, 2025 am 12:02 AM

C 通過第三方庫(如TinyXML、Pugixml、Xerces-C )與XML交互。 1)使用庫解析XML文件,將其轉換為C 可處理的數據結構。 2)生成XML時,將C 數據結構轉換為XML格式。 3)在實際應用中,XML常用於配置文件和數據交換,提升開發效率。

C  中的chrono庫如何使用? C 中的chrono庫如何使用? Apr 28, 2025 pm 10:18 PM

使用C 中的chrono庫可以讓你更加精確地控制時間和時間間隔,讓我們來探討一下這個庫的魅力所在吧。 C 的chrono庫是標準庫的一部分,它提供了一種現代化的方式來處理時間和時間間隔。對於那些曾經飽受time.h和ctime折磨的程序員來說,chrono無疑是一個福音。它不僅提高了代碼的可讀性和可維護性,還提供了更高的精度和靈活性。讓我們從基礎開始,chrono庫主要包括以下幾個關鍵組件:std::chrono::system_clock:表示系統時鐘,用於獲取當前時間。 std::chron

C的未來:改編和創新 C的未來:改編和創新 Apr 27, 2025 am 12:25 AM

C 的未來將專注於並行計算、安全性、模塊化和AI/機器學習領域:1)並行計算將通過協程等特性得到增強;2)安全性將通過更嚴格的類型檢查和內存管理機制提升;3)模塊化將簡化代碼組織和編譯;4)AI和機器學習將促使C 適應新需求,如數值計算和GPU編程支持。

C:死亡還是簡單地發展? C:死亡還是簡單地發展? Apr 24, 2025 am 12:13 AM

1)c relevantduetoItsAverity and效率和效果臨界。 2)theLanguageIsconTinuellyUped,withc 20introducingFeaturesFeaturesLikeTuresLikeSlikeModeLeslikeMeSandIntIneStoImproutiMimproutimprouteverusabilityandperformance.3)

如何理解C  中的DMA操作? 如何理解C 中的DMA操作? Apr 28, 2025 pm 10:09 PM

DMA在C 中是指DirectMemoryAccess,直接內存訪問技術,允許硬件設備直接與內存進行數據傳輸,不需要CPU干預。 1)DMA操作高度依賴於硬件設備和驅動程序,實現方式因係統而異。 2)直接訪問內存可能帶來安全風險,需確保代碼的正確性和安全性。 3)DMA可提高性能,但使用不當可能導致系統性能下降。通過實踐和學習,可以掌握DMA的使用技巧,在高速數據傳輸和實時信號處理等場景中發揮其最大效能。

See all articles