@@ -0,0 +1,2218 @@
+package com.google.sps.workspace;%0A%0Aimport java.util.Objects;%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.KeyFactory;%0A%0A/**%0A * Provides an interface to access and modify workspaces in the datastore.%0A * The contents of this object will only reflect the current state of the %0A * entities. It will not update with the datastore.%0A */%0Apublic class Workspace %7B%0A  private static final String KIND = %22Workspace%22;%0A%0A  private final transient DatastoreService datastore;%0A  private String studentUID;%0A  private String TaUID;%0A  private String workspaceID;%0A  %0A  private Workspace() %7B%0A    datastore = DatastoreServiceFactory.getDatastoreService();%0A  %7D%0A%0A  public Workspace(String studentUID, String TaUID) %7B%0A    this();%0A    this.studentUID = Objects.requireNonNull(studentUID);%0A    this.TaUID = Objects.requireNonNull(TaUID);%0A%0A    Entity entity = new Entity(KIND);%0A    entity.setProperty(%22studentUID%22, studentUID);%0A    entity.setProperty(%22taUID%22, TaUID);%0A    %0A    workspaceID = KeyFactory.keyToString(datastore.put(entity));%0A  %7D%0A%0A  public Workspace(String workspaceID) throws EntityNotFoundException %7B%0A    this();%0A    this.workspaceID = Objects.requireNonNull(workspaceID);%0A%0A    Entity entity = datastore.get(KeyFactory.stringToKey(workspaceID));%0A    studentUID = (String) entity.getProperty(%22studentUID%22);%0A    TaUID = (String) entity.getProperty(%22taUID%22);%0A  %7D%0A%0A  /**%0A   * @return the studentUID%0A   */%0A  public String getStudentUID() %7B%0A    return studentUID;%0A  %7D%0A%0A  /**%0A   * @return the taUID%0A   */%0A  public String getTaUID() %7B%0A    return TaUID;%0A  %7D%0A%0A  /**%0A   * @return the workspaceID%0A   */%0A  public String getWorkspaceID() %7B%0A    return workspaceID;%0A  %7D%0A%0A  public void update(String studentID, String TaUID) throws EntityNotFoundException %7B%0A    Entity entity = datastore.get(KeyFactory.stringToKey(workspaceID));%0A    entity.setProperty(%22studentUID%22, studentID);%0A    entity.setProperty(%22taUID%22, TaUID);%0A    datastore.put(entity);%0A%0A    this.studentUID = studentID;%0A    this.TaUID = TaUID;%0A  %7D%0A%7D

Add initial Workspace class.