Ejemplo n.º 1
0
        private bool OnFindSystemUserInNetGroupHandler(SystemUserInNetGroupArgs e)
        {
            string sSystemUserName = e.SystemUser.ToUpper();
            string sNetGroupName   = e.NetGroup.ToUpper();

            List <string> oNetGroups = default(List <string>);

            if (!m_oSystemUserNetGroups.ContainsKey(sSystemUserName))
            {
                oNetGroups = ObtainUserGroups(sSystemUserName);

                m_oSystemUserNetGroups[sSystemUserName] = oNetGroups;
            }
            else
            {
                oNetGroups = (List <string>)m_oSystemUserNetGroups [sSystemUserName];
            }

            foreach (string netGroup in oNetGroups)
            {
                if (StringUtil.CompareIgnoreCase(netGroup, sNetGroupName))
                {
                    return(true);
                }
            }

            return(false);
        }
        private ITisEventBinding InternalRemoveBinding(string oPersistKey, string sEventName)
        {
            EventBindingInfoMngr oBindingInfoMngr = null;

            if (m_oBindings.ContainsKey(oPersistKey))
            {
                oBindingInfoMngr = (EventBindingInfoMngr)m_oBindings [oPersistKey];
            }
            else
            {
                oBindingInfoMngr = new EventBindingInfoMngr();
            }

            ITisEventBinding eventBinding = oBindingInfoMngr.GetByEventName(sEventName);

            oBindingInfoMngr.Remove(new string[] { sEventName });

            return(eventBinding);
        }
Ejemplo n.º 3
0
 public bool ContainsRole(string sRoleName)
 {
     return(m_oRoles.ContainsKey(sRoleName));
 }
 public bool Contains(string sInvokeTypeName)
 {
     return(m_oInvokeTypes.ContainsKey(sInvokeTypeName));
 }
Ejemplo n.º 5
0
 public virtual bool ContainsPermissionsSet(string sPersistKey)
 {
     return(m_oPermissionsSets.ContainsKey(sPersistKey));
 }
 public bool Contains(string sEventName)
 {
     return(m_oEventsBindingInfo.ContainsKey(sEventName));
 }