Class BitolDocumentPublisherIntegrationConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, CatalogTargetFactory, IntegrationConnector, OpenMetadataEventListener

public class BitolDocumentPublisherIntegrationConnector extends DynamicIntegrationConnectorBase implements OpenMetadataEventListener
BitolDocumentPublisherIntegrationConnector is the outbound side of Egeria's Bitol support. It generates an Open Data Product Standard (ODPS) document for each digital product, and an Open Data Contract Standard (ODCS) document for each data sharing agreement, and publishes them to the Bitol listeners registered in the same integration daemon (for example the file store connector, which writes them to a directory ready to commit to git).

Documents are generated when the connector receives an event describing a change to a digital product or agreement, and on each refresh for every product that is a member of a DigitalProductCatalog catalog target (together with the agreements referenced by the product's ports). A document is only published when its content differs from the last document generated for the same element, so a cataloguer running in the same daemon does not cause an endless exchange of identical documents.