Interface DcatDocumentManager
- All Known Implementing Classes:
IntegrationContextManager,OIFContextManager
public interface DcatDocumentManager
DcatDocumentManager distributes DCAT documents to the integration connectors that have registered a listener.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpublishDcatDocument(String rawDocument) Publish a DCAT document.voidregisterDcatListener(DcatDocumentListener listener) The listener is implemented by the integration connector.voidunregisterDcatListener(DcatDocumentListener listener) Remove a listener, so that it receives no more DCAT documents.
-
Method Details
-
registerDcatListener
The listener is implemented by the integration connector. Once it is registered with the context, its processDcatDocument() method is called each time a DCAT document is published to the integration daemon.- Parameters:
listener- listener to call
-
unregisterDcatListener
Remove a listener, so that it receives no more DCAT documents. This is called when the integration connector that registered it is disconnected.- Parameters:
listener- listener to remove
-
publishDcatDocument
Publish a DCAT document. The document is parsed and passed to each of the registered listeners.- Parameters:
rawDocument- document in JSON-LD format
-