OThinker.H3.Acl.IBizRuleAclManager
说明:规则定义权限控制器
访问入口:Engine.BizRuleAclManager
示例:
Engine.BizRuleAclManager.Add(new Acl.BizRuleAcl()); |
方法名称:Check(System.String[],System.String,System.String,OThinker.H3.Acl.AclType)
方法说明 | 查询指定的用户/组/组织单元中是否存在用户/组/组织单元具有某个规则的某种权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
Users | System.String[] | 用户/组/组织单元ID数组 |
BizRuleCode | System.String | 业务规则编码 |
DecisionMatrixCode | System.String | 决策表编码 |
AclType | OThinker.H3.Acl.AclType | 权限类型 |
返回值 | 如果存在某个用户/组/组织单元具有该权限,则返回true;否则返回false |
方法名称:QueryDataTable(System.String[],System.String,System.String)
方法说明 | 获得当前规则定义的权限控制表 | |
输入参数 | ||
名称 | 类型 | 说明 |
Users | System.String[] | 用户/组/组织单元ID数组,如果为空,则不将该参数作为搜索条件 |
BizRuleCode | System.String | 业务规则编码 |
DecisionMatrixCode | System.String | 决策表编码 |
返回值 | 查询到的表 |
方法名称:Add(OThinker.H3.Acl.BizRuleAcl)
方法说明 | 添加一个权限控制单元 | |
输入参数 | ||
名称 | 类型 | 说明 |
Acl | OThinker.H3.Acl.BizRuleAcl | 权限控制单元 |
返回值 | 如果添加成功,则返回true,否则返回false |
方法名称:GetBizRuleAcl(System.String)
方法说明 | 获得规则的权限控制单元 | |
输入参数 | ||
名称 | 类型 | 说明 |
AclID | System.String | 权限ID |
返回值 | 流程模板权限 |
方法名称:GetUserAcls(System.String[])
方法说明 | 获得用户拥有的所有权限 | |
输入参数 | ||
名称 | 类型 | 说明 |
Users | System.String[] | 用户范围,实际上,这里也可以是组织单元ID或者其他组织类型的ID |
返回值 | 拥有权限的功能权限 |
方法名称:Update(OThinker.H3.Acl.BizRuleAcl[])
方法说明 | 更新 | |
输入参数 | ||
名称 | 类型 | 说明 |
Acls | OThinker.H3.Acl.BizRuleAcl[] | 要更新的权限对象 |
返回值 | 无 |
方法名称:Delete(System.String)
方法说明 | 删除 | |
输入参数 | ||
名称 | 类型 | 说明 |
AclID | System.String | 权限控制单元的ID |
返回值 | 无 |