Class ConnectedAssetContext
java.lang.Object
org.odpi.openmetadata.frameworks.integration.context.ConnectedAssetContext
-
Constructor Summary
ConstructorsConstructorDescriptionConnectedAssetContext(String userId, ConnectedAssetClient connectedAssetClient) Constructor sets up the key parameters for accessing the asset store. -
Method Summary
Modifier and TypeMethodDescriptiongetConnectorForAsset(String assetGUID, AuditLog auditLog) Return the connector to the requested asset.
-
Constructor Details
-
ConnectedAssetContext
Constructor sets up the key parameters for accessing the asset store.- Parameters:
userId- calling userconnectedAssetClient- client to make the calls
-
-
Method Details
-
getConnectorForAsset
public Connector getConnectorForAsset(String assetGUID, AuditLog auditLog) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, UserNotAuthorizedException, PropertyServerException Return the connector to the requested asset.- Parameters:
assetGUID- the unique identifier of an asset to attach the connection toauditLog- optional logging destination- Returns:
- Open Connector Framework (OCF) connector
- Throws:
InvalidParameterException- the asset guid is not recognized or the userId is nullConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.ConnectorCheckedException- there are errors in the initialization of the connector.UserNotAuthorizedException- the user is not authorized to access the asset and/or connection needed to create the connector.PropertyServerException- there was a problem in the store whether the asset/connection properties are kept.
-