Commit a83396a1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

ElementModification interface removed

parent b2c643f0
package lcsb.mapviewer.model.map.species.field;
public interface ElementModification {
ModificationState getState();
String getName();
ElementModification copy();
}
......@@ -43,7 +43,7 @@ import lcsb.mapviewer.model.map.species.Species;
@DiscriminatorColumn(name = "modification_type", discriminatorType = DiscriminatorType.STRING)
@DiscriminatorValue("GENERIC_MODIFICATION_RESIDUE")
@org.hibernate.annotations.GenericGenerator(name = "test-increment-strategy", strategy = "increment")
public class ModificationResidue implements Serializable, ElementModification {
public class ModificationResidue implements Serializable {
/**
*
......@@ -118,7 +118,6 @@ public class ModificationResidue implements Serializable, ElementModification {
return result;
}
/**
* @return the idModificationResidue
* @see #id
......
......@@ -20,7 +20,7 @@ import lcsb.mapviewer.model.map.species.Element;
import lcsb.mapviewer.model.map.species.Protein;
import lcsb.mapviewer.model.map.species.Rna;
import lcsb.mapviewer.model.map.species.Species;
import lcsb.mapviewer.model.map.species.field.ElementModification;
import lcsb.mapviewer.model.map.species.field.ModificationResidue;
import lcsb.mapviewer.model.map.species.field.Structure;
import lcsb.mapviewer.model.map.species.field.UniprotRecord;
import lcsb.mapviewer.services.SecurityException;
......@@ -230,9 +230,9 @@ public class ElementsRestImpl extends BaseRestImpl {
return result;
}
private List<Map<String, Object>> getModifications(List<? extends ElementModification> elements) {
private List<Map<String, Object>> getModifications(List<? extends ModificationResidue> elements) {
List<Map<String, Object>> result = new ArrayList<>();
for (ElementModification region : elements) {
for (ModificationResidue region : elements) {
if (region.getState() != null) {
Map<String, Object> row = new TreeMap<>();
row.put("name", region.getName());
......
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