Пример #1
0
        public bool IsSubsetOf(IPermission target)
        {
            MBeanPermission other = target as MBeanPermission;

            if (other == null)
            {
                throw new ArgumentException("Incompatibile permission object.");
            }
            return(_impl.IsSubsetOf(other._impl));
        }
Пример #2
0
        public override bool IsSubsetOf(IPermission target)
        {
            if (target == null)
            {
                return(false);
            }
            MBeanCASPermission other = target as MBeanCASPermission;

            if (other == null)
            {
                throw new ArgumentException("Incompatibile permission object.");
            }
            return(_impl.IsSubsetOf(other._impl));
        }
Пример #3
0
 public MBeanPermissionImpl Union(MBeanPermissionImpl target)
 {
     VerifyAsNeeded();
     if (target == null)
     {
         return(this.Copy());
     }
     if (this.IsSubsetOf(target))
     {
         return(target.Copy());
     }
     else if (target.IsSubsetOf(this))
     {
         return(this.Copy());
     }
     else
     {
         return(null);
     }
 }
Пример #4
0
 public MBeanPermissionImpl Union(MBeanPermissionImpl target)
 {
     VerifyAsNeeded();
     if (target == null)
     {
         return this.Copy();
     }
     if (this.IsSubsetOf(target))
     {
         return target.Copy();
     }
     else if (target.IsSubsetOf(this))
     {
         return this.Copy();
     }
     else
     {
         return null;
     }
 }