Class CatalogIntegratorContext
- java.lang.Object
-
- org.odpi.openmetadata.integrationservices.catalog.connector.CatalogIntegratorContext
-
public class CatalogIntegratorContext extends Object
CatalogIntegratorContext provides a wrapper around the Asset Manager OMAS client. It provides the simplified interface to open metadata needed by the CatalogIntegratorConnector.
-
-
Constructor Summary
Constructors Constructor Description CatalogIntegratorContext(ExternalAssetManagerClient assetManagerClient, AssetManagerEventClient eventClient, CollaborationExchangeClient collaborationExchangeClient, ConnectionExchangeClient connectionExchangeClient, DataAssetExchangeClient dataAssetExchangeClient, ExternalReferenceExchangeClient externalReferenceExchangeClient, GlossaryExchangeClient glossaryExchangeClient, GovernanceExchangeClient governanceExchangeClient, InfrastructureExchangeClient infrastructureExchangeClient, LineageExchangeClient lineageExchangeClient, StewardshipExchangeClient stewardshipExchangeClient, ValidValuesExchangeClient validValuesExchangeClient, String userId, String assetManagerGUID, String assetManagerName, String connectorName, String integrationServiceName, SynchronizationDirection synchronizationDirection, List<String> disabledExchangeServices, AuditLog auditLog)Create a new context for a connector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, 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.StringgetAssetManagerName()Return the qualified name of the asset manager that is supplied in the configuration document.CollaborationExchangeServicegetCollaborationExchangeService()Return the interface for exchanging collaboration information (comments, likes, reviews, tags).ConnectionExchangeServicegetConnectionExchangeService()Return the interface for exchanging connection information (connections, connector types, endpoints).DataAssetExchangeServicegetDataAssetExchangeService()Return the interface for exchanging data asset information (assets, schemas, connections).ExternalReferenceExchangeServicegetExternalReferenceService()Return the interface for exchanging data asset information (assets, schemas, connections).GlossaryExchangeServicegetGlossaryExchangeService()Return the interface for exchanging glossary information (glossaries, with categories, terms and relationships)GovernanceExchangeServicegetGovernanceExchangeService()Return the interface for exchanging governance information (policies, rules, ...)InfrastructureExchangeServicegetInfrastructureExchangeService()Return the interface for exchanging infrastructure information (servers, applications, hosts etc).LineageExchangeServicegetLineageExchangeService()Return the interface for exchanging lineage information (processes, ports, schemas, lineage linkage etc).StewardshipExchangeServicegetStewardshipExchangeService()Return the interface for exchanging stewardship information.ValidValuesExchangeServicegetValidValuesExchangeService()Return the interface for exchanging valid values and reference data information.voidregisterListener(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, ExternalIdentifierProperties externalIdentifierProperties)Update the description of a specific external identifier.
-
-
-
Constructor Detail
-
CatalogIntegratorContext
public CatalogIntegratorContext(ExternalAssetManagerClient assetManagerClient, AssetManagerEventClient eventClient, CollaborationExchangeClient collaborationExchangeClient, ConnectionExchangeClient connectionExchangeClient, DataAssetExchangeClient dataAssetExchangeClient, ExternalReferenceExchangeClient externalReferenceExchangeClient, GlossaryExchangeClient glossaryExchangeClient, GovernanceExchangeClient governanceExchangeClient, InfrastructureExchangeClient infrastructureExchangeClient, LineageExchangeClient lineageExchangeClient, StewardshipExchangeClient stewardshipExchangeClient, ValidValuesExchangeClient validValuesExchangeClient, String userId, String assetManagerGUID, String assetManagerName, String connectorName, String integrationServiceName, SynchronizationDirection synchronizationDirection, List<String> disabledExchangeServices, AuditLog auditLog)
Create a new context for a connector.- Parameters:
assetManagerClient- common client to map requests toeventClient- client to register for eventscollaborationExchangeClient- 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 requestsuserId- integration daemon's userIdassetManagerGUID- unique identifier of the software server capability for the asset managerassetManagerName- unique name of the software server capability for the asset managerconnectorName- name of the connector using this contextsynchronizationDirection- controls the direction of synchronization that should be alloweddisabledExchangeServices- option from the integration service's configurationintegrationServiceName- name of this serviceauditLog- logging destination
-
-
Method Detail
-
getAssetManagerName
public String getAssetManagerName()
Return the qualified name of the asset manager that is supplied in the configuration document.- Returns:
- string name
-
registerListener
public void registerListener(AssetManagerEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
Register a listener object that will be passed each of the events published by the Asset Manager OMAS.- Parameters:
listener- listener object- Throws:
InvalidParameterException- one of the parameters is null or invalid.ConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.ConnectorCheckedException- there are errors in the initialization of the connector.PropertyServerException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
addExternalIdentifier
public void addExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) throws InvalidParameterException, UserNotAuthorizedException, 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:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
updateExternalIdentifier
public void updateExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) throws InvalidParameterException, UserNotAuthorizedException, 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:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
removeExternalIdentifier
public void removeExternalIdentifier(String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, 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:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
confirmSynchronization
public void confirmSynchronization(String openMetadataGUID, String openMetadataElementTypeName, String externalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, 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:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
getCollaborationExchangeService
public CollaborationExchangeService getCollaborationExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging collaboration information (comments, likes, reviews, tags).- Returns:
- collaboration exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getConnectionExchangeService
public ConnectionExchangeService getConnectionExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging connection information (connections, connector types, endpoints).- Returns:
- connection exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getDataAssetExchangeService
public DataAssetExchangeService getDataAssetExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging data asset information (assets, schemas, connections).- Returns:
- data asset exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getExternalReferenceService
public ExternalReferenceExchangeService getExternalReferenceService() throws UserNotAuthorizedException
Return the interface for exchanging data asset information (assets, schemas, connections).- Returns:
- data asset exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getGlossaryExchangeService
public GlossaryExchangeService getGlossaryExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging glossary information (glossaries, with categories, terms and relationships)- Returns:
- glossary exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getGovernanceExchangeService
public GovernanceExchangeService getGovernanceExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging governance information (policies, rules, ...)- Returns:
- governance exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getInfrastructureExchangeService
public InfrastructureExchangeService getInfrastructureExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging infrastructure information (servers, applications, hosts etc).- Returns:
- infrastructure exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getLineageExchangeService
public LineageExchangeService getLineageExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging lineage information (processes, ports, schemas, lineage linkage etc).- Returns:
- lineage exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getStewardshipExchangeService
public StewardshipExchangeService getStewardshipExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging stewardship information.- Returns:
- stewardship exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
getValidValuesExchangeService
public ValidValuesExchangeService getValidValuesExchangeService() throws UserNotAuthorizedException
Return the interface for exchanging valid values and reference data information.- Returns:
- valid values exchange service
- Throws:
UserNotAuthorizedException- this option is not enabled in the configuration
-
-