网站首页
网站导航
Ctrl+D收藏
首 页
代码段
源码包
文档库
工具箱
代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Domino
】
得到数据库存取控制列表中某个角色的人员
作者:
/ 发布于
2014/7/25
/
984
Function GetRoleMembers(rolename As String) As String Dim session As New NotesSession Dim db As NotesDatabase Dim acl As NotesACL Dim entry As NotesACLEntry Dim stringmembers As String Dim foundRole As Variant Dim count As Integer Set db = session.CurrentDatabase Set acl = db.ACL foundRole = False ' check to see if the role exists in the database Forall r In acl.Roles If ( r = "[" & roleName & "]" ) Then foundRole = True Exit Forall End If End Forall If Not foundRole Then Messagebox _ ( "Sorry, " & roleName & " is not a role" ) ' if the role exists, check each acl entry to see if role ' is enabled for entry ' if so, add entry name to the People field ' on the current document, ' followed by a semicolon, the multi-value separator 'Evaluate({(@Name([Abbreviate];entry.Name))}),Evaluate("(@Text(@Name([Abbreviate];entry.Name)))") Else Set entry = acl.GetFirstEntry While Not ( entry Is Nothing ) If entry.IsRoleEnabled( roleName ) Then If count=0 Then stringmembers =stringmembers + entry.Name Else stringmembers=stringmembers+","+entry.Name End If count=count+1 End If Set entry = acl.GetNextEntry( entry ) Wend End If ' refresh current document so People field displays nicely ' Msgbox stringmembers GetRolemembers = stringmembers End Function
评论列表
本站所提供的代码,版权归原作者所有,若有侵犯作者版权,请与我们联系,我们将立即删除或修改。谢谢!
本站所有代码发布及提供者。
试试其它关键字
同语言下
.
LotusDomino页面自动注册用户
.
多 Notes 文档中附件批量汇总到 Notes 文档中
.
多 Notes 文档中附件批量导出到本地系统
.
使用lotusscript获得群组中的用户列表_lotus notes
.
利用程序增加角色
.
关闭计算机
.
检验数字域
.
利用程序获取计算机名称及登陆用户名
.
清理收件夹的代理Code for CleanupInbox agent
.
邮箱中显示中文等价名
可能有用的
.
LotusDomino页面自动注册用户
.
多 Notes 文档中附件批量汇总到 Notes 文档中
.
多 Notes 文档中附件批量导出到本地系统
.
使用lotusscript获得群组中的用户列表_lotus notes
.
利用程序增加角色
.
关闭计算机
.
检验数字域
.
利用程序获取计算机名称及登陆用户名
.
清理收件夹的代理Code for CleanupInbox agent
.
邮箱中显示中文等价名
贡献的其它代码
Label
地图
本站
我们
服务
版权
联系
回馈
博客