예제 #1
0
        public override bool Equals(object obj)
        {
            MBeanCASPermission other = obj as MBeanCASPermission;

            if (other == null)
            {
                return(false);
            }
            return(this._impl.Equals(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 override IPermission Union(IPermission target)
        {
            if (target == null)
            {
                return(this.Copy());
            }
            MBeanCASPermission other = target as MBeanCASPermission;

            if (other == null)
            {
                throw new ArgumentException("Incompatibile permission object.");
            }
            MBeanPermissionImpl result = _impl.Union(other._impl);

            return(result != null ? new MBeanCASPermission(result) : null);
        }