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

SSDM-4187: Improve SampleOwnerIdentifier.toString() in case project identifier...

SSDM-4187: Improve SampleOwnerIdentifier.toString() in case project identifier is an ExperimentIdentifier

SVN: 37504
parent a18a02f9
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,11 @@ public class ProjectIdentifier extends SpaceIdentifier
{
this.projectCode = projectCode;
}
public String asProjectIdentifierString()
{
return new ProjectIdentifier(getSpaceCode(), getProjectCode()).toString();
}
@Override
public boolean equals(final Object obj)
......
......@@ -95,7 +95,7 @@ public class SampleOwnerIdentifier extends AbstractHashable implements Serializa
{
if (isProjectLevel())
{
return projectIdentifier.toString() + Constants.IDENTIFIER_SEPARATOR;
return projectIdentifier.asProjectIdentifierString() + Constants.IDENTIFIER_SEPARATOR;
} else if (isSpaceLevel())
{
if (isInsideHomeSpace())
......
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