Class DataEngineConnectionAndEndpointHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineConnectionAndEndpointHandler
-
public class DataEngineConnectionAndEndpointHandler extends Object
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
Constructors Constructor Description DataEngineConnectionAndEndpointHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, ReferenceableHandler<Connection> connectionHandler, ReferenceableHandler<Endpoint> endpointHandler)Construct the handler information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveConnection(String userId, String connectionGUID, DeleteSemantic deleteSemantic, String externalSourceName)Remove the connectionvoidremoveEndpoint(String userId, String endpointGUID, DeleteSemantic deleteSemantic, String externalSourceName)Remove the endpointvoidupsertConnectionAndEndpoint(String assetQualifiedName, String assetTypeName, String protocol, String networkAddress, String externalSourceGuid, String externalSourceName, String userId, String methodName)Constructs an Endpoint linked to a Connection, which in turn links it to provided asset
-
-
-
Constructor Detail
-
DataEngineConnectionAndEndpointHandler
public DataEngineConnectionAndEndpointHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, ReferenceableHandler<Connection> connectionHandler, ReferenceableHandler<Endpoint> endpointHandler)
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 Endpoint
-
-
Method Detail
-
upsertConnectionAndEndpoint
public void upsertConnectionAndEndpoint(String assetQualifiedName, String assetTypeName, String protocol, String networkAddress, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Constructs an Endpoint linked to a Connection, which in turn links it to provided asset- Parameters:
assetQualifiedName- asset qualified nameassetTypeName- asset type nameprotocol- property of EndpointnetworkAddress- property of EndpointexternalSourceGuid- external source guidexternalSourceName- external source nameuserId- user idmethodName- method name- 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) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Remove the connection- Parameters:
userId- the name of the calling userconnectionGUID- unique identifier of the connection to be removedexternalSourceName- the external data enginedeleteSemantic- the delete semantic- 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) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Remove the endpoint- Parameters:
userId- the name of the calling userendpointGUID- unique identifier of the endpoint to be removedexternalSourceName- the external data enginedeleteSemantic- the delete semantic- 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.
-
-