Skip to content
Snippets Groups Projects
Commit d12bd401 authored by cramakri's avatar cramakri
Browse files

BIS-440 SP-695 : Use space identifiers instead of space code

SVN: 29405
parent be052f1a
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@ import java.util.Map;
import java.util.Queue;
import net.lemnik.eodsql.DynamicTransactionQuery;
import ch.systemsx.cisd.base.exceptions.CheckedExceptionTunnel;
import ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked;
import ch.systemsx.cisd.base.exceptions.InterruptedExceptionUnchecked;
......@@ -93,7 +92,7 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ProjectIdentifier;
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;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SpaceIdentifierFactory;
/**
* Abstract superclass for the states a DataSetRegistrationTransaction can be in.
......@@ -974,7 +973,7 @@ public abstract class AbstractTransactionState<T extends DataSetInformation>
{
SpaceRoleAssignment assignment = new SpaceRoleAssignment();
assignment.setRoleCode(role);
assignment.setSpaceIdentifier(new SpaceIdentifier(space.getSpaceCode()));
assignment.setSpaceIdentifier(new SpaceIdentifierFactory(space.getSpaceCode()).createIdentifier());
ArrayList<Grantee> grantees = new ArrayList<Grantee>();
if (null != userIds)
{
......
......@@ -18,6 +18,7 @@ package ch.systemsx.cisd.etlserver.registrator.api.v2.impl;
import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2.ISpaceImmutable;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SpaceIdentifier;
/**
* @author Kaloyan Enimanev
......@@ -75,4 +76,9 @@ public class SpaceImmutable implements ISpaceImmutable
return space;
}
@Override
public String getIdentifier()
{
return space.getIdentifier();
}
}
......@@ -16,6 +16,7 @@
package ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v2;
/**
* An interface for spaces from the database that should not be altered.
*
......@@ -39,5 +40,9 @@ public interface ISpaceImmutable
*/
boolean isExistingSpace();
/**
* Return the identifier for this space.
*/
String getIdentifier();
}
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