Skip to content
Snippets Groups Projects
Commit b23ff0e5 authored by jakubs's avatar jakubs
Browse files

SP-543 BIS-355 add method to list sample identifiers

SVN: 28575
parent b4f81611
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ package ch.systemsx.cisd.openbis.dss.generic.server;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.time.DateUtils;
import org.apache.log4j.Logger;
......@@ -256,6 +257,13 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer
return service.tryGetSampleIdentifier(session.getSessionToken(), samplePermID);
}
@Override
public Map<String, SampleIdentifier> listSampleIdentifiers(List<String> samplePermID)
throws UserFailureException
{
return service.listSamplesByPermId(session.getSessionToken(), samplePermID);
}
@Override
public ExperimentType getExperimentType(String experimentTypeCode) throws UserFailureException
{
......
......@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.dss.generic.shared;
import java.util.Date;
import java.util.List;
import java.util.Map;
import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.openbis.dss.generic.shared.dto.DataSetInformation;
......@@ -133,6 +134,15 @@ public interface IEncapsulatedOpenBISService extends IEncapsulatedBasicOpenBISSe
@ManagedAuthentication
public SampleIdentifier tryGetSampleIdentifier(String samplePermID) throws UserFailureException;
/**
* Tries to get the sample identifier for the sample with specified permanent ID.
*
* @return <code>null</code> if nothing found.
*/
@ManagedAuthentication
public Map<String, SampleIdentifier> listSampleIdentifiers(List<String> samplePermID)
throws UserFailureException;
/**
* For given (@code name} and {@code ownerId} returns the corresponding {@link Metaproject}
*/
......
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