Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
c0ac414a
Commit
c0ac414a
authored
14 years ago
by
buczekp
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-1772] minor improvement
SVN: 18637
parent
39ddfdae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/SampleLoader.java
+5
-7
5 additions, 7 deletions
...nbis/plugin/phosphonetx/server/business/SampleLoader.java
with
5 additions
and
7 deletions
rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/SampleLoader.java
+
5
−
7
View file @
c0ac414a
...
@@ -35,14 +35,14 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.SampleTypePE;
...
@@ -35,14 +35,14 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.SampleTypePE;
import
ch.systemsx.cisd.openbis.generic.shared.dto.Session
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.Session
;
/**
/**
*
*
* @author Franz-Josef Elmer
* @author Franz-Josef Elmer
*/
*/
public
class
SampleLoader
implements
ISampleLoader
public
class
SampleLoader
implements
ISampleLoader
{
{
private
final
Session
session
;
private
final
Session
session
;
private
final
IDAOFactory
daoFactory
;
private
final
IDAOFactory
daoFactory
;
private
final
ICommonBusinessObjectFactory
businessObjectFactory
;
private
final
ICommonBusinessObjectFactory
businessObjectFactory
;
public
SampleLoader
(
Session
session
,
IDAOFactory
daoFactory
,
public
SampleLoader
(
Session
session
,
IDAOFactory
daoFactory
,
...
@@ -51,9 +51,9 @@ public class SampleLoader implements ISampleLoader
...
@@ -51,9 +51,9 @@ public class SampleLoader implements ISampleLoader
this
.
session
=
session
;
this
.
session
=
session
;
this
.
daoFactory
=
daoFactory
;
this
.
daoFactory
=
daoFactory
;
this
.
businessObjectFactory
=
businessObjectFactory
;
this
.
businessObjectFactory
=
businessObjectFactory
;
}
}
public
List
<
Sample
>
listSamplesWithParentsByTypeAndSpace
(
String
sampleTypeCode
,
String
spaceCode
)
public
List
<
Sample
>
listSamplesWithParentsByTypeAndSpace
(
String
sampleTypeCode
,
String
spaceCode
)
{
{
ISampleLister
sampleLister
=
businessObjectFactory
.
createSampleLister
(
session
);
ISampleLister
sampleLister
=
businessObjectFactory
.
createSampleLister
(
session
);
...
@@ -109,13 +109,11 @@ public class SampleLoader implements ISampleLoader
...
@@ -109,13 +109,11 @@ public class SampleLoader implements ISampleLoader
}
}
});
});
Set
<
Long
>
filteredSampleIDs
=
new
HashSet
<
Long
>();
Set
<
Long
>
filteredSampleIDs
=
new
HashSet
<
Long
>();
Set
<
Long
>
parentIDs
=
new
HashSet
<
Long
>();
for
(
SampleRelationShipSkeleton
sampleRelationShipSkeleton
:
relationshipSkeletons
)
for
(
SampleRelationShipSkeleton
sampleRelationShipSkeleton
:
relationshipSkeletons
)
{
{
filteredSampleIDs
.
add
(
sampleRelationShipSkeleton
.
getChildSampleID
());
filteredSampleIDs
.
add
(
sampleRelationShipSkeleton
.
getChildSampleID
());
parentIDs
.
add
(
sampleRelationShipSkeleton
.
getParentSampleID
());
}
}
return
filteredSampleIDs
;
return
filteredSampleIDs
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment