Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
2d4a22a7
Commit
2d4a22a7
authored
1 year ago
by
vkovtun
Browse files
Options
Downloads
Patches
Plain Diff
BIS-772: Work in progress.
parent
aca5af3e
No related branches found
No related tags found
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server-application-server/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/exporter/ExportExecutor.java
+8
-2
8 additions, 2 deletions
...ric/server/asapi/v3/executor/exporter/ExportExecutor.java
with
8 additions
and
2 deletions
server-application-server/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/exporter/ExportExecutor.java
+
8
−
2
View file @
2d4a22a7
...
...
@@ -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
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment