Commit b142ecc4 authored by Matija Obreza's avatar Matija Obreza

listAccessions is only used by SGSV updater, renamed.

parent aaa419e8
......@@ -95,7 +95,7 @@ public interface GenesysService {
Page<Accession> listAccessions(Collection<Long> accessionIds, Pageable pageable);
List<Accession> listAccessions(List<? extends AccessionIdentifier3> accns);
List<Accession> listAccessionsSGSV(List<? extends AccessionIdentifier3> accns);
Accession getAccession(AccessionIdentifier3 aid3) throws NonUniqueAccessionException;
......
......@@ -222,7 +222,7 @@ public class GenesysServiceImpl implements GenesysService, TraitService, Dataset
}
@Override
public List<Accession> listAccessions(List<? extends AccessionIdentifier3> accns) {
public List<Accession> listAccessionsSGSV(List<? extends AccessionIdentifier3> accns) {
final List<Accession> result = new ArrayList<Accession>(accns.size());
for (final AccessionIdentifier3 aid3 : accns) {
final Accession accn = accessionRepository.findOneSGSV(aid3.getHoldingInstitute(), aid3.getAccessionName(), aid3.getGenus());
......
......@@ -264,7 +264,7 @@ public class SGSVUpdate {
// Find accessions based on holdingInstitute and
// accession
// name
final List<Accession> accessions = genesysService.listAccessions(accns);
final List<Accession> accessions = genesysService.listAccessionsSGSV(accns);
// Must be same order
if (accessions.size() != accns.size()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment