use of uk.ac.ebi.spot.goci.model.deposition.DepositionSubmission in project goci by EBISPOT.
the class DepositionPublicationServiceImpl method retrieveSubmission.
@Override
public DepositionSubmission retrieveSubmission(String id) {
log.info("Retrieving submission using id [{}]", id);
DepositionSubmission submission = null;
Map<String, String> params = new HashMap<>();
params.put("submissionID", id);
String url = depositionIngestUri + "/submissions/{submissionID}";
try {
String response = template.getForObject(url, String.class, params);
submission = template.getForObject(url, DepositionSubmission.class, params);
} catch (HttpClientErrorException e) {
System.out.println(e.getMessage());
}
return submission;
}
Aggregations