public class ConnectionHandler extends Object
| Constructor and Description |
|---|
ConnectionHandler(String serviceName,
OMRSRepositoryConnector repositoryConnector)
Construct the connection handler with a link to the property server's connector and this access service's
official name.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnectionByGUID(String userId,
String guid)
Returns the connection object corresponding to the supplied connection GUID.
|
Connection |
getConnectionByName(String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
public ConnectionHandler(String serviceName, OMRSRepositoryConnector repositoryConnector)
serviceName - name of this servicerepositoryConnector - connector to the property server.public Connection getConnectionByName(String userId, String name) throws InvalidParameterException, AmbiguousConnectionNameException, PropertyServerException, UserNotAuthorizedException
userId - String - userId of user making request.name - this may be the qualifiedName or displayName of the connection.InvalidParameterException - one of the parameters is null or invalid.AmbiguousConnectionNameException - there is more than one connection defined for this name.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public Connection getConnectionByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - String - userId of user making request.guid - the unique id for the connection within the property server.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.