Class CatalogIntegratorContext
java.lang.Object
org.odpi.openmetadata.frameworks.integration.context.IntegrationContext
org.odpi.openmetadata.integrationservices.catalog.connector.CatalogIntegratorContext
public class CatalogIntegratorContext
extends org.odpi.openmetadata.frameworks.integration.context.IntegrationContext
CatalogIntegratorContext provides a wrapper around the Asset Manager OMAS client.
It provides the simplified interface to open metadata needed by the CatalogIntegratorConnector.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringService for working with feedback elements.static final StringService for building and maintaining connections, connector types and endpoints.static final StringService for creating connector instances.static final StringService for working with data stores, data sets, data feeds and APIs.static final StringServices for maintaining links to external references.static final StringService for maintaining glossaries and their contentsstatic final StringService for maintaining governance definitions such as policies and rules.static final StringService for maintaining models of infrastructure.static final StringService for maintaining lineage relationships.static final StringService for handing actions for stewards.static final StringService for maintaining reference data (valid values). -
Constructor Summary
ConstructorsConstructorDescriptionCatalogIntegratorContext(String connectorId, String connectorName, String connectorUserId, String serverName, org.odpi.openmetadata.frameworks.integration.client.OpenIntegrationClient openIntegrationClient, org.odpi.openmetadata.frameworks.governanceaction.client.OpenMetadataClient openMetadataStoreClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ExternalAssetManagerClient assetManagerClient, org.odpi.openmetadata.accessservices.assetmanager.client.AssetManagerEventClient eventClient, org.odpi.openmetadata.accessservices.assetmanager.client.ConnectedAssetClient connectedAssetClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.CollaborationExchangeClient collaborationExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ConnectionExchangeClient connectionExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.DataAssetExchangeClient dataAssetExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ExternalReferenceExchangeClient externalReferenceExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.GlossaryExchangeClient glossaryExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.GovernanceExchangeClient governanceExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.InfrastructureExchangeClient infrastructureExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.LineageExchangeClient lineageExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.StewardshipExchangeClient stewardshipExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ValidValuesExchangeClient validValuesExchangeClient, boolean generateIntegrationReport, org.odpi.openmetadata.frameworks.integration.contextmanager.PermittedSynchronization permittedSynchronization, String integrationConnectorGUID, String assetManagerGUID, String assetManagerName, String integrationServiceName, List<String> disabledExchangeServices, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new context for a connector. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties) Add a new external identifier to an existing open metadata element.voidconfirmSynchronization(String openMetadataGUID, String openMetadataElementTypeName, String externalIdentifier) Confirm that the values of a particular metadata element have been synchronized.Return the unique identifier for the asset manager element with a qualifiedName matching the assetManagerName.Return the qualified name of the asset manager that is supplied in the configuration as metadataSourceQualifiedName.Return the interface for exchanging collaboration information (comments, likes, reviews, tags).Return the interface for exchanging connection information (connections, connector types, endpoints).Return the interface for working with connectors to digital resources.Return the interface for exchanging data asset information (assets, schemas, connections).Return the interface for exchanging data asset information (assets, schemas, connections).Return the interface for exchanging glossary information (glossaries, with categories, terms and relationships)Return the interface for exchanging governance information (policies, rules, ...)Return the interface for exchanging infrastructure information (servers, applications, hosts etc).Return the interface for exchanging lineage information (processes, ports, schemas, lineage linkage etc).Return the interface for exchanging stewardship information.Return the interface for exchanging valid values and reference data information.booleanReturn a flag indicating whether a listener has been registered or not.voidregisterListener(org.odpi.openmetadata.accessservices.assetmanager.api.AssetManagerEventListener listener) Register a listener object that will be passed each of the events published by the Asset Manager OMAS.voidremoveExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) Remove a new external identifier from an existing open metadata element.voidupdateExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties) Update the description of a specific external identifier.Methods inherited from class org.odpi.openmetadata.frameworks.integration.context.IntegrationContext
getAnchorGUID, getCatalogTargets, getIntegrationGovernanceContext, getMaxPageSize, getMetadataSourceQualifiedName, getPermittedSynchronization, isTypeOf, publishReport, setActiveReportPublishing, startRecording
-
Field Details
-
connectorFactoryServiceName
Service for creating connector instances.- See Also:
-
collaborationExchangeServiceName
Service for working with feedback elements.- See Also:
-
connectionExchangeServiceName
Service for building and maintaining connections, connector types and endpoints.- See Also:
-
dataAssetExchangeServiceName
Service for working with data stores, data sets, data feeds and APIs.- See Also:
-
externalReferenceExchangeServiceName
Services for maintaining links to external references.- See Also:
-
glossaryExchangeServiceName
Service for maintaining glossaries and their contents- See Also:
-
governanceExchangeServiceName
Service for maintaining governance definitions such as policies and rules.- See Also:
-
infrastructureExchangeServiceName
Service for maintaining models of infrastructure.- See Also:
-
lineageExchangeServiceName
Service for maintaining lineage relationships.- See Also:
-
stewardshipExchangeServiceName
Service for handing actions for stewards.- See Also:
-
validValuesExchangeServiceName
Service for maintaining reference data (valid values).- See Also:
-
-
Constructor Details
-
CatalogIntegratorContext
public CatalogIntegratorContext(String connectorId, String connectorName, String connectorUserId, String serverName, org.odpi.openmetadata.frameworks.integration.client.OpenIntegrationClient openIntegrationClient, org.odpi.openmetadata.frameworks.governanceaction.client.OpenMetadataClient openMetadataStoreClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ExternalAssetManagerClient assetManagerClient, org.odpi.openmetadata.accessservices.assetmanager.client.AssetManagerEventClient eventClient, org.odpi.openmetadata.accessservices.assetmanager.client.ConnectedAssetClient connectedAssetClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.CollaborationExchangeClient collaborationExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ConnectionExchangeClient connectionExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.DataAssetExchangeClient dataAssetExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ExternalReferenceExchangeClient externalReferenceExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.GlossaryExchangeClient glossaryExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.GovernanceExchangeClient governanceExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.InfrastructureExchangeClient infrastructureExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.LineageExchangeClient lineageExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.StewardshipExchangeClient stewardshipExchangeClient, org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ValidValuesExchangeClient validValuesExchangeClient, boolean generateIntegrationReport, org.odpi.openmetadata.frameworks.integration.contextmanager.PermittedSynchronization permittedSynchronization, String integrationConnectorGUID, String assetManagerGUID, String assetManagerName, String integrationServiceName, List<String> disabledExchangeServices, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new context for a connector.- Parameters:
connectorId- unique identifier of the connector (used to configure the event listener)connectorName- name of connector from configconnectorUserId- userId for the connectorserverName- name of the integration daemonopenIntegrationClient- client for calling the metadata serveropenMetadataStoreClient- client for calling the metadata serverassetManagerClient- common client to map requests toeventClient- client to register for eventsconnectedAssetClient- client for connectorscollaborationExchangeClient- client for collaboration requestsconnectionExchangeClient- client for connection requestsdataAssetExchangeClient- client for asset requestsexternalReferenceExchangeClient- client for data asset requestsglossaryExchangeClient- client for glossary requestsgovernanceExchangeClient- client for governance requestsinfrastructureExchangeClient- client for infrastructure requestslineageExchangeClient- client for lineage requestsstewardshipExchangeClient- client for stewardship requestsvalidValuesExchangeClient- client for valid values requestsassetManagerGUID- unique identifier of the software server capability for the asset managerassetManagerName- unique name of the software server capability for the asset managergenerateIntegrationReport- should the connector generate an integration reports?permittedSynchronization- the direction of integration permitted by the integration connectorintegrationConnectorGUID- unique identifier for the integration connector if it is started via an integration group (otherwise it is null).disabledExchangeServices- option from the integration service's configurationintegrationServiceName- name of this servicemaxPageSize- max number of elements that can be returned on a queryauditLog- logging destination
-
-
Method Details
-
getAssetManagerGUID
Return the unique identifier for the asset manager element with a qualifiedName matching the assetManagerName.- Returns:
- string guid
-
getAssetManagerName
Return the qualified name of the asset manager that is supplied in the configuration as metadataSourceQualifiedName.- Returns:
- string name
-
registerListener
public void registerListener(org.odpi.openmetadata.accessservices.assetmanager.api.AssetManagerEventListener listener) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Register a listener object that will be passed each of the events published by the Asset Manager OMAS.- Parameters:
listener- listener object- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there are errors in the initialization of the connector.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
isListenerRegistered
public boolean isListenerRegistered()Return a flag indicating whether a listener has been registered or not.- Returns:
- true means the listener has been successfully registered
-
addExternalIdentifier
public void addExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new external identifier to an existing open metadata element.- Parameters:
openMetadataElementGUID- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName- type name for the open metadata elementexternalIdentifierProperties- optional properties used to define an external identifier- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property server
-
updateExternalIdentifier
public void updateExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the description of a specific external identifier.- Parameters:
openMetadataElementGUID- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName- type name for the open metadata elementexternalIdentifierProperties- optional properties used to define an external identifier- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property server
-
removeExternalIdentifier
public void removeExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a new external identifier from an existing open metadata element. The open metadata element is not affected.- Parameters:
openMetadataElementGUID- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName- type name for the open metadata elementexternalIdentifier- unique identifier of this element in the third party asset manager- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property server
-
confirmSynchronization
public void confirmSynchronization(String openMetadataGUID, String openMetadataElementTypeName, String externalIdentifier) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Confirm that the values of a particular metadata element have been synchronized. This is important from an audit points of view, and to allow bidirectional updates of metadata using optimistic locking.- Parameters:
openMetadataGUID- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName- type name for the open metadata elementexternalIdentifier- unique identifier of this element in the external asset manager- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property server
-
getConnectorFactoryService
public ConnectorFactoryService getConnectorFactoryService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for working with connectors to digital resources.- Returns:
- collaboration exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getCollaborationExchangeService
public CollaborationExchangeService getCollaborationExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging collaboration information (comments, likes, reviews, tags).- Returns:
- collaboration exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getConnectionExchangeService
public ConnectionExchangeService getConnectionExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging connection information (connections, connector types, endpoints).- Returns:
- connection exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getDataAssetExchangeService
public DataAssetExchangeService getDataAssetExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging data asset information (assets, schemas, connections).- Returns:
- data asset exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getExternalReferenceService
public ExternalReferenceExchangeService getExternalReferenceService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging data asset information (assets, schemas, connections).- Returns:
- data asset exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getGlossaryExchangeService
public GlossaryExchangeService getGlossaryExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging glossary information (glossaries, with categories, terms and relationships)- Returns:
- glossary exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getGovernanceExchangeService
public GovernanceExchangeService getGovernanceExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging governance information (policies, rules, ...)- Returns:
- governance exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getInfrastructureExchangeService
public InfrastructureExchangeService getInfrastructureExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging infrastructure information (servers, applications, hosts etc).- Returns:
- infrastructure exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getLineageExchangeService
public LineageExchangeService getLineageExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging lineage information (processes, ports, schemas, lineage linkage etc).- Returns:
- lineage exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getStewardshipExchangeService
public StewardshipExchangeService getStewardshipExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging stewardship information.- Returns:
- stewardship exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-
getValidValuesExchangeService
public ValidValuesExchangeService getValidValuesExchangeService() throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturn the interface for exchanging valid values and reference data information.- Returns:
- valid values exchange service
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this option is not enabled in the configuration
-