From: jprocter Date: Tue, 11 Sep 2007 15:10:02 +0000 (+0000) Subject: todo for importing stored session as a new session X-Git-Tag: Release_0.2~63 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=20e7f086427f1fe0aac1e5cb8e24f6fda568d50d;p=vamsas.git todo for importing stored session as a new session git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@457 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/simpleclient/SimpleClientFactory.java b/src/uk/ac/vamsas/client/simpleclient/SimpleClientFactory.java index d709f5d..8cc74a1 100644 --- a/src/uk/ac/vamsas/client/simpleclient/SimpleClientFactory.java +++ b/src/uk/ac/vamsas/client/simpleclient/SimpleClientFactory.java @@ -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",