IntApp Walls API 是一个强大的工具,用于管理道德墙并安全地控制对敏感数据的访问。通过利用其运营,开发人员可以与事务团队高效互动、管理成员资格并确保遵守保密要求。
Intapp Walls API 是一种 SOAP Web 服务,提供用于与 Intapp Walls 应用程序交互的编程接口。它被部署为标准组件 Web 服务。
为了简单起见,本文档中的示例代码省略了错误检查、异常处理、日志记录等实践。它仅用于说明目的,并不一定反映最佳编码实践。
这里我将介绍两个关键场景:
- 检索并列出事务团队成员资格。
- 向现有事务团队添加新成员。
通过了解和使用 IntApp Walls API 操作(例如“GetMatterTeamForMatter”、“LoadMatterTeam”和“AddUsersToMatterTeam”),您可以简化与道德墙管理相关的任务。以下示例包括代码片段和分步指导。
本文档不会涵盖配置对 IntApp Walls API 的开发访问的细节。但是,管理解决方案必须安装在您的本地域上,并且通常可以通过名为“APIService.svc”的文件访问 Web 服务,该文件应作为服务引用添加到 Visual Studio 中。
示例代码引用了以下 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 服务引用的名称。
第 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 服务引用的名称。
第 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中文网其他相关文章!

在C 中使用XML是因为它提供了结构化数据的便捷方式,尤其在配置文件、数据存储和网络通信中不可或缺。1)选择合适的库,如TinyXML、pugixml、RapidXML,根据项目需求决定。2)了解XML解析和生成的两种方式:DOM适合频繁访问和修改,SAX适用于大文件或流数据。3)优化性能时,TinyXML适合小文件,pugixml在内存和速度上表现好,RapidXML处理大文件优异。

C#和C 的主要区别在于内存管理、多态性实现和性能优化。1)C#使用垃圾回收器自动管理内存,C 则需要手动管理。2)C#通过接口和虚方法实现多态性,C 使用虚函数和纯虚函数。3)C#的性能优化依赖于结构体和并行编程,C 则通过内联函数和多线程实现。

C 中解析XML数据可以使用DOM和SAX方法。1)DOM解析将XML加载到内存,适合小文件,但可能占用大量内存。2)SAX解析基于事件驱动,适用于大文件,但无法随机访问。选择合适的方法并优化代码可提高效率。

C 在游戏开发、嵌入式系统、金融交易和科学计算等领域中的应用广泛,原因在于其高性能和灵活性。1)在游戏开发中,C 用于高效图形渲染和实时计算。2)嵌入式系统中,C 的内存管理和硬件控制能力使其成为首选。3)金融交易领域,C 的高性能满足实时计算需求。4)科学计算中,C 的高效算法实现和数据处理能力得到充分体现。

C 没有死,反而在许多关键领域蓬勃发展:1)游戏开发,2)系统编程,3)高性能计算,4)浏览器和网络应用,C 依然是主流选择,展现了其强大的生命力和应用场景。

C#和C 的主要区别在于语法、内存管理和性能:1)C#语法现代,支持lambda和LINQ,C 保留C特性并支持模板。2)C#自动内存管理,C 需要手动管理。3)C 性能优于C#,但C#性能也在优化中。

在C 中处理XML数据可以使用TinyXML、Pugixml或libxml2库。1)解析XML文件:使用DOM或SAX方法,DOM适合小文件,SAX适合大文件。2)生成XML文件:将数据结构转换为XML格式并写入文件。通过这些步骤,可以有效地管理和操作XML数据。

在C 中处理XML数据结构可以使用TinyXML或pugixml库。1)使用pugixml库解析和生成XML文件。2)处理复杂的嵌套XML元素,如书籍信息。3)优化XML处理代码,建议使用高效库和流式解析。通过这些步骤,可以高效处理XML数据。


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

mPDF
mPDF是一个PHP库,可以从UTF-8编码的HTML生成PDF文件。原作者Ian Back编写mPDF以从他的网站上“即时”输出PDF文件,并处理不同的语言。与原始脚本如HTML2FPDF相比,它的速度较慢,并且在使用Unicode字体时生成的文件较大,但支持CSS样式等,并进行了大量增强。支持几乎所有语言,包括RTL(阿拉伯语和希伯来语)和CJK(中日韩)。支持嵌套的块级元素(如P、DIV),

禅工作室 13.0.1
功能强大的PHP集成开发环境

SecLists
SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

螳螂BT
Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

DVWA
Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中