Skip to content
Snippets Groups Projects
Commit 4de871bb authored by jakubs's avatar jakubs
Browse files

LMS-2764: refactor list material criteria

SVN: 24695
parent f77a1f34
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ class SearchService implements ISearchService ...@@ -162,7 +162,7 @@ class SearchService implements ISearchService
MaterialType materialType = new MaterialType(); MaterialType materialType = new MaterialType();
materialType.setCode(typeCode); materialType.setCode(typeCode);
List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material> materialsOfType = List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material> materialsOfType =
openBisService.listMaterials(new ListMaterialCriteria(materialType), true); openBisService.listMaterials(ListMaterialCriteria.createFromMaterialType(materialType), true);
accumulatedResults.addAll(materialsOfType); accumulatedResults.addAll(materialsOfType);
} }
return accumulatedResults; return accumulatedResults;
......
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