Class DiscoveryAssetStore
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.DiscoveryAssetStore
DiscoveryAssetStore defines the interface to a connector broker backed by a metadata store that returns
information about the Asset that a Discovery Engine is to analyze. The userId that is passed on the call
by the discovery engine.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryAssetStore(String assetGUID, String userId) Constructor sets up the key parameters for accessing the asset store. -
Method Summary
Modifier and TypeMethodDescriptionReturn the unique identifier for the asset.abstract org.odpi.openmetadata.frameworks.connectors.properties.AssetUniverseReturns a comprehensive collection of properties about the requested asset.protected abstract org.odpi.openmetadata.frameworks.connectors.properties.beans.ConnectionReturn the connection information for the asset.protected abstract org.odpi.openmetadata.frameworks.connectors.ConnectorgetConnectorByConnection(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) Returns the connector corresponding to the supplied connection.org.odpi.openmetadata.frameworks.connectors.ConnectorReturn the connector to the requested asset.abstract voidlogAssetAuditMessage(String discoveryService, String message) Log an audit message about this asset.
-
Field Details
-
assetGUID
-
userId
-
assetConnection
protected org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection assetConnection
-
-
Constructor Details
-
DiscoveryAssetStore
Constructor sets up the key parameters for accessing the asset store.- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the annotations should be attached to
-
-
Method Details
-
getAssetGUID
Return the unique identifier for the asset.- Returns:
- guid
-
getConnectorByConnection
protected abstract org.odpi.openmetadata.frameworks.connectors.Connector getConnectorByConnection(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException Returns the connector corresponding to the supplied connection.- Parameters:
connection- the connection object that contains the properties needed to create the connection.- Returns:
- Connector connector instance
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there are errors in the initialization of the connector.
-
getConnectionForAsset
protected abstract org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection getConnectionForAsset() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the connection information for the asset. This is used to create the connector. The connector is an Open Connector Framework (OCF) connector that provides access to the asset's data and metadata properties.- Returns:
- Connection bean
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the asset guid is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to access the asset and/or connectionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem in the store whether the asset/connection properties are kept.
-
getAssetProperties
public abstract org.odpi.openmetadata.frameworks.connectors.properties.AssetUniverse getAssetProperties() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedExceptionReturns a comprehensive collection of properties about the requested asset.- Returns:
- a comprehensive collection of properties about the asset.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving the asset properties from the property servers).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
logAssetAuditMessage
public abstract void logAssetAuditMessage(String discoveryService, String message) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Log an audit message about this asset.- Parameters:
discoveryService- name of discovery servicemessage- message to log- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem retrieving the asset properties from the property servers).org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getConnectorToAsset
public org.odpi.openmetadata.frameworks.connectors.Connector getConnectorToAsset() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the connector to the requested asset.- Returns:
- Open Connector Framework (OCF) connector
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the asset guid is not recognized or the userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException- there are errors in the configuration of the connection which is preventing the creation of a connector.org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there are errors in the initialization of the connector.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to access the asset and/or connection needed to create the connector.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem in the store whether the asset/connection properties are kept.
-