todo for importing stored session as a new session
[vamsas.git] / src / uk / ac / vamsas / client / simpleclient / SimpleClientFactory.java
index d709f5d..8cc74a1 100644 (file)
@@ -159,6 +159,11 @@ public class SimpleClientFactory implements IClientFactory {
     // create client instance
     IClient client = null;
 
+    // TODO: implement 'opening stored session' opening mechanism
+    // 1. existing session document URL is vdoc://... ?
+    // 2. check for sessionUrn being of this form.
+    // 3. if it is - locate the file and pass to new VamsasSession
+
     try {
       File sessionDirectory = this.convertSessionUrnToFile(sessionUrn);
       // create session
@@ -166,7 +171,7 @@ public class SimpleClientFactory implements IClientFactory {
           .debug("found session directory "
               + sessionDirectory.getAbsolutePath());
       VamsasSession vamsasSession = new VamsasSession(sessionDirectory);
-
+      
       /*
        * if (userId == null) { //create a default userHandle //with current OS
        * user and hostname userId = new UserHandle(System.getProperty("user.name",