Skip to content
Snippets Groups Projects
Commit 412d7d4b authored by felmer's avatar felmer
Browse files

SE-226 drawANewUniqueID() added

SVN: 15207
parent 5a303c51
No related branches found
No related tags found
No related merge requests found
......@@ -513,6 +513,19 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer
}
}
synchronized public long drawANewUniqueID()
{
checkSessionToken();
try
{
return service.drawANewUniqueID(sessionToken);
} catch (final InvalidSessionException ex)
{
authenticate();
return service.drawANewUniqueID(sessionToken);
}
}
synchronized public ExternalData tryGetDataSet(String sToken, String dataSetCode)
throws UserFailureException
{
......
......@@ -147,6 +147,12 @@ public interface IEncapsulatedOpenBISService
* Creates and returns a unique code for a new data set.
*/
public String createDataSetCode();
/**
* Creates a new unique ID which can be used to create codes which are guaranteed to be
* unique.
*/
public long drawANewUniqueID();
/**
* Returns the version of the service.
......
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