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
67b8a367
Commit
67b8a367
authored
10 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-387: fixing bug related to gather properties of conatiner, sample/experiment of container
SVN: 31733
parent
8d246932
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/DistributedPackagingDataSetFileOperationsManager.java
+18
-14
18 additions, 14 deletions
...ard/DistributedPackagingDataSetFileOperationsManager.java
with
18 additions
and
14 deletions
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/DistributedPackagingDataSetFileOperationsManager.java
+
18
−
14
View file @
67b8a367
...
@@ -19,6 +19,7 @@ package ch.systemsx.cisd.openbis.dss.generic.server.plugins.standard;
...
@@ -19,6 +19,7 @@ package ch.systemsx.cisd.openbis.dss.generic.server.plugins.standard;
import
java.io.File
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Properties
;
import
java.util.Properties
;
import
org.apache.log4j.Logger
;
import
org.apache.log4j.Logger
;
...
@@ -45,6 +46,7 @@ import ch.systemsx.cisd.openbis.dss.generic.shared.ServiceProvider;
...
@@ -45,6 +46,7 @@ import ch.systemsx.cisd.openbis.dss.generic.shared.ServiceProvider;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.ContainerDataSet
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.ContainerDataSet
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.DatasetDescription
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.DatasetDescription
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ExperimentIdentifierFactory
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ExperimentIdentifierFactory
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifierFactory
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifierFactory
;
...
@@ -333,23 +335,25 @@ public class DistributedPackagingDataSetFileOperationsManager implements IDataSe
...
@@ -333,23 +335,25 @@ public class DistributedPackagingDataSetFileOperationsManager implements IDataSe
{
{
dataSet
.
setSample
(
getService
().
tryGetSampleWithExperiment
(
SampleIdentifierFactory
.
parse
(
sampleIdentifier
)));
dataSet
.
setSample
(
getService
().
tryGetSampleWithExperiment
(
SampleIdentifierFactory
.
parse
(
sampleIdentifier
)));
}
}
if
(
dataSet
.
getContainerDataSets
()
!=
null
)
{
List
<
ContainerDataSet
>
containerDataSets
=
dataSet
.
getContainerDataSets
();
for
(
int
i
=
0
;
i
<
dataSet
.
getContainerDataSets
().
size
();
i
++)
{
if
(
containerDataSets
!=
null
)
//Container
{
ContainerDataSet
container
=
dataSet
.
getContainerDataSets
().
get
(
i
);
for
(
ContainerDataSet
containerDataSet
:
containerDataSets
)
AbstractExternalData
containerDataSet
=
getService
().
tryGetDataSet
(
container
.
getCode
());
{
dataSet
.
getContainerDataSets
().
set
(
i
,
(
ContainerDataSet
)
containerDataSet
);
// Inject container properties
//Container Experiment
if
(
containerDataSet
.
getProperties
()
==
null
)
String
containerExperimentIdentifier
=
datasetDescription
.
getExperimentIdentifier
();
if
(
containerExperimentIdentifier
!=
null
)
{
{
container
.
setExperiment
(
getService
().
tryGetExperiment
(
ExperimentIdentifierFactory
.
parse
(
containerExperimentIdentifier
)
));
container
DataSet
.
setDataSetProperties
(
getService
().
tryGetDataSet
(
containerDataSet
.
getCode
()).
getProperties
(
));
}
}
//Container Sample
// Inject full container experiment with properties
String
containerSampleIdentifier
=
container
.
getSampleIdentifier
();
String
containerExperimentIdentifier
=
containerDataSet
.
getExperiment
().
getIdentifier
();
if
(
containerSampleIdentifier
!=
null
)
containerDataSet
.
setExperiment
(
getService
().
tryGetExperiment
(
ExperimentIdentifierFactory
.
parse
(
containerExperimentIdentifier
)));
// Inject full container sample with properties
Sample
sample
=
containerDataSet
.
getSample
();
if
(
sample
!=
null
)
{
{
container
.
setSample
(
getService
().
tryGetSampleWithExperiment
(
SampleIdentifierFactory
.
parse
(
containerSampleIdentifier
)));
String
containerSampleIdentifier
=
sample
.
getIdentifier
();
containerDataSet
.
setSample
(
getService
().
tryGetSampleWithExperiment
(
SampleIdentifierFactory
.
parse
(
containerSampleIdentifier
)));
}
}
}
}
}
}
...
...
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