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;
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
* @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.
* @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();
// 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
+
+ }
}