public static SQLPrivTypeGrant getSQLPrivTypeGrant(
      SQLPrivilegeType privType, boolean isGrant) {
    String typeName = privType.name() + (isGrant ? "_WGRANT" : "_NOGRANT");
    return SQLPrivTypeGrant.valueOf(typeName);
  }
Find matching enum
@param privType
@param isGrant
@return
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLPrivTypeGrant.java