Class ConnectionExchangeService
java.lang.Object
org.odpi.openmetadata.integrationservices.catalog.connector.ConnectionExchangeService
ConnectionExchangeService is the context for managing connections and associated elements such as connector types and endpoints.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearAssetConnection
(String assetGUID, String connectionGUID, Date effectiveTime) Remove a relationship between an asset and its connection.void
clearConnectorType
(String connectionGUID, String connectorTypeGUID, Date effectiveTime) Remove a relationship between a connection and a connector type.void
clearEmbeddedConnection
(String connectionGUID, String embeddedConnectionGUID, Date effectiveTime) Remove a relationship between a virtual connection and an embedded connection.void
clearEndpoint
(String connectionGUID, String endpointGUID, Date effectiveTime) Remove a relationship between a connection and an endpoint.createConnection
(boolean externalSourceIsHome, ExternalIdentifierProperties externalIdentifierProperties, ConnectionProperties connectionProperties) Create a new metadata element to represent the root of a connection.createConnectionFromTemplate
(boolean externalSourceIsHome, String templateGUID, ExternalIdentifierProperties externalIdentifierProperties, TemplateProperties templateProperties) Create a new metadata element to represent a connection using an existing metadata element as a template.createConnectorType
(boolean externalSourceIsHome, ExternalIdentifierProperties externalIdentifierProperties, ConnectorTypeProperties connectorTypeProperties) Create a new metadata element to represent the root of a connector type.createConnectorTypeFromTemplate
(boolean externalSourceIsHome, String templateGUID, ExternalIdentifierProperties externalIdentifierProperties, TemplateProperties templateProperties) Create a new metadata element to represent a connector type using an existing metadata element as a template.createEndpoint
(boolean externalSourceIsHome, ExternalIdentifierProperties externalIdentifierProperties, EndpointProperties endpointProperties) Create a new metadata element to represent the root of an endpoint.createEndpointFromTemplate
(boolean externalSourceIsHome, String templateGUID, ExternalIdentifierProperties externalIdentifierProperties, TemplateProperties templateProperties) Create a new metadata element to represent an endpoint using an existing metadata element as a template.findConnections
(String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of connection metadata elements that contain the search string.findConnectorTypes
(String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of connectorType metadata elements that contain the search string.findEndpoints
(String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of endpoint metadata elements that contain the search string.getConnectionByGUID
(String connectionGUID, Date effectiveTime) Retrieve the connection metadata element with the supplied unique identifier.getConnectionsByName
(String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of connection metadata elements with a matching qualified or display name.getConnectionsForAssetManager
(int startFrom, int pageSize, Date effectiveTime) Retrieve the list of connections created on behalf of the named external source.getConnectorTypeByGUID
(String dataAssetGUID, Date effectiveTime) Retrieve the connectorType metadata element with the supplied unique identifier.getConnectorTypesByName
(String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of connectorType metadata elements with a matching qualified or display name.getConnectorTypesForAssetManager
(int startFrom, int pageSize, Date effectiveTime) Retrieve the list of connectorTypes created on behalf of the named connectorType manager.getEndpointByGUID
(String endpointGUID, Date effectiveTime) Retrieve the endpoint metadata element with the supplied unique identifier.getEndpointsByName
(String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of endpoint metadata elements with a matching qualified or display name.getEndpointsForAssetManager
(int startFrom, int pageSize, Date effectiveTime) Retrieve the list of endpoints created on behalf of the named external source.boolean
Return whether retrieval requests from this service are to include elements with the Memento classification attached or not.void
removeConnection
(String connectionGUID, String connectionExternalIdentifier, Date effectiveTime) Remove the metadata element representing a connection.void
removeConnectorType
(String connectorTypeGUID, String connectorTypeExternalIdentifier, Date effectiveTime) Remove the metadata element representing a connector type.void
removeEndpoint
(String connectorTypeGUID, String endpointExternalIdentifier, Date effectiveTime) Remove the metadata element representing a connector type.void
setForLineage
(boolean forLineage) Set up whether retrieval requests from this service are to include elements with the Memento classification attached or not.void
setupAssetConnection
(boolean externalSourceIsHome, String assetGUID, String connectionGUID, AssetConnectionProperties properties, Date effectiveTime) Create a relationship between an asset and its connection.void
setupConnectorType
(boolean externalSourceIsHome, String connectionGUID, String connectorTypeGUID, Date effectiveFrom, Date effectiveTo, Date effectiveTime) Create a relationship between a connection and a connector type.void
setupEmbeddedConnection
(boolean externalSourceIsHome, String connectionGUID, String embeddedConnectionGUID, EmbeddedConnectionProperties properties, Date effectiveTime) Create a relationship between a virtual connection and an embedded connection.void
setupEndpoint
(boolean externalSourceIsHome, String connectionGUID, String endpointGUID, Date effectiveFrom, Date effectiveTo, Date effectiveTime) Create a relationship between a connection and an endpoint.void
updateConnection
(String connectionGUID, String connectionExternalIdentifier, boolean isMergeUpdate, ConnectionProperties connectionProperties, Date effectiveTime) Update the metadata element representing an connection.void
updateConnectorType
(String connectorTypeGUID, String connectorTypeExternalIdentifier, boolean isMergeUpdate, ConnectorTypeProperties connectorTypeProperties, Date effectiveTime) Update the metadata element representing a connector type.void
updateEndpoint
(String connectorTypeGUID, String endpointExternalIdentifier, boolean isMergeUpdate, EndpointProperties endpointProperties, Date effectiveTime) Update the metadata element representing an endpoint.
-
Method Details
-
isForLineage
public boolean isForLineage()Return whether retrieval requests from this service are to include elements with the Memento classification attached or not.- Returns:
- boolean flag
-
setForLineage
public void setForLineage(boolean forLineage) Set up whether retrieval requests from this service are to include elements with the Memento classification attached or not.- Parameters:
forLineage
- boolean flag
-
createConnection
public String createConnection(boolean externalSourceIsHome, ExternalIdentifierProperties externalIdentifierProperties, ConnectionProperties connectionProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent the root of a connection.- Parameters:
externalSourceIsHome
- ensure that only the external source can update this connectionexternalIdentifierProperties
- optional properties used to define an external identifierconnectionProperties
- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createConnectionFromTemplate
public String createConnectionFromTemplate(boolean externalSourceIsHome, String templateGUID, ExternalIdentifierProperties externalIdentifierProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a connection using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new connection.- Parameters:
externalSourceIsHome
- ensure that only the external source can update this processexternalIdentifierProperties
- optional properties used to define an external identifiertemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateConnection
public void updateConnection(String connectionGUID, String connectionExternalIdentifier, boolean isMergeUpdate, ConnectionProperties connectionProperties, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing an connection.- Parameters:
connectionGUID
- unique identifier of the metadata element to updateconnectionExternalIdentifier
- unique identifier of the connection in the external sourceisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?connectionProperties
- new properties for this elementeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupConnectorType
public void setupConnectorType(boolean externalSourceIsHome, String connectionGUID, String connectorTypeGUID, Date effectiveFrom, Date effectiveTo, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between a connection and a connector type.- Parameters:
externalSourceIsHome
- ensure that only the asset manager can update this relationshipconnectionGUID
- unique identifier of the connection in the external asset managerconnectorTypeGUID
- unique identifier of the connector type in the external asset managereffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearConnectorType
public void clearConnectorType(String connectionGUID, String connectorTypeGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship between a connection and a connector type.- Parameters:
connectionGUID
- unique identifier of the connection in the external asset managerconnectorTypeGUID
- unique identifier of the connector type in the external asset managereffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupEndpoint
public void setupEndpoint(boolean externalSourceIsHome, String connectionGUID, String endpointGUID, Date effectiveFrom, Date effectiveTo, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between a connection and an endpoint.- Parameters:
externalSourceIsHome
- ensure that only the asset manager can update this relationshipconnectionGUID
- unique identifier of the connection in the external asset managerendpointGUID
- unique identifier of the endpoint in the external asset managereffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearEndpoint
public void clearEndpoint(String connectionGUID, String endpointGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship between a connection and an endpoint.- Parameters:
connectionGUID
- unique identifier of the connection in the external asset managerendpointGUID
- unique identifier of the endpoint in the external asset managereffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupEmbeddedConnection
public void setupEmbeddedConnection(boolean externalSourceIsHome, String connectionGUID, String embeddedConnectionGUID, EmbeddedConnectionProperties properties, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between a virtual connection and an embedded connection.- Parameters:
externalSourceIsHome
- ensure that only the asset manager can update this relationshipconnectionGUID
- unique identifier of the virtual connection in the external asset managerembeddedConnectionGUID
- unique identifier of the embedded connection in the external asset managerproperties
- properties describing how to use the embedded connection such as: Which order should this connection be processed; What additional properties should be passed to the embedded connector via the configuration properties; What does this connector signify?effectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearEmbeddedConnection
public void clearEmbeddedConnection(String connectionGUID, String embeddedConnectionGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship between a virtual connection and an embedded connection.- Parameters:
connectionGUID
- unique identifier of the virtual connection in the external asset managerembeddedConnectionGUID
- unique identifier of the embedded connection in the external asset managereffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
setupAssetConnection
public void setupAssetConnection(boolean externalSourceIsHome, String assetGUID, String connectionGUID, AssetConnectionProperties properties, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between an asset and its connection.- Parameters:
externalSourceIsHome
- ensure that only the asset manager can update this relationshipassetGUID
- unique identifier of the assetproperties
- summary of the asset that is stored in the relationship between the asset and the connection.connectionGUID
- unique identifier of the connectioneffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
clearAssetConnection
public void clearAssetConnection(String assetGUID, String connectionGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship between an asset and its connection.- Parameters:
assetGUID
- unique identifier of the assetconnectionGUID
- unique identifier of the connectioneffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeConnection
public void removeConnection(String connectionGUID, String connectionExternalIdentifier, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a connection. This will delete the connection and all anchored elements such as schema and comments.- Parameters:
connectionGUID
- unique identifier of the metadata element to removeconnectionExternalIdentifier
- unique identifier of the connection in the external sourceeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findConnections
public List<ConnectionElement> findConnections(String searchString, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of connection metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getConnectionsByName
public List<ConnectionElement> getConnectionsByName(String name, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of connection metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getConnectionsForAssetManager
public List<ConnectionElement> getConnectionsForAssetManager(int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of connections created on behalf of the named external source.- Parameters:
startFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getConnectionByGUID
public ConnectionElement getConnectionByGUID(String connectionGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the connection metadata element with the supplied unique identifier.- Parameters:
connectionGUID
- unique identifier of the requested metadata elementeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createEndpoint
public String createEndpoint(boolean externalSourceIsHome, ExternalIdentifierProperties externalIdentifierProperties, EndpointProperties endpointProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent the root of an endpoint.- Parameters:
externalSourceIsHome
- ensure that only the external source can update this endpointexternalIdentifierProperties
- optional properties used to define an external identifierendpointProperties
- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createEndpointFromTemplate
public String createEndpointFromTemplate(boolean externalSourceIsHome, String templateGUID, ExternalIdentifierProperties externalIdentifierProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent an endpoint using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new endpoint.- Parameters:
externalSourceIsHome
- ensure that only the external source can update this processexternalIdentifierProperties
- optional properties used to define an external identifiertemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateEndpoint
public void updateEndpoint(String connectorTypeGUID, String endpointExternalIdentifier, boolean isMergeUpdate, EndpointProperties endpointProperties, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing an endpoint.- Parameters:
connectorTypeGUID
- unique identifier of the metadata element to updateendpointExternalIdentifier
- unique identifier of the endpoint in the external sourceisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?endpointProperties
- new properties for this elementeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeEndpoint
public void removeEndpoint(String connectorTypeGUID, String endpointExternalIdentifier, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a connector type. This will delete the endpoint and all anchored elements such as schema and comments.- Parameters:
connectorTypeGUID
- unique identifier of the metadata element to removeendpointExternalIdentifier
- unique identifier of the endpoint in the external sourceeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findEndpoints
public List<EndpointElement> findEndpoints(String searchString, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of endpoint metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getEndpointsByName
public List<EndpointElement> getEndpointsByName(String name, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of endpoint metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getEndpointsForAssetManager
public List<EndpointElement> getEndpointsForAssetManager(int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of endpoints created on behalf of the named external source.- Parameters:
startFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getEndpointByGUID
public EndpointElement getEndpointByGUID(String endpointGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the endpoint metadata element with the supplied unique identifier.- Parameters:
endpointGUID
- unique identifier of the requested metadata elementeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createConnectorType
public String createConnectorType(boolean externalSourceIsHome, ExternalIdentifierProperties externalIdentifierProperties, ConnectorTypeProperties connectorTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent the root of a connector type.- Parameters:
externalSourceIsHome
- ensure that only the connectorType manager can update this connectorTypeexternalIdentifierProperties
- optional properties used to define an external identifierconnectorTypeProperties
- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createConnectorTypeFromTemplate
public String createConnectorTypeFromTemplate(boolean externalSourceIsHome, String templateGUID, ExternalIdentifierProperties externalIdentifierProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a connector type using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new connectorType.- Parameters:
externalSourceIsHome
- ensure that only the connectorType manager can update this processexternalIdentifierProperties
- optional properties used to define an external identifiertemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateConnectorType
public void updateConnectorType(String connectorTypeGUID, String connectorTypeExternalIdentifier, boolean isMergeUpdate, ConnectorTypeProperties connectorTypeProperties, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a connector type.- Parameters:
connectorTypeGUID
- unique identifier of the metadata element to updateconnectorTypeExternalIdentifier
- unique identifier of the connectorType in the external connectorType managerisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?connectorTypeProperties
- new properties for this elementeffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeConnectorType
public void removeConnectorType(String connectorTypeGUID, String connectorTypeExternalIdentifier, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a connector type. This will delete the connectorType and all anchored elements such as schema and comments.- Parameters:
connectorTypeGUID
- unique identifier of the metadata element to removeconnectorTypeExternalIdentifier
- unique identifier of the connectorType in the external connectorType managereffectiveTime
- optional date for effective time of the query. Null means any effective time- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findConnectorTypes
public List<ConnectorTypeElement> findConnectorTypes(String searchString, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of connectorType metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getConnectorTypesByName
public List<ConnectorTypeElement> getConnectorTypesByName(String name, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of connectorType metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getConnectorTypesForAssetManager
public List<ConnectorTypeElement> getConnectorTypesForAssetManager(int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of connectorTypes created on behalf of the named connectorType manager.- Parameters:
startFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getConnectorTypeByGUID
public ConnectorTypeElement getConnectorTypeByGUID(String dataAssetGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the connectorType metadata element with the supplied unique identifier.- Parameters:
dataAssetGUID
- unique identifier of the requested metadata elementeffectiveTime
- when should the elements be effected for - null is anytime; new Date() is now- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-