From 20e7f086427f1fe0aac1e5cb8e24f6fda568d50d Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 11 Sep 2007 15:10:02 +0000 Subject: [PATCH] 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 --- src/uk/ac/vamsas/client/simpleclient/SimpleClientFactory.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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", -- 1.7.10.2