public class DiscoveryAssetStoreClient extends DiscoveryAssetStore
assetConnection, assetGUID, userId| Constructor and Description |
|---|
DiscoveryAssetStoreClient(String assetGUID,
String userId,
DiscoveryEngineClient discoveryEngineClient)
Constructor sets up the key parameters for accessing the asset store.
|
| Modifier and Type | Method and Description |
|---|---|
AssetUniverse |
getAssetProperties()
Returns a comprehensive collection of properties about the requested asset.
|
protected Connection |
getConnectionForAsset()
Return the connection information for the asset.
|
Connector |
getConnectorByConnection(Connection connection)
Returns the connector corresponding to the supplied connection.
|
void |
logAssetAuditMessage(String discoveryService,
String message)
Log an audit message about this asset.
|
getAssetGUID, getConnectorToAssetpublic DiscoveryAssetStoreClient(String assetGUID, String userId, DiscoveryEngineClient discoveryEngineClient)
userId - calling userassetGUID - unique identifier of the asset that the annotations should be attached todiscoveryEngineClient - client for calling REST APIsprotected Connection getConnectionForAsset() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getConnectionForAsset in class DiscoveryAssetStoreInvalidParameterException - the asset guid is not recognizedUserNotAuthorizedException - the user is not authorized to access the asset and/or connectionPropertyServerException - there was a problem in the store whether the asset/connection properties are kept.public Connector getConnectorByConnection(Connection connection) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException
getConnectorByConnection in class DiscoveryAssetStoreconnection - the connection object that contains the properties needed to create the connection.InvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - 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.public AssetUniverse getAssetProperties() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetProperties in class DiscoveryAssetStoreInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void logAssetAuditMessage(String discoveryService, String message) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
logAssetAuditMessage in class DiscoveryAssetStorediscoveryService - name of discovery servicemessage - message to logInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.