Skip to content
Snippets Groups Projects
Commit f7ea42d0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

api gives info about complex and compartment

parent ba236a78
No related branches found
No related tags found
1 merge request!5Frontend refactor
...@@ -62,6 +62,7 @@ import lcsb.mapviewer.model.map.reaction.Product; ...@@ -62,6 +62,7 @@ import lcsb.mapviewer.model.map.reaction.Product;
import lcsb.mapviewer.model.map.reaction.Reactant; import lcsb.mapviewer.model.map.reaction.Reactant;
import lcsb.mapviewer.model.map.reaction.Reaction; import lcsb.mapviewer.model.map.reaction.Reaction;
import lcsb.mapviewer.model.map.species.Element; import lcsb.mapviewer.model.map.species.Element;
import lcsb.mapviewer.model.map.species.Species;
import lcsb.mapviewer.model.user.User; import lcsb.mapviewer.model.user.User;
import lcsb.mapviewer.services.SecurityException; import lcsb.mapviewer.services.SecurityException;
import lcsb.mapviewer.services.UserAccessException; import lcsb.mapviewer.services.UserAccessException;
...@@ -375,6 +376,16 @@ public class ProjectRestImpl { ...@@ -375,6 +376,16 @@ public class ProjectRestImpl {
value = element.getFullName(); value = element.getFullName();
} else if (column.equals("abbreviation")) { } else if (column.equals("abbreviation")) {
value = element.getAbbreviation(); value = element.getAbbreviation();
} else if (column.equals("compartmentid")) {
if (element.getCompartment() != null) {
value = element.getCompartment().getId();
}
} else if (column.equals("complexid")) {
if (element instanceof Species) {
if (((Species) element).getComplex() != null) {
value = ((Species) element).getComplex().getId();
}
}
} else if (column.equals("references")) { } else if (column.equals("references")) {
value = annotationViewFactory.createList(element.getMiriamData()); value = annotationViewFactory.createList(element.getMiriamData());
} else if (column.equals("synonyms")) { } else if (column.equals("synonyms")) {
...@@ -407,6 +418,8 @@ public class ProjectRestImpl { ...@@ -407,6 +418,8 @@ public class ProjectRestImpl {
columnsSet.add("description"); columnsSet.add("description");
columnsSet.add("type"); columnsSet.add("type");
columnsSet.add("symbol"); columnsSet.add("symbol");
columnsSet.add("complexId");
columnsSet.add("compartmentId");
columnsSet.add("fullName"); columnsSet.add("fullName");
columnsSet.add("abbreviation"); columnsSet.add("abbreviation");
columnsSet.add("formula"); columnsSet.add("formula");
......
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