From 1cc50499ea49b8fd214b1e1f888d7d87df0f58f4 Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Fri, 10 Jun 2011 14:09:44 +0000 Subject: [PATCH] LMS-2304 Screening: image viewer does not start anymore SVN: 21674 --- .../ScreeningOpenbisServiceFacadeFactory.java | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningOpenbisServiceFacadeFactory.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningOpenbisServiceFacadeFactory.java index 770e5d1aa36..97f4e987cc6 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningOpenbisServiceFacadeFactory.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningOpenbisServiceFacadeFactory.java @@ -16,8 +16,6 @@ package ch.systemsx.cisd.openbis.plugin.screening.client.api.v1; - - /** * Default implementation of {@link IScreeningOpenbisServiceFacadeFactory}. * @@ -39,6 +37,29 @@ public class ScreeningOpenbisServiceFacadeFactory implements IScreeningOpenbisSe { return ScreeningOpenbisServiceFacade.tryCreate(sessionToken, serverUrl); } - - + + /** + * Creates a service facade which communicates with the openBIS server at the specified URL. + * Authenticates the user. + * + * @return null if the user could not be authenticated. + */ + public static IScreeningOpenbisServiceFacade tryCreate(String userId, String userPassword, + String serverUrl) + { + return INSTANCE.tryToCreate(userId, userPassword, serverUrl); + } + + /** + * Creates a service facade which communicates with the openBIS server at the specified URL for + * an authenticated user. + * + * @param sessionToken The session token for the authenticated user + * @param serverUrl The URL for the openBIS application server + */ + public static IScreeningOpenbisServiceFacade tryCreate(String sessionToken, String serverUrl) + { + return INSTANCE.tryToCreate(sessionToken, serverUrl); + } + } -- GitLab