Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
a83396a1
Commit
a83396a1
authored
Jul 11, 2018
by
Piotr Gawron
Browse files
ElementModification interface removed
parent
b2c643f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
model/src/main/java/lcsb/mapviewer/model/map/species/field/ElementModification.java
deleted
100644 → 0
View file @
b2c643f0
package
lcsb.mapviewer.model.map.species.field
;
public
interface
ElementModification
{
ModificationState
getState
();
String
getName
();
ElementModification
copy
();
}
model/src/main/java/lcsb/mapviewer/model/map/species/field/ModificationResidue.java
View file @
a83396a1
...
...
@@ -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
...
...
@@ -211,7 +210,7 @@ public class ModificationResidue implements Serializable, ElementModification {
public
void
setPosition
(
Point2D
position
)
{
this
.
position
=
position
;
}
public
ModificationResidue
copy
()
{
throw
new
NotImplementedException
();
}
...
...
rest-api/src/main/java/lcsb/mapviewer/api/projects/models/bioEntities/elements/ElementsRestImpl.java
View file @
a83396a1
...
...
@@ -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.
Element
Modification
;
import
lcsb.mapviewer.model.map.species.field.Modification
Residue
;
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
Element
Modification
>
elements
)
{
private
List
<
Map
<
String
,
Object
>>
getModifications
(
List
<?
extends
Modification
Residue
>
elements
)
{
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
for
(
Element
Modification
region
:
elements
)
{
for
(
Modification
Residue
region
:
elements
)
{
if
(
region
.
getState
()
!=
null
)
{
Map
<
String
,
Object
>
row
=
new
TreeMap
<>();
row
.
put
(
"name"
,
region
.
getName
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment