public StringBuilder toString(StringBuilder sb) {
      sb.append("RangerPolicyItem={");
      sb.append("accessTypes={");
      if (accesses != null) {
        for (RangerPolicyItemAccess access : accesses) {
          if (access != null) {
            access.toString(sb);
          }
        }
      }
      sb.append("} ");
      sb.append("users={");
      if (users != null) {
        for (String user : users) {
          if (user != null) {
            sb.append(user).append(" ");
          }
        }
      }
      sb.append("} ");
      sb.append("groups={");
      if (groups != null) {
        for (String group : groups) {
          if (group != null) {
            sb.append(group).append(" ");
          }
        }
      }
      sb.append("} ");
      sb.append("conditions={");
      if (conditions != null) {
        for (RangerPolicyItemCondition condition : conditions) {
          if (condition != null) {
            condition.toString(sb);
          }
        }
      }
      sb.append("} ");
      sb.append("delegateAdmin={").append(delegateAdmin).append("} ");
      sb.append("}");

      return sb;
    }
@param delegateAdmin the delegateAdmin to set
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicy.java