Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            MBeanPermission other = obj as MBeanPermission;

            if (other == null)
            {
                return(false);
            }
            return(this._impl.Equals(other._impl));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
0
        public IPermission Union(IPermission target)
        {
            if (target == null)
            {
                return(this.Copy());
            }
            MBeanPermission other = target as MBeanPermission;

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

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