@@ -0,0 +1,924 @@
+package com.google.sps.util;%0A%0Aimport com.google.appengine.api.datastore.DatastoreService;%0Aimport com.google.appengine.api.datastore.DatastoreServiceFactory;%0Aimport com.google.appengine.api.datastore.Entity;%0Aimport com.google.appengine.api.datastore.EntityNotFoundException;%0Aimport com.google.appengine.api.datastore.Key;%0Aimport com.google.appengine.api.datastore.KeyFactory;%0A%0A// Class for helping get public user info based on query data.%0Apublic class Users %7B%0A  %0A  /**%0A   * returns the display name of the user with the provided ID.%0A   * @param authorID%0A   */%0A  public static String getAuthorName(String authorID) %7B%0A    DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();%0A    Key userKey = KeyFactory.createKey(%22User%22, authorID);%0A    Entity user;%0A    try %7B%0A      user = datastore.get(userKey)%0A    %7D catch %7B%0A      System.out.println(%22Invalid ID%22);%0A      return;%0A    %7D%0A%0A    return user.getName();%0A  %7D%0A%7D

add helper function for getting a user name based on an authorID