Class ConnectionExchangeService
- java.lang.Object
-
- org.odpi.openmetadata.integrationservices.catalog.connector.ConnectionExchangeService
-
public class ConnectionExchangeService extends Object
ConnectionExchangeService is the context for managing connections and associated elements such as connector types and endpoints.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearAssetConnection(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String connectionGUID)Remove a relationship between an asset and its connection.voidclearConnectorType(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectorTypeGUID)Remove a relationship between a connection and a connector type.voidclearEmbeddedConnection(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String embeddedConnectionGUID)Remove a relationship between a virtual connection and an embedded connection.voidclearEndpoint(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String endpointGUID)Remove a relationship between a connection and an endpoint.StringcreateConnection(boolean externalSourceIsHome, String connectionExternalIdentifier, String connectionExternalIdentifierName, String connectionExternalIdentifierUsage, KeyPattern connectionExternalIdentifierKeyPattern, Map<String,String> mappingProperties, ConnectionProperties connectionProperties)Create a new metadata element to represent the root of a connection.StringcreateConnectionFromTemplate(boolean externalSourceIsHome, String templateGUID, String connectionExternalIdentifier, String connectionExternalIdentifierName, String connectionExternalIdentifierUsage, KeyPattern connectionExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent an connection using an existing metadata element as a template.StringcreateConnectorType(boolean externalSourceIsHome, String connectorTypeExternalIdentifier, String connectorTypeExternalIdentifierName, String connectorTypeExternalIdentifierUsage, KeyPattern connectorTypeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, ConnectorTypeProperties connectorTypeProperties)Create a new metadata element to represent the root of a connector type.StringcreateConnectorTypeFromTemplate(boolean externalSourceIsHome, String templateGUID, String connectorTypeExternalIdentifier, String connectorTypeExternalIdentifierName, String connectorTypeExternalIdentifierUsage, KeyPattern connectorTypeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent a connector type using an existing metadata element as a template.StringcreateEndpoint(boolean externalSourceIsHome, String endpointExternalIdentifier, String endpointExternalIdentifierName, String endpointExternalIdentifierUsage, KeyPattern endpointExternalIdentifierKeyPattern, Map<String,String> mappingProperties, EndpointProperties endpointProperties)Create a new metadata element to represent the root of an endpoint.StringcreateEndpointFromTemplate(boolean externalSourceIsHome, String templateGUID, String endpointExternalIdentifier, String endpointExternalIdentifierName, String endpointExternalIdentifierUsage, KeyPattern endpointExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent an endpoint using an existing metadata element as a template.List<ConnectionElement>findConnections(String searchString, int startFrom, int pageSize)Retrieve the list of connection metadata elements that contain the search string.List<ConnectorTypeElement>findConnectorTypes(String searchString, int startFrom, int pageSize)Retrieve the list of connectorType metadata elements that contain the search string.List<EndpointElement>findEndpoints(String searchString, int startFrom, int pageSize)Retrieve the list of endpoint metadata elements that contain the search string.ConnectionElementgetConnectionByGUID(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID)Retrieve the connection metadata element with the supplied unique identifier.List<ConnectionElement>getConnectionsByName(String name, int startFrom, int pageSize)Retrieve the list of connection metadata elements with a matching qualified or display name.List<ConnectionElement>getConnectionsForAssetManager(int startFrom, int pageSize)Retrieve the list of connections created on behalf of the named external source.ConnectorTypeElementgetConnectorTypeByGUID(String userId, String externalSourceGUID, String externalSourceName, String dataAssetGUID)Retrieve the connectorType metadata element with the supplied unique identifier.List<ConnectorTypeElement>getConnectorTypesByName(String name, int startFrom, int pageSize)Retrieve the list of connectorType metadata elements with a matching qualified or display name.List<ConnectorTypeElement>getConnectorTypesForAssetManager(int startFrom, int pageSize)Retrieve the list of connectorTypes created on behalf of the named connectorType manager.EndpointElementgetEndpointByGUID(String userId, String externalSourceGUID, String externalSourceName, String endpointGUID)Retrieve the endpoint metadata element with the supplied unique identifier.List<EndpointElement>getEndpointsByName(String name, int startFrom, int pageSize)Retrieve the list of endpoint metadata elements with a matching qualified or display name.List<EndpointElement>getEndpointsForAssetManager(int startFrom, int pageSize)Retrieve the list of endpoints created on behalf of the named external source.voidremoveConnection(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectionExternalIdentifier)Remove the metadata element representing an connection.voidremoveConnectorType(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String connectorTypeExternalIdentifier)Remove the metadata element representing a connector type.voidremoveEndpoint(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String endpointExternalIdentifier)Remove the metadata element representing a connector type.voidsetupAssetConnection(String userId, String externalSourceGUID, String externalSourceName, boolean externalSourceIsHome, String assetGUID, String assetSummary, String connectionGUID)Create a relationship between an asset and its connection.voidsetupConnectorType(String userId, boolean externalSourceIsHome, String connectionGUID, String connectorTypeGUID)Create a relationship between a connection and a connector type.voidsetupEmbeddedConnection(String userId, String externalSourceGUID, String externalSourceName, boolean externalSourceIsHome, String connectionGUID, int position, String displayName, Map<String,Object> arguments, String embeddedConnectionGUID)Create a relationship between a virtual connection and an embedded connection.voidsetupEndpoint(String userId, String externalSourceGUID, String externalSourceName, boolean externalSourceIsHome, String connectionGUID, String endpointGUID)Create a relationship between a connection and an endpoint.voidupdateConnection(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectionExternalIdentifier, boolean isMergeUpdate, ConnectionProperties connectionProperties)Update the metadata element representing an connection.voidupdateConnectorType(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String connectorTypeExternalIdentifier, boolean isMergeUpdate, ConnectorTypeProperties connectorTypeProperties)Update the metadata element representing a connector type.voidupdateEndpoint(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String endpointExternalIdentifier, boolean isMergeUpdate, EndpointProperties endpointProperties)Update the metadata element representing an endpoint.
-
-
-
Method Detail
-
createConnection
public String createConnection(boolean externalSourceIsHome, String connectionExternalIdentifier, String connectionExternalIdentifierName, String connectionExternalIdentifierUsage, KeyPattern connectionExternalIdentifierKeyPattern, Map<String,String> mappingProperties, 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 connectionconnectionExternalIdentifier- unique identifier of the connection in the external external sourceconnectionExternalIdentifierName- name of property for the external identifier in the external external sourceconnectionExternalIdentifierUsage- optional usage description for the external identifier when calling the external external sourceconnectionExternalIdentifierKeyPattern- pattern for the external identifier within the external external source (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external external source and open metadataconnectionProperties- 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, String connectionExternalIdentifier, String connectionExternalIdentifierName, String connectionExternalIdentifierUsage, KeyPattern connectionExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an 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 processconnectionExternalIdentifier- unique identifier of the connection in the external external sourceconnectionExternalIdentifierName- name of property for the external identifier in the external external sourceconnectionExternalIdentifierUsage- optional usage description for the external identifier when calling the external external sourceconnectionExternalIdentifierKeyPattern- pattern for the external identifier within the external external source (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external external source and open metadatatemplateGUID- 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 userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectionExternalIdentifier, boolean isMergeUpdate, ConnectionProperties connectionProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing an connection.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectionGUID- unique identifier of the metadata element to updateconnectionExternalIdentifier- unique identifier of the connection in the external external sourceisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?connectionProperties- new properties for this 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)
-
setupConnectorType
public void setupConnectorType(String userId, boolean externalSourceIsHome, String connectionGUID, String connectorTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between a connection and a connector type.- Parameters:
userId- calling userexternalSourceIsHome- 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 manager- 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 userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectorTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between a connection and a connector type.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectionGUID- unique identifier of the connection in the external asset managerconnectorTypeGUID- unique identifier of the connector type in the external asset manager- 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(String userId, String externalSourceGUID, String externalSourceName, boolean externalSourceIsHome, String connectionGUID, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between a connection and an endpoint.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerexternalSourceIsHome- 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 manager- 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 userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between a connection and an endpoint.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectionGUID- unique identifier of the connection in the external asset managerendpointGUID- unique identifier of the endpoint in the external asset manager- 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(String userId, String externalSourceGUID, String externalSourceName, boolean externalSourceIsHome, String connectionGUID, int position, String displayName, Map<String,Object> arguments, String embeddedConnectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between a virtual connection and an embedded connection.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerexternalSourceIsHome- ensure that only the asset manager can update this relationshipconnectionGUID- unique identifier of the virtual connection in the external asset managerposition- which order should this connection be processedarguments- What additional properties should be passed to the embedded connector via the configuration propertiesdisplayName- what does this connector signify?embeddedConnectionGUID- unique identifier of the embedded connection in the external asset manager- 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 userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String embeddedConnectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between a virtual connection and an embedded connection.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectionGUID- unique identifier of the virtual connection in the external asset managerembeddedConnectionGUID- unique identifier of the embedded connection in the external asset manager- 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(String userId, String externalSourceGUID, String externalSourceName, boolean externalSourceIsHome, String assetGUID, String assetSummary, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between an asset and its connection.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerexternalSourceIsHome- ensure that only the asset manager can update this relationshipassetGUID- unique identifier of the assetassetSummary- summary of the asset that is stored in the relationship between the asset and the connection.connectionGUID- unique identifier of the connection- 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 userId, String externalSourceGUID, String externalSourceName, String assetGUID, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between an asset and its connection.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerassetGUID- unique identifier of the assetconnectionGUID- unique identifier of the connection- 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 userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectionExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing an connection. This will delete the connection and all anchored elements such as schema and comments.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectionGUID- unique identifier of the metadata element to removeconnectionExternalIdentifier- unique identifier of the connection in the external external source- 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) 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 returned- 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) 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 returned- 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) 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 returned- 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 userId, String externalSourceGUID, String externalSourceName, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the connection metadata element with the supplied unique identifier.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectionGUID- unique identifier of the requested metadata element- 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, String endpointExternalIdentifier, String endpointExternalIdentifierName, String endpointExternalIdentifierUsage, KeyPattern endpointExternalIdentifierKeyPattern, Map<String,String> mappingProperties, 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 endpointendpointExternalIdentifier- unique identifier of the endpoint in the external external sourceendpointExternalIdentifierName- name of property for the external identifier in the external external sourceendpointExternalIdentifierUsage- optional usage description for the external identifier when calling the external external sourceendpointExternalIdentifierKeyPattern- pattern for the external identifier within the external external source (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external external source and open metadataendpointProperties- 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, String endpointExternalIdentifier, String endpointExternalIdentifierName, String endpointExternalIdentifierUsage, KeyPattern endpointExternalIdentifierKeyPattern, Map<String,String> mappingProperties, 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 processendpointExternalIdentifier- unique identifier of the endpoint in the external external sourceendpointExternalIdentifierName- name of property for the external identifier in the external external sourceendpointExternalIdentifierUsage- optional usage description for the external identifier when calling the external external sourceendpointExternalIdentifierKeyPattern- pattern for the external identifier within the external external source (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external external source and open metadatatemplateGUID- 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 userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String endpointExternalIdentifier, boolean isMergeUpdate, EndpointProperties endpointProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing an endpoint.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectorTypeGUID- unique identifier of the metadata element to updateendpointExternalIdentifier- unique identifier of the endpoint in the external external sourceisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?endpointProperties- new properties for this 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)
-
removeEndpoint
public void removeEndpoint(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String endpointExternalIdentifier) 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:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectorTypeGUID- unique identifier of the metadata element to removeendpointExternalIdentifier- unique identifier of the endpoint in the external external source- 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) 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 returned- 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) 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 returned- 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) 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 returned- 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 userId, String externalSourceGUID, String externalSourceName, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the endpoint metadata element with the supplied unique identifier.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerendpointGUID- unique identifier of the requested metadata element- 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, String connectorTypeExternalIdentifier, String connectorTypeExternalIdentifierName, String connectorTypeExternalIdentifierUsage, KeyPattern connectorTypeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, 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 connectorTypeconnectorTypeExternalIdentifier- unique identifier of the connectorType in the external connectorType managerconnectorTypeExternalIdentifierName- name of property for the external identifier in the external connectorType managerconnectorTypeExternalIdentifierUsage- optional usage description for the external identifier when calling the external connectorType managerconnectorTypeExternalIdentifierKeyPattern- pattern for the external identifier within the external connectorType manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external connectorType manager and open metadataconnectorTypeProperties- 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, String connectorTypeExternalIdentifier, String connectorTypeExternalIdentifierName, String connectorTypeExternalIdentifierUsage, KeyPattern connectorTypeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, 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 processconnectorTypeExternalIdentifier- unique identifier of the connectorType in the external connectorType managerconnectorTypeExternalIdentifierName- name of property for the external identifier in the external connectorType managerconnectorTypeExternalIdentifierUsage- optional usage description for the external identifier when calling the external connectorType managerconnectorTypeExternalIdentifierKeyPattern- pattern for the external identifier within the external connectorType manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external connectorType manager and open metadatatemplateGUID- 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 userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String connectorTypeExternalIdentifier, boolean isMergeUpdate, ConnectorTypeProperties connectorTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a connector type.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectorTypeGUID- 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 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)
-
removeConnectorType
public void removeConnectorType(String userId, String externalSourceGUID, String externalSourceName, String connectorTypeGUID, String connectorTypeExternalIdentifier) 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:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerconnectorTypeGUID- unique identifier of the metadata element to removeconnectorTypeExternalIdentifier- unique identifier of the connectorType in the external connectorType manager- 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) 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 returned- 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) 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 returned- 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) 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 returned- 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 userId, String externalSourceGUID, String externalSourceName, String dataAssetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the connectorType metadata element with the supplied unique identifier.- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software server capability representing the callerexternalSourceName- unique name of software server capability representing the callerdataAssetGUID- unique identifier of the requested metadata element- 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)
-
-