Revision 55561
Added by Alessia Bardi almost 5 years ago
ParthenosPublisherHelper.java | ||
---|---|---|
8 | 8 |
import eu.dnetlib.parthenos.virtuoso.VirtuosoClientFactory; |
9 | 9 |
import org.apache.commons.logging.Log; |
10 | 10 |
import org.apache.commons.logging.LogFactory; |
11 |
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException; |
|
12 | 11 |
import org.springframework.beans.factory.annotation.Autowired; |
13 | 12 |
import org.springframework.stereotype.Component; |
14 | 13 |
|
... | ... | |
40 | 39 |
try { |
41 | 40 |
publishJRR(record); |
42 | 41 |
break; |
43 |
} catch(ResourceRegistryException | IOException | URISyntaxException | InterruptedException e){
|
|
42 |
} catch(IOException | URISyntaxException | InterruptedException e){ |
|
44 | 43 |
throw new ParthenosPublisherException(e); |
45 | 44 |
} |
46 | 45 |
default: throw new ParthenosPublisherException("Target "+target+" not supported yet"); |
... | ... | |
66 | 65 |
} |
67 | 66 |
|
68 | 67 |
private void publishJRR(final String record) |
69 |
throws ParthenosPublisherException, IOException, ResourceRegistryException, URISyntaxException, InterruptedException {
|
|
68 |
throws ParthenosPublisherException, IOException, URISyntaxException, InterruptedException { |
|
70 | 69 |
log.debug("Publishing on JRR (registry and catalogue)"); |
71 | 70 |
jrrPublisher.register(record); |
72 | 71 |
} |
Also available in: Unified diff
Removed dep to gcube registry and ignore integration tests