Class DataEngineConnectionAndEndpointHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineConnectionAndEndpointHandler
DataEngineConnectionAndEndpointHandler manages Connection and Endpoint objects from the property server. It runs server-side
in the DataEngine OMAS and creates Connection and Endpoint entities with wire relationships through the OMRSRepositoryConnector.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEngineConnectionAndEndpointHandler
(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, ConnectionHandler<Connection> connectionHandler, EndpointHandler<Endpoint> endpointHandler, ConnectorTypeHandler<ConnectorType> connectorTypeHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionvoid
removeConnection
(String userId, String connectionGUID, DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) Remove the connectionvoid
removeEndpoint
(String userId, String endpointGUID, DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) Remove the endpointvoid
upsertConnectionAndEndpoint
(String assetQualifiedName, String assetGUID, String assetTypeName, String protocol, String networkAddress, String externalSourceGUID, String externalSourceName, String userID) Constructs an Endpoint linked to a Connection, which in turn links it to provided asset
-
Constructor Details
-
DataEngineConnectionAndEndpointHandler
public DataEngineConnectionAndEndpointHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, ConnectionHandler<Connection> connectionHandler, EndpointHandler<Endpoint> endpointHandler, ConnectorTypeHandler<ConnectorType> connectorTypeHandler) Construct the handler information needed to interact with the repository services- Parameters:
invalidParameterHandler
- handler for managing parameter errorsrepositoryHelper
- provides utilities for manipulating the repository services objectsserviceName
- service nameserverName
- server namedataEngineCommonHandler
- provides common Data Engine OMAS utilitiesconnectionHandler
- provides utilities specific for manipulating ConnectionendpointHandler
- provides utilities specific for manipulating EndpointconnectorTypeHandler
- provides utilities specific for manipulating ConnectorType
-
-
Method Details
-
upsertConnectionAndEndpoint
public void upsertConnectionAndEndpoint(String assetQualifiedName, String assetGUID, String assetTypeName, String protocol, String networkAddress, String externalSourceGUID, String externalSourceName, String userID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Constructs an Endpoint linked to a Connection, which in turn links it to provided asset- Parameters:
assetQualifiedName
- asset qualified nameassetGUID
- asset GUIDassetTypeName
- asset type nameprotocol
- property of EndpointnetworkAddress
- property of EndpointexternalSourceGUID
- external source guidexternalSourceName
- external source nameuserID
- user id- Throws:
InvalidParameterException
- if invalid parametersPropertyServerException
- if errors in repositoryUserNotAuthorizedException
- if user not authorized
-
removeConnection
public void removeConnection(String userId, String connectionGUID, DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove the connection- Parameters:
userId
- the name of the calling userconnectionGUID
- unique identifier of the connection to be removeddeleteSemantic
- the delete semanticexternalSourceName
- the external data engineexternalSourceGUID
- the external data engine GUID- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property serverFunctionNotSupportedException
- the repository does not support this call.
-
removeEndpoint
public void removeEndpoint(String userId, String endpointGUID, DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove the endpoint- Parameters:
userId
- the name of the calling userendpointGUID
- unique identifier of the endpoint to be removeddeleteSemantic
- the delete semanticexternalSourceName
- the external data engineexternalSourceGUID
- the external data engine GUID- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property serverFunctionNotSupportedException
- the repository does not support this call.
-