public ITisRole[] ObtainAttachedToEntity(object oSecuredEntity) { ArrayList oAttachedRoles = new ArrayList(); foreach (ITisRole oRole in Roles.All) { if (oRole.Permissions.ObtainPermissionsSet(oSecuredEntity) != null) { oAttachedRoles.Add(oRole); } } ITisRole[] AttachedRoles = new ITisRole [oAttachedRoles.Count]; oAttachedRoles.CopyTo(AttachedRoles); return(AttachedRoles); }
public ITisRole[] AddRoles(string[] RolesName) { ITisRole oRole; ArrayList oRoles = new ArrayList(); foreach (string sRoleName in RolesName) { oRole = AddRole(sRoleName); if (!oRoles.Contains(oRole)) { oRoles.Add(oRole); } } ITisRole[] Roles = new ITisRole [oRoles.Count]; Roles = (ITisRole[])oRoles.ToArray(typeof(ITisRole)); return(Roles); }
private bool ValidateSystemUser(ITisRole oRoleToCheck, ITisSystemUser oSystemUser) { return(true); }
public bool ContainsRole(ITisRole oRole) { return(m_oRoles.ContainsValue(oRole)); }
private bool IsBuiltinAdministrators(ITisRole oCurrentRole) { return(oCurrentRole != null && oCurrentRole.IsBuiltinAdministrators); }
void ITisRoles.RemoveRole(ITisRole oRole) { Roles.RemoveRoles(new ITisRole[] { oRole }); }
public bool Contains(ITisRole oRole) { return(oRoleMngr.ContainsRole(oRole)); }
public RoleSystemUserArgs(ITisRole oRole, ITisSystemUser oSystemUser) : base(oSystemUser) { m_oRole = oRole; }
public RoleNameChangedArgs(ITisRole oRole, string sOldName) { m_oRole = oRole; m_sOldName = sOldName; }