refactored org to uk
[vamsas.git] / src / org / vamsas / client / simpleclient / SimpleClient.java
index e824549..2041c11 100644 (file)
@@ -23,6 +23,7 @@ import org.vamsas.client.ClientHandle;
 import org.vamsas.client.Events;
 import org.vamsas.client.IClient;
 import org.vamsas.client.IClientDocument;
+import org.vamsas.client.IObjectUpdate;
 import org.vamsas.client.InvalidSessionUrnException;
 import org.vamsas.client.SessionHandle;
 import org.vamsas.client.UserHandle;
@@ -49,6 +50,10 @@ public class SimpleClient implements IClient {
   protected EventGeneratorThread evgen = null;
   protected ClientDocument cdocument = null;
   /**
+   * object hash table that persists in each client holding vorbaIds and hash values after a document write
+   */
+  protected Hashtable extantobjects=null;
+  /**
    * construct a transient IdFactory instance - this should last only as long as the 
    * SimpleClient object holds the lock on the vamsas document being created/manipulated.
    * @return
@@ -152,7 +157,7 @@ public class SimpleClient implements IClient {
    * @return user field for a provenance entry
    */
   protected String getProvenanceUser() {
-    return new String(user.getFullName()+" ["+client.getClientUrn()+"]");
+    return new String(user.getFullName());
   }
   /**
    * construct a provenance entry for this client with the specified action string.
@@ -160,8 +165,7 @@ public class SimpleClient implements IClient {
    * @return properly completed provenance entry
    */
   protected Entry getProvenanceEntry(String action) {
-    // VAMSAS: modify schema to allow referencing of user field (plus other issues, ClientUrn field, machine readable action, input parameters, additional data generated notes
-    Entry prov = ProvenanceStuff.newProvenanceEntry(getProvenanceUser(), action);
+    Entry prov = ProvenanceStuff.newProvenanceEntry(client.getClientUrn(), getProvenanceUser(), action);
     return prov;
   }
   private Hashtable handlers = initHandlers();
@@ -389,4 +393,24 @@ public class SimpleClient implements IClient {
     // TODO LATER: implement SimpleClient.importDocument()
     log.error("importDocument is not yet implemented for a SimpleClient Session.");
   }
+
+  public IObjectUpdate getUpdateHandler(Class rootObject) {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  public IObjectUpdate[] getUpdateHandlers() {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  public void removeUpdateHandler(Class rootObject) {
+    // TODO Auto-generated method stub
+    
+  }
+
+  public void setUpdateHandler(IObjectUpdate handler) {
+    // TODO Auto-generated method stub
+    
+  }
 }