public TisRolesMngr(ObtainSupportedPermissionsDelegate oSupportedPermissionsDelegate) : this() { m_oRoles = new DictionaryWithEvents <string, ITisRole>(); m_oSupportedPermissionsDelegate = oSupportedPermissionsDelegate; AddRole(TisRole.BUILTIN_ADMINISTRATORS_ROLE); }
public TisRole(string sRoleName, ObtainSupportedPermissionsDelegate oSupportedPermissionsDelegate) : this() { m_oPermissionMngr = new TisDefinedPermissionsMngr(); m_oSystemUserMngr = new TisSystemUsersMngr(); m_oSystemUserMngr.OnSystemUserAdded += new SystemUserAddedDelegate(OnSystemUserAddedHandler); m_oSystemUserMngr.OnFindSystemUserInNetGroup += new SystemUserInNetGroupDelegate(OnFindSystemUserInNetGroupHandler); m_sName = sRoleName; m_oSupportedPermissionsDelegate = oSupportedPermissionsDelegate; if (IsBuiltinAdministrators) { Description = BUILTIN_ADMINISTRATORS_ROLE_DESCRIPTION; } }