Skip to content
Snippets Groups Projects
Commit 6b4c06bc authored by gakin's avatar gakin
Browse files

SSDM-4684: OpenbisSync commit ServiceFinderUtils

SVN: 37633
parent 2da5ca20
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ import ch.systemsx.cisd.openbis.generic.shared.ICommonServer;
*/
public class ServiceFinderUtils
{
public static EncapsulatedCommonServer getEncapsulatedCommonServer(String sessionToken, String openBisServerUrl)
public static ICommonServer getCommonServer(String sessionToken, String openBisServerUrl)
{
ServiceFinder finder = new ServiceFinder("openbis", "/rmi-common");
ICommonServer commonServer =
......@@ -41,6 +41,10 @@ public class ServiceFinderUtils
service.getVersion();
}
});
return EncapsulatedCommonServer.create(commonServer, sessionToken);
return commonServer;
}
public static EncapsulatedCommonServer getEncapsulatedCommonServer(String sessionToken, String openBisServerUrl)
{
return EncapsulatedCommonServer.create(getCommonServer(sessionToken, openBisServerUrl), sessionToken);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment