Skip to content
Snippets Groups Projects
Commit 2d4a22a7 authored by vkovtun's avatar vkovtun
Browse files

BIS-772: Work in progress.

parent aca5af3e
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -129,6 +129,7 @@ import ch.ethz.sis.openbis.generic.asapi.v3.dto.sample.fetchoptions.SampleTypeFe
import ch.ethz.sis.openbis.generic.asapi.v3.dto.sample.search.SampleTypeSearchCriteria;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.space.Space;
import ch.ethz.sis.openbis.generic.asapi.v3.exceptions.NotFetchedException;
import ch.ethz.sis.openbis.generic.dssapi.v3.IDataStoreServerApi;
import ch.ethz.sis.openbis.generic.dssapi.v3.dto.datasetfile.DataSetFile;
import ch.ethz.sis.openbis.generic.dssapi.v3.dto.datasetfile.fetchoptions.DataSetFileFetchOptions;
import ch.ethz.sis.openbis.generic.dssapi.v3.dto.datasetfile.search.DataSetFileSearchCriteria;
......@@ -358,8 +359,11 @@ public class ExportExecutor implements IExportExecutor
final EntitiesVo entitiesVo, final Set<String> existingZipEntries,
final Map<String, Map<String, List<Map<String, String>>>> exportFields) throws IOException
{
// final IApplicationServerInternalApi v3 = CommonServiceProvider.getApplicationServerApi();
// final Collection<DataSet> dataSets = entitiesVo.getDataSets();
final IApplicationServerInternalApi v3 = CommonServiceProvider.getApplicationServerApi();
final IDataStoreServerApi v3Dss = CommonServiceProvider.getOriginalDataStoreServer();
// final Collection<DataSet> dataSets = entitiesVo.getDataSets();
final Collection<Sample> samples = entitiesVo.getSamples();
for (final Sample sample : samples)
......@@ -373,7 +377,9 @@ public class ExportExecutor implements IExportExecutor
{
final DataSetFileSearchCriteria criteria = new DataSetFileSearchCriteria();
criteria.withDataSet().withPermId().thatEquals(dataSetPermId);
final SearchResult<DataSetFile> results = v3Dss.searchFiles(sessionToken, criteria, new DataSetFileFetchOptions());
OPERATION_LOG.info(String.format("Found: %d files", results.getTotalCount()));
for (final DataSetFile file : results.getObjects())
......
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