public class DataEngineConnectionAndEndpointHandler extends Object
| Constructor and 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeConnection(String userId,
String connectionGUID,
DeleteSemantic deleteSemantic,
String externalSourceName)
Remove the connection
|
void |
removeEndpoint(String userId,
String endpointGUID,
DeleteSemantic deleteSemantic,
String externalSourceName)
Remove the endpoint
|
void |
upsertConnectionAndEndpoint(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
|
public DataEngineConnectionAndEndpointHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, ReferenceableHandler<Connection> connectionHandler, ReferenceableHandler<Endpoint> endpointHandler)
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 Endpointpublic void upsertConnectionAndEndpoint(String assetQualifiedName, String assetTypeName, String protocol, String networkAddress, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
assetQualifiedName - asset qualified nameassetTypeName - asset type nameprotocol - property of EndpointnetworkAddress - property of EndpointexternalSourceGuid - external source guidexternalSourceName - external source nameuserId - user idmethodName - method nameInvalidParameterException - if invalid parametersPropertyServerException - if errors in repositoryUserNotAuthorizedException - if user not authorizedpublic void removeConnection(String userId, String connectionGUID, DeleteSemantic deleteSemantic, String externalSourceName) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userconnectionGUID - unique identifier of the connection to be removedexternalSourceName - the external data enginedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.public void removeEndpoint(String userId, String endpointGUID, DeleteSemantic deleteSemantic, String externalSourceName) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userendpointGUID - unique identifier of the endpoint to be removedexternalSourceName - the external data enginedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.