Commit 486bbe51 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused method removed

parent 4e638a6c
......@@ -38,11 +38,9 @@ import lcsb.mapviewer.common.exception.InvalidArgumentException;
import lcsb.mapviewer.common.exception.InvalidStateException;
import lcsb.mapviewer.common.exception.InvalidXmlSchemaException;
import lcsb.mapviewer.converter.Converter;
import lcsb.mapviewer.model.Article;
import lcsb.mapviewer.model.Project;
import lcsb.mapviewer.model.map.BioEntity;
import lcsb.mapviewer.model.map.MiriamData;
import lcsb.mapviewer.model.map.MiriamType;
import lcsb.mapviewer.model.map.reaction.Reaction;
import lcsb.mapviewer.model.map.species.Element;
import lcsb.mapviewer.modelutils.map.ElementUtils;
......@@ -114,30 +112,6 @@ public abstract class BaseRestImpl {
return result;
};
protected Map<String, Object> createAnnotation(Article article) {
Map<String, Object> result = new TreeMap<>();
if (article != null) {
MiriamType type = MiriamType.PUBMED;
result.put("link", miriamConnector.getUrlString(new MiriamData(MiriamType.PUBMED, article.getPubmedId())));
result.put("article", article);
result.put("type", type);
result.put("resource", article.getId());
}
return result;
}
protected List<Map<String, Object>> createAnnotations(Collection<Article> references) {
List<Map<String, Object>> result = new ArrayList<>();
for (Object miriamData : references) {
if (miriamData instanceof Article) {
result.add(createAnnotation((Article) miriamData));
} else {
throw new InvalidArgumentException();
}
}
return result;
}
/**
* @return the modelService
* @see #modelService
......
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