Skip to content
Snippets Groups Projects
Commit eed52200 authored by felmer's avatar felmer
Browse files

SSDM-4187: Casting ExperimentIdentifier as SpaceIdentifier.

SVN: 37505
parent 90e16d1f
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ExperimentIdentifi
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ProjectIdentifierFactory;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifier;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifierFactory;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SpaceIdentifier;
/**
* Utility methods to convert transaction-layer DTOs to objects accepted by openBIS.
......@@ -171,7 +172,7 @@ public class ConversionUtils
{
experimentIdentifier = ExperimentIdentifierFactory.parse(sample.getExperiment()
.getIdentifier());
sampleIdentifier = new SampleIdentifier(experimentIdentifier, sampleIdentifier.getSampleCode());
sampleIdentifier = new SampleIdentifier((SpaceIdentifier) experimentIdentifier, sampleIdentifier.getSampleCode());
}
String containerIdentifier =
(sample.getContainer() != null) ? sample.getContainer().getIdentifier() : null;
......
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