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
99adff4d
Commit
99adff4d
authored
Sep 17, 2021
by
Piotr Gawron
Browse files
status check fixed
parent
fc80ef23
Changes
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/PdbAnnotator.java
View file @
99adff4d
...
...
@@ -91,14 +91,9 @@ public class PdbAnnotator extends ElementAnnotator implements IExternalService {
Collection
<
Structure
>
structures
=
uniProtToPdb
(
getExampleValidAnnotation
());
if
(
structures
.
size
()
>
0
)
{
if
(
structures
.
iterator
().
next
().
getPdbId
()
!=
null
)
{
// TODO - is this
// id?
status
.
setStatus
(
ExternalServiceStatusType
.
OK
);
}
else
{
status
.
setStatus
(
ExternalServiceStatusType
.
CHANGED
);
}
status
.
setStatus
(
ExternalServiceStatusType
.
OK
);
}
else
{
status
.
setStatus
(
ExternalServiceStatusType
.
DOWN
);
status
.
setStatus
(
ExternalServiceStatusType
.
CHANGED
);
}
}
catch
(
final
Exception
e
)
{
logger
.
error
(
status
.
getName
()
+
" is down"
,
e
);
...
...
@@ -207,7 +202,7 @@ public class PdbAnnotator extends ElementAnnotator implements IExternalService {
* @return set of PDB identifiers found on the webpage
*/
private
Collection
<
Structure
>
processMappingData
(
final
String
pageContentJson
)
{
Collection
<
Structure
>
result
=
new
HashSet
<
Structure
>();
Collection
<
Structure
>
result
=
new
HashSet
<>();
try
{
ObjectMapper
objectMapper
=
new
ObjectMapper
();
Map
<
String
,
List
<
PdbBestMappingEntry
>>
m
=
objectMapper
.
readValue
(
pageContentJson
,
new
TypeReference
<
Map
<
String
,
List
<
PdbBestMappingEntry
>>>()
{
...
...
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