Class ConnectionManager
java.lang.Object
org.odpi.openmetadata.accessservices.digitalarchitecture.client.ConnectionManager
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections
public class ConnectionManager
extends Object
implements org.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections
ConnectionManager provides the API operations to create and maintain connection definitions and their related objects.
The client supports the following types of objects
- Connections - the connections used to create connector instances that can access the connection.
- ConnectorTypes - description of a specific that can be used to access the connection.
- ConnectorCategories - the network information needed to access the connection.
- Endpoints - the network information needed to access the connection.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionManager(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.ConnectionManager(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client with no authentication embedded in the HTTP request and an audit log.ConnectionManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request.ConnectionManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.ConnectionManager(String serverName, String serverPlatformURLRoot, DigitalArchitectureRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that is going to be used in an OMAG Server (view service or integration service typically). -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAssetConnection(String userId, String assetGUID, String connectionGUID) Remove a relationship between an asset and its connection.voidclearConnectorType(String userId, String connectionGUID, String connectorTypeGUID) Remove a relationship between a connection and a connector type.voidclearEmbeddedConnection(String userId, String connectionGUID, String embeddedConnectionGUID) Remove a relationship between a virtual connection and an embedded connection.voidclearEndpoint(String userId, String connectionGUID, String endpointGUID) Remove a relationship between a connection and an endpoint.createConnection(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectionProperties connectionProperties) Create a new metadata element to represent a connection.createConnectionFromTemplate(String userId, String templateGUID, org.odpi.openmetadata.accessservices.digitalarchitecture.properties.TemplateProperties templateProperties) Create a new metadata element to represent a connection using an existing metadata element as a template.createConnectorType(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectorTypeProperties connectorTypeProperties) Create a new metadata element to represent a connectorType.createConnectorTypeFromTemplate(String userId, String templateGUID, org.odpi.openmetadata.accessservices.digitalarchitecture.properties.TemplateProperties templateProperties) Create a new metadata element to represent a connectorType using an existing metadata element as a template.createEndpoint(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) Create a new metadata element to represent a endpoint.createEndpointFromTemplate(String userId, String networkAddress, String templateGUID, org.odpi.openmetadata.accessservices.digitalarchitecture.properties.TemplateProperties templateProperties) Create a new metadata element to represent a endpoint using an existing metadata element as a template.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectionElement>findConnections(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of connection metadata elements that contain the search string.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectorTypeElement>findConnectorTypes(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of connectorType metadata elements that contain the search string.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement>findEndpoints(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of endpoint metadata elements that contain the search string.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectionElementgetConnectionByGUID(String userId, String connectionGUID) Retrieve the connection metadata element with the supplied unique identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectionElement>getConnectionsByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of connection metadata elements with a matching qualified or display name.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectorTypeElementgetConnectorTypeByGUID(String userId, String connectorTypeGUID) Retrieve the connectorType metadata element with the supplied unique identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectorTypeElement>getConnectorTypesByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of connectorType metadata elements with a matching qualified or display name.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElementgetEndpointByGUID(String userId, String endpointGUID) Retrieve the endpoint metadata element with the supplied unique identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement>getEndpointsByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of endpoint metadata elements with a matching qualified or display name.voidremoveConnection(String userId, String connectionGUID) Remove the metadata element representing a connection.voidremoveConnectorType(String userId, String connectorTypeGUID) Remove the metadata element representing a connectorType.voidremoveEndpoint(String userId, String endpointGUID) Remove the metadata element representing a endpoint.voidsetupAssetConnection(String userId, String assetGUID, String assetSummary, String connectionGUID) Create a relationship between an asset and its connection.voidsetupConnectorType(String userId, String connectionGUID, String connectorTypeGUID) Create a relationship between a connection and a connector type.voidsetupEmbeddedConnection(String userId, 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 connectionGUID, String endpointGUID) Create a relationship between a connection and an endpoint.voidupdateConnection(String userId, String connectionGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectionProperties connectionProperties) Update the metadata element representing a connection.voidupdateConnectorType(String userId, boolean isMergeUpdate, String connectorTypeGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectorTypeProperties connectorTypeProperties) Update the metadata element representing a connectorType.voidupdateEndpoint(String userId, boolean isMergeUpdate, String endpointGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) Update the metadata element representing a endpoint.
-
Constructor Details
-
ConnectionManager
public ConnectionManager(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request and an audit log.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesmaxPageSize- maximum number of results supported by this serverauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
ConnectionManager
public ConnectionManager(String serverName, String serverPlatformURLRoot, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesmaxPageSize- maximum number of results supported by this server- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
ConnectionManager
public ConnectionManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request. There is also an audit log destination.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- maximum number of results supported by this serverauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
ConnectionManager
public ConnectionManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- maximum number of results supported by this server- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
ConnectionManager
public ConnectionManager(String serverName, String serverPlatformURLRoot, DigitalArchitectureRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that is going to be used in an OMAG Server (view service or integration service typically).- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this serverauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
createConnection
public String createConnection(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectionProperties connectionProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a connection. Classifications can be added later to define the type of connection.- Specified by:
createConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createConnectionFromTemplate
public String createConnectionFromTemplate(String userId, String templateGUID, org.odpi.openmetadata.accessservices.digitalarchitecture.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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.- Specified by:
createConnectionFromTemplatein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling usertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateConnection
public void updateConnection(String userId, String connectionGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectionProperties connectionProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a connection.- Specified by:
updateConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?connectionProperties- new properties for this element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupConnectorType
public void setupConnectorType(String userId, String connectionGUID, String connectorTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a relationship between a connection and a connector type.- Specified by:
setupConnectorTypein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerconnectorTypeGUID- unique identifier of the connector type 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- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearConnectorType
public void clearConnectorType(String userId, String connectionGUID, String connectorTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a relationship between a connection and a connector type.- Specified by:
clearConnectorTypein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerconnectorTypeGUID- unique identifier of the connector type 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- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupEndpoint
public void setupEndpoint(String userId, String connectionGUID, String endpointGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a relationship between a connection and an endpoint.- Specified by:
setupEndpointin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerendpointGUID- unique identifier of the endpoint 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- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearEndpoint
public void clearEndpoint(String userId, String connectionGUID, String endpointGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a relationship between a connection and an endpoint.- Specified by:
clearEndpointin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerendpointGUID- unique identifier of the endpoint 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- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupEmbeddedConnection
public void setupEmbeddedConnection(String userId, String connectionGUID, int position, String displayName, Map<String, Object> arguments, String embeddedConnectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionCreate a relationship between a virtual connection and an embedded connection.- Specified by:
setupEmbeddedConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearEmbeddedConnection
public void clearEmbeddedConnection(String userId, String connectionGUID, String embeddedConnectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a relationship between a virtual connection and an embedded connection.- Specified by:
clearEmbeddedConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the virtual connection in the external asset managerembeddedConnectionGUID- unique identifier of the embedded connection 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- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupAssetConnection
public void setupAssetConnection(String userId, String assetGUID, String assetSummary, String connectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a relationship between an asset and its connection.- Specified by:
setupAssetConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userassetGUID- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearAssetConnection
public void clearAssetConnection(String userId, String assetGUID, String connectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a relationship between an asset and its connection.- Specified by:
clearAssetConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userassetGUID- unique identifier of the assetconnectionGUID- unique identifier of the connection- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeConnection
public void removeConnection(String userId, String connectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a connection.- Specified by:
removeConnectionin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findConnections
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectionElement> findConnections(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of connection metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findConnectionsin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectionsByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectionElement> getConnectionsByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of connection metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getConnectionsByNamein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectionByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectionElement getConnectionByGUID(String userId, String connectionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the connection metadata element with the supplied unique identifier.- Specified by:
getConnectionByGUIDin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectionGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createEndpoint
public String createEndpoint(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a endpoint. Classifications can be added later to define the type of endpoint.- Specified by:
createEndpointin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userendpointProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createEndpointFromTemplate
public String createEndpointFromTemplate(String userId, String networkAddress, String templateGUID, org.odpi.openmetadata.accessservices.digitalarchitecture.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a endpoint using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new endpoint.- Specified by:
createEndpointFromTemplatein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling usernetworkAddress- location of the endpointtemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateEndpoint
public void updateEndpoint(String userId, boolean isMergeUpdate, String endpointGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a endpoint.- Specified by:
updateEndpointin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?endpointGUID- unique identifier of the metadata element to updateendpointProperties- new properties for this element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeEndpoint
public void removeEndpoint(String userId, String endpointGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a endpoint.- Specified by:
removeEndpointin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userendpointGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findEndpoints
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement> findEndpoints(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of endpoint metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findEndpointsin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointsByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement> getEndpointsByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of endpoint metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getEndpointsByNamein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement getEndpointByGUID(String userId, String endpointGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the endpoint metadata element with the supplied unique identifier.- Specified by:
getEndpointByGUIDin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userendpointGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createConnectorType
public String createConnectorType(String userId, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectorTypeProperties connectorTypeProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a connectorType. Classifications can be added later to define the type of connectorType.- Specified by:
createConnectorTypein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectorTypeProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createConnectorTypeFromTemplate
public String createConnectorTypeFromTemplate(String userId, String templateGUID, org.odpi.openmetadata.accessservices.digitalarchitecture.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a connectorType using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new connectorType.- Specified by:
createConnectorTypeFromTemplatein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling usertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateConnectorType
public void updateConnectorType(String userId, boolean isMergeUpdate, String connectorTypeGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.ConnectorTypeProperties connectorTypeProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a connectorType.- Specified by:
updateConnectorTypein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?connectorTypeGUID- unique identifier of the metadata element to updateconnectorTypeProperties- new properties for this element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeConnectorType
public void removeConnectorType(String userId, String connectorTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a connectorType.- Specified by:
removeConnectorTypein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectorTypeGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findConnectorTypes
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectorTypeElement> findConnectorTypes(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of connectorType metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findConnectorTypesin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectorTypesByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectorTypeElement> getConnectorTypesByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of connectorType metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getConnectorTypesByNamein interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectorTypeByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ConnectorTypeElement getConnectorTypeByGUID(String userId, String connectorTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the connectorType metadata element with the supplied unique identifier.- Specified by:
getConnectorTypeByGUIDin interfaceorg.odpi.openmetadata.accessservices.digitalarchitecture.api.ManageConnections- Parameters:
userId- calling userconnectorTypeGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-