Class ScreeningOpenbisServiceFacadeFactory
- java.lang.Object
-
- ch.systemsx.cisd.openbis.plugin.screening.client.api.v1.ScreeningOpenbisServiceFacadeFactory
-
- All Implemented Interfaces:
IScreeningOpenbisServiceFacadeFactory
public class ScreeningOpenbisServiceFacadeFactory extends java.lang.Object implements IScreeningOpenbisServiceFacadeFactory
Default implementation ofIScreeningOpenbisServiceFacadeFactory
.
-
-
Field Summary
Fields Modifier and Type Field Description static IScreeningOpenbisServiceFacadeFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description ScreeningOpenbisServiceFacadeFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IScreeningOpenbisServiceFacade
tryCreate(java.lang.String sessionToken, java.lang.String serverUrl)
Creates a service facade which communicates with the openBIS server at the specified URL for an authenticated user.static IScreeningOpenbisServiceFacade
tryCreate(java.lang.String userId, java.lang.String userPassword, java.lang.String serverUrl)
Creates a service facade which communicates with the openBIS server at the specified URL.IScreeningOpenbisServiceFacade
tryToCreate(java.lang.String sessionToken, java.lang.String serverUrl)
Tries to create a facade object for specified session token and server URL.IScreeningOpenbisServiceFacade
tryToCreate(java.lang.String userId, java.lang.String userPassword, java.lang.String serverUrl)
Tries to create a facade object for specified user ID, password and server URL.
-
-
-
Field Detail
-
INSTANCE
public static final IScreeningOpenbisServiceFacadeFactory INSTANCE
-
-
Method Detail
-
tryToCreate
public IScreeningOpenbisServiceFacade tryToCreate(java.lang.String userId, java.lang.String userPassword, java.lang.String serverUrl)
Description copied from interface:IScreeningOpenbisServiceFacadeFactory
Tries to create a facade object for specified user ID, password and server URL.- Specified by:
tryToCreate
in interfaceIScreeningOpenbisServiceFacadeFactory
- Returns:
- null if the user could not be authenticated.
-
tryToCreate
public IScreeningOpenbisServiceFacade tryToCreate(java.lang.String sessionToken, java.lang.String serverUrl)
Description copied from interface:IScreeningOpenbisServiceFacadeFactory
Tries to create a facade object for specified session token and server URL.- Specified by:
tryToCreate
in interfaceIScreeningOpenbisServiceFacadeFactory
- Returns:
- null if the session token is invalid.
-
tryCreate
public static IScreeningOpenbisServiceFacade tryCreate(java.lang.String userId, java.lang.String userPassword, java.lang.String serverUrl)
Creates a service facade which communicates with the openBIS server at the specified URL. Authenticates the user.- Returns:
- null if the user could not be authenticated.
-
tryCreate
public static IScreeningOpenbisServiceFacade tryCreate(java.lang.String sessionToken, java.lang.String serverUrl)
Creates a service facade which communicates with the openBIS server at the specified URL for an authenticated user.- Parameters:
sessionToken
- The session token for the authenticated userserverUrl
- The URL for the openBIS application server
-
-