public static List<HivePrivilegeObject> getHivePrivDbObjects(List<String> dbList) {
    List<HivePrivilegeObject> objs = new ArrayList<HivePrivilegeObject>();
    for (String dbname : dbList) {
      objs.add(new HivePrivilegeObject(HivePrivilegeObjectType.DATABASE, dbname, dbname));
    }
    return objs;

  }
Convert list of dbnames into list of HivePrivilegeObject
@param dbList
@return
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HivePrivilegeObjectUtils.java