public bool IsSubsetOf(IPermission target) { MBeanPermission other = target as MBeanPermission; if (other == null) { throw new ArgumentException("Incompatibile permission object."); } return(_impl.IsSubsetOf(other._impl)); }
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)); }
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); } }
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; } }