Skip to content
Snippets Groups Projects
Commit 3216e831 authored by felmer's avatar felmer
Browse files

LMS-1588 extend ETLService by method tryToGetSampleIdentifier()

SVN: 16718
parent 15acaad5
No related branches found
No related tags found
No related merge requests found
......@@ -316,6 +316,19 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer
}
}
synchronized public SampleIdentifier tryToGetSampleIdentifier(String samplePermID) throws UserFailureException
{
checkSessionToken();
try
{
return service.tryToGetSampleIdentifier(sessionToken, samplePermID);
} catch (final InvalidSessionException ex)
{
authenticate();
return service.tryToGetSampleIdentifier(sessionToken, samplePermID);
}
}
synchronized public ExperimentType getExperimentType(String experimentTypeCode)
throws UserFailureException
{
......
......@@ -98,6 +98,13 @@ public interface IEncapsulatedOpenBISService
public Sample tryGetSampleWithExperiment(final SampleIdentifier sampleIdentifier)
throws UserFailureException;
/**
* Tries to get the sample identifier for the sample with specified permanent ID.
*
* @return <code>null</code> if nothing found.
*/
public SampleIdentifier tryToGetSampleIdentifier(String samplePermID) throws UserFailureException;
/**
* Gets the experiment type with assigned property types for the specified experiment type code.
*/
......
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