todo for importing stored session as a new session
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 11 Sep 2007 15:10:02 +0000 (15:10 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 11 Sep 2007 15:10:02 +0000 (15:10 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@457 be28352e-c001-0410-b1a7-c7978e42abec

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",