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

Rename 'group' to 'space' in comment, parameter name, and method name of SampleUtils.

SVN: 27392
parent 0ada2de1
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ public class RelationshipService implements IRelationshipService ...@@ -59,7 +59,7 @@ public class RelationshipService implements IRelationshipService
public void assignExperimentToProject(IAuthSession session, ExperimentPE experiment, public void assignExperimentToProject(IAuthSession session, ExperimentPE experiment,
ProjectPE project) ProjectPE project)
{ {
SampleUtils.setSamplesGroup(experiment, project.getSpace()); SampleUtils.setSamplesSpace(experiment, project.getSpace());
experiment.setProject(project); experiment.setProject(project);
} }
...@@ -69,7 +69,7 @@ public class RelationshipService implements IRelationshipService ...@@ -69,7 +69,7 @@ public class RelationshipService implements IRelationshipService
project.setSpace(space); project.setSpace(space);
for (ExperimentPE experiment : project.getExperiments()) for (ExperimentPE experiment : project.getExperiments())
{ {
SampleUtils.setSamplesGroup(experiment, space); SampleUtils.setSamplesSpace(experiment, space);
} }
} }
......
...@@ -45,14 +45,14 @@ public class SampleUtils ...@@ -45,14 +45,14 @@ public class SampleUtils
return dataDAO.hasDataSet(sample); return dataDAO.hasDataSet(sample);
} }
/** for all experiment samples which belonged to a group the specified group will be set */ /** for all experiment samples which belonged to a space the specified space will be set */
public static void setSamplesGroup(ExperimentPE experiment, SpacePE group) public static void setSamplesSpace(ExperimentPE experiment, SpacePE space)
{ {
for (SamplePE sample : experiment.getSamples()) for (SamplePE sample : experiment.getSamples())
{ {
if (sample.getSpace() != null) if (sample.getSpace() != null)
{ {
sample.setSpace(group); sample.setSpace(space);
} }
} }
} }
......
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