Example #1
0
        private static String convertGrant(Grant grant)
        {
            StringBuilder builder = new StringBuilder();
            builder.Append("<Grant>");
            builder.Append(convertGrantee(grant.getGrantee()));
            builder.Append(convertPermission(grant.getPermission()));
            builder.Append("</Grant>");

            return builder.ToString();
        }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (this.GetType() == obj.GetType())
            {
                Grant other = (Grant)obj;
                if (this.permission.Equals(other.permission) &&
                    this.grantee.Equals(other.grantee))
                {
                    return(true);
                }
            }

            return(false);
        }