public class ConnectionHandler<B> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
ConnectionHandler(OpenMetadataAPIGenericConverter<B> converter,
Class<B> beanClass,
String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEmbeddedConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String virtualConnectionGUID,
String virtualConnectionGUIDParameterName,
int position,
String displayName,
Map<String,Object> arguments,
String embeddedConnectionGUID,
String embeddedConnectionGUIDParameterName,
String methodName)
Link a connection into a virtual connection using the EmbeddedConnection relationship.
|
int |
countConnections(String userId,
String assetGUID,
String methodName)
Count the number of informal connections attached to a supplied asset.
|
String |
createConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String assetGUID,
String assetGUIDParameterName,
String assetSummary,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
Map<String,String> securedProperties,
Map<String,Object> configurationProperties,
String connectorUserId,
String clearPassword,
String encryptedPassword,
String connectorTypeGUID,
String connectorTypeGUIDParameterName,
String endpointGUID,
String endpointGUIDParameterName,
String methodName)
Creates a new connection, connects it to the asset and returns the unique identifier for it.
|
String |
createConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String assetGUID,
String assetGUIDParameterName,
String assetSummary,
String connectionTypeId,
String connectionTypeName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
Map<String,String> securedProperties,
Map<String,Object> configurationProperties,
String connectorUserId,
String clearPassword,
String encryptedPassword,
String connectorTypeGUID,
String connectorTypeGUIDParameterName,
String endpointGUID,
String endpointGUIDParameterName,
String methodName)
Creates a new connection and returns the unique identifier for it.
|
String |
createVirtualConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String assetGUID,
String assetGUIDParameterName,
String assetSummary,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
Map<String,String> securedProperties,
Map<String,Object> configurationProperties,
String connectorUserId,
String clearPassword,
String encryptedPassword,
String connectorTypeGUID,
String connectorTypeGUIDParameterName,
String methodName)
Creates a new virtual connection and returns the unique identifier for it.
|
B |
getConnectionForAsset(String userId,
String assetGUID,
String assetGUIDParameterName,
List<String> serviceSupportedZones,
String methodName)
Retrieve the list of connection objects attached to the requested asset object.
|
B |
getConnectionForAsset(String userId,
String assetGUID,
String assetGUIDParameterName,
String methodName)
Retrieve the list of connection objects attached to the requested asset object.
|
List<B> |
getConnectionsForAsset(String userId,
String assetGUID,
String assetGUIDParameterName,
List<String> serviceSupportedZones,
int startingFrom,
int pageSize,
String methodName)
Retrieve the list of connection objects attached to the requested asset object.
|
String |
saveConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String anchorGUID,
String assetGUID,
String assetGUIDParameterName,
String assetTypeName,
Connection connection,
String assetSummary,
String methodName)
Determine if the Connection object is stored in the repository and create it if it is not.
|
void |
updateConnection(String userId,
String externalSourceGUID,
String externalSourceName,
String connectionGUID,
String connectionGUIDParameterName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
Map<String,String> securedProperties,
Map<String,Object> configurationProperties,
String connectorUserId,
String clearPassword,
String encryptedPassword,
String typeGUID,
String typeName,
Map<String,Object> extendedProperties,
String methodName)
Updates the properties of an existing connection.
|
addSecurityTags, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, removeSecurityTags, removeSemanticAssignment, saveSemanticAssignment, saveSemanticAssignmentcountAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, relinkElementToNewElement, relinkElementToNewElement, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic ConnectionHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
converter - specific converter for this bean classbeanClass - name of bean class that is represented by the generic class BserviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve Asset instances from.defaultZones - list of zones that the access service should set in all new Asset instances.publishZones - list of zones that the access service sets up in published Asset instances.auditLog - destination for audit log events.public String saveConnection(String userId, String externalSourceGUID, String externalSourceName, String anchorGUID, String assetGUID, String assetGUIDParameterName, String assetTypeName, Connection connection, String assetSummary, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceanchorGUID - unique identifier of the anchor to add to the connectionassetGUID - unique identifier of linked asset (or null)assetGUIDParameterName - parameter name supplying assetGUIDassetTypeName - type of assetconnection - object to addassetSummary - description of the asset for the connectionmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createConnection(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String assetSummary, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,String> securedProperties, Map<String,Object> configurationProperties, String connectorUserId, String clearPassword, String encryptedPassword, String connectorTypeGUID, String connectorTypeGUIDParameterName, String endpointGUID, String endpointGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceassetGUID - the unique identifier for the asset entity (null for stand alone connections)assetGUIDParameterName - the parameter supplying assetGUIDassetSummary - brief description of the asset for the relationship between the asset and the connectionqualifiedName - unique namedisplayName - new value for the display name.description - new description for the connection.additionalProperties - additional propertiessecuredProperties - protected propertiesconfigurationProperties - properties passed to configure underlying technologiesconnectorUserId - user identity that the connector should useclearPassword - password for the userId in clear textencryptedPassword - encrypted password that the connector needs to decrypt before useconnectorTypeGUID - unique identifier of the connector type to used for this connectionconnectorTypeGUIDParameterName - the parameter supplying connectorTypeGUIDendpointGUID - unique identifier of the endpoint to used for this connectionendpointGUIDParameterName - the parameter supplying endpointGUIDmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the connection properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String createVirtualConnection(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String assetSummary, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,String> securedProperties, Map<String,Object> configurationProperties, String connectorUserId, String clearPassword, String encryptedPassword, String connectorTypeGUID, String connectorTypeGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceassetGUID - the unique identifier for the asset entity (null for stand alone connections)assetGUIDParameterName - the parameter supplying assetGUIDassetSummary - brief description of the asset for the relationship between the asset and the connectionqualifiedName - unique namedisplayName - new value for the display name.description - new description for the connection.additionalProperties - additional propertiessecuredProperties - protected propertiesconfigurationProperties - properties passed to configure underlying technologiesconnectorUserId - user identity that the connector should useclearPassword - password for the userId in clear textencryptedPassword - encrypted password that the connector needs to decrypt before useconnectorTypeGUID - unique identifier of the connector type to used for this connectionconnectorTypeGUIDParameterName - the parameter supplying connectorTypeGUIDmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the connection properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String createConnection(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String assetSummary, String connectionTypeId, String connectionTypeName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,String> securedProperties, Map<String,Object> configurationProperties, String connectorUserId, String clearPassword, String encryptedPassword, String connectorTypeGUID, String connectorTypeGUIDParameterName, String endpointGUID, String endpointGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceassetGUID - the unique identifier for the asset entity (null for stand alone connections)assetGUIDParameterName - the parameter supplying assetGUIDassetSummary - brief description of the asset for the relationship between the asset and the connectionconnectionTypeId - type identifier for the connectionconnectionTypeName - type name for the connectionqualifiedName - unique namedisplayName - new value for the display name.description - new description for the connection.additionalProperties - additional propertiessecuredProperties - protected propertiesconfigurationProperties - properties passed to configure underlying technologiesconnectorUserId - user identity that the connector should useclearPassword - password for the userId in clear textencryptedPassword - encrypted password that the connector needs to decrypt before useconnectorTypeGUID - unique identifier of the connector type to used for this connectionconnectorTypeGUIDParameterName - the parameter supplying connectorTypeGUIDendpointGUID - unique identifier of the endpoint to used for this connectionendpointGUIDParameterName - the parameter supplying endpointGUIDmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the connection properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void addEmbeddedConnection(String userId, String externalSourceGUID, String externalSourceName, String virtualConnectionGUID, String virtualConnectionGUIDParameterName, int position, String displayName, Map<String,Object> arguments, String embeddedConnectionGUID, String embeddedConnectionGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcevirtualConnectionGUID - unique identifier for the virtual connectionvirtualConnectionGUIDParameterName - parameter supplying virtualConnectionGUIDposition - position in the virtual connectiondisplayName - name of the embedded connectionarguments - arguments to use with the embedded connector when created as part of the virtual connectorembeddedConnectionGUID - unique identifier for the embedded connectionembeddedConnectionGUIDParameterName - parameter supplying embeddedConnectionGUIDmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the connection properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void updateConnection(String userId, String externalSourceGUID, String externalSourceName, String connectionGUID, String connectionGUIDParameterName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,String> securedProperties, Map<String,Object> configurationProperties, String connectorUserId, String clearPassword, String encryptedPassword, String typeGUID, String typeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceconnectionGUID - unique identifier for the connectionconnectionGUIDParameterName - parameter providing connectionGUIDqualifiedName - unique namedisplayName - new value for the display name.description - new description for the connection.additionalProperties - additional propertiessecuredProperties - protected propertiesconfigurationProperties - properties passed to configure underlying technologiesconnectorUserId - user identity that the connector should useclearPassword - password for the userId in clear textencryptedPassword - encrypted password that the connector needs to decrypt before usetypeGUID - identifier of the type that is a subtype of connection - or null to create standard typetypeName - name of the type that is a subtype of connection - or null to create standard typeextendedProperties - additional properties for the subtypemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the connection properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public int countConnections(String userId, String assetGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - identifier for the assetmethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getConnectionForAsset(String userId, String assetGUID, String assetGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset objectassetGUIDParameterName - parameter name supplying assetGUIDmethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getConnectionForAsset(String userId, String assetGUID, String assetGUIDParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset objectassetGUIDParameterName - parameter name supplying assetGUIDserviceSupportedZones - list of supported zones for the calling servicemethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> getConnectionsForAsset(String userId, String assetGUID, String assetGUIDParameterName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset objectassetGUIDParameterName - parameter name supplying assetGUIDserviceSupportedZones - list of supported zones for the calling servicestartingFrom - start position for resultspageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.