我想准备非常快速的“用户组权限”,但这非常困难,例如如果我想为管理添加访问权限 -> 位置查看此软件仅授予父级权限,但不授予此父级中的所有节点。我应该怎么做才能解决这个问题?
如果我要单击维度集,我需要对此父级中的所有子级授予权限。你知道我必须做什么吗?
public void MCOVgrantFullAccess(SecurityKeySet _startSecurityKeySet = null)
{
//klasa systemowa dictionary http://msdn.microsoft.com/en-us/library/aa600103(v=ax.50).aspx
Dictionary dictionary = new Dictionary();
DictSecurityKey dictSecurityKey;
int i;
if (_startSecurityKeySet)
securitySet = _startSecurityKeySet;
else
securitySet = SysSecurity::constructSecurityKeySet();
// securityKeyCnt() An integer that indicates the number of security keys. http://msdn.microsoft.com/en-us/library/aa600103(v=ax.50).aspx
// i = 365
for (i=dictionary.securityKeyCnt(); i; i--)
{
dictSecurityKey = new DictSecurityKey(dictionary.securityKeyCnt2Id(1));
if (!dictSecurityKey.parentSecurityKeyId())
{
securitySet.access(dictSecurityKey.id(), AccessType::Delete);
}
}
SysSecurityFormSetup::delete(userGroupId, domainId); //Delete setup of form controls
formSetupMap = new Map(Types::String, Types::Class); //Clear cache
}