Skip to content
Snippets Groups Projects
Commit c998c4e8 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

BIS-1002: fixes to create entity types executors

parent d502c230
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -15,6 +15,8 @@
*/
package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.dataset;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.common.id.IObjectId;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.entitytype.id.EntityTypePermId;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
......@@ -99,4 +101,10 @@ public class CreateDataSetTypesExecutor extends AbstractCreateEntityTypeExecutor
authorizationExecutor.canCreate(context, entityType);
}
@Override
protected IObjectId getId(DataSetTypePE entityType)
{
return new EntityTypePermId(entityType.getPermId());
}
}
......@@ -15,6 +15,8 @@
*/
package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.experiment;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.common.id.IObjectId;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.entitytype.id.EntityTypePermId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
......@@ -87,4 +89,10 @@ public class CreateExperimentTypesExecutor extends AbstractCreateEntityTypeExecu
authorizationExecutor.canCreate(context, experimentTypePE);
}
@Override
protected IObjectId getId(ExperimentTypePE experimentTypePE)
{
return new EntityTypePermId(experimentTypePE.getPermId());
}
}
......@@ -15,6 +15,8 @@
*/
package ch.ethz.sis.openbis.generic.server.asapi.v3.executor.sample;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.common.id.IObjectId;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.entitytype.id.EntityTypePermId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
......@@ -98,4 +100,10 @@ public class CreateSampleTypesExecutor extends AbstractCreateEntityTypeExecutor<
authorizationExecutor.canCreate(context, entityType);
}
@Override
protected IObjectId getId(SampleTypePE entityType)
{
return new EntityTypePermId(entityType.getPermId());
}
}
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