Esempio n. 1
0
        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));
 }
Esempio n. 5
0
 private bool IsBuiltinAdministrators(ITisRole oCurrentRole)
 {
     return(oCurrentRole != null && oCurrentRole.IsBuiltinAdministrators);
 }
Esempio n. 6
0
 void ITisRoles.RemoveRole(ITisRole oRole)
 {
     Roles.RemoveRoles(new ITisRole[] { oRole });
 }
Esempio n. 7
0
 public bool Contains(ITisRole oRole)
 {
     return(oRoleMngr.ContainsRole(oRole));
 }
Esempio n. 8
0
 public RoleSystemUserArgs(ITisRole oRole, ITisSystemUser oSystemUser) : base(oSystemUser)
 {
     m_oRole = oRole;
 }
Esempio n. 9
0
 public RoleNameChangedArgs(ITisRole oRole, string sOldName)
 {
     m_oRole    = oRole;
     m_sOldName = sOldName;
 }