diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/EncapsulatedOpenBISService.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/EncapsulatedOpenBISService.java index cb352720f887f1188139bdb3b92569244050de4c..170f488dad4ed1cbd74f0b7abc52bb9c98636dba 100644 --- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/EncapsulatedOpenBISService.java +++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/EncapsulatedOpenBISService.java @@ -346,6 +346,21 @@ public final class EncapsulatedOpenBISService implements IEncapsulatedOpenBISSer } } + synchronized public List<ExternalData> listDataSetsByExperimentID(long experimentID) + throws UserFailureException + { + checkSessionToken(); + TechId id = new TechId(experimentID); + try + { + return service.listDataSetsByExperimentID(sessionToken, id); + } catch (InvalidSessionException ex) + { + authenticate(); + return service.listDataSetsByExperimentID(sessionToken, id); + } + } + synchronized public List<ExternalData> listDataSetsBySampleID(long sampleID, boolean showOnlyDirectlyConnected) { diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/IEncapsulatedOpenBISService.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/IEncapsulatedOpenBISService.java index e739a09146e756e1eebada5889e1a8ff461df78b..015f2ec16012b68bab3d9d1ccf4e9ce8c9c33116 100644 --- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/IEncapsulatedOpenBISService.java +++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/IEncapsulatedOpenBISService.java @@ -100,6 +100,12 @@ public interface IEncapsulatedOpenBISService */ public DataSetTypeWithVocabularyTerms getDataSetType(String dataSetTypeCode); + /** + * Lists all data sets of the specified experiment ID. + */ + public List<ExternalData> listDataSetsByExperimentID(long experimentID) + throws UserFailureException; + /** * Lists all data sets of the specified sample ID. *