Ejemplo n.º 1
0
        private void AddToFullRights(HashMap <QNameManager.QName, Right> map)
        {
            Iterator <QNameManager.QName> iterator = map.GetKeySet().GetIterator();

            while (iterator.HasNext())
            {
                QNameManager.QName key = iterator.Next();
                Right right            = map.Get(key);
                Right right2           = this._fullRightsMap.Get(key);
                if (right2 == null)
                {
                    right2 = right.Duplicate();
                    this._fullRightsMap.Put(key, right2);
                }
                else
                {
                    right2.Add(right);
                }
                if (right.GrantableRights != null)
                {
                    if (right2.GrantableRights == null)
                    {
                        right2.GrantableRights = right.GrantableRights.Duplicate();
                    }
                    else
                    {
                        right2.GrantableRights.Add(right.GrantableRights);
                    }
                }
            }
        }