public class DiscoveryEngineClient extends ConnectedAssetClientBase
invalidParameterHandler, nullRequestBody, serverName, serverPlatformRootURL| Constructor and Description |
|---|
DiscoveryEngineClient(String serverName,
String serverPlatformRootURL,
ODFRESTClient restClient)
Constructor sets up the key parameters for accessing the asset store.
|
| Modifier and Type | Method and Description |
|---|---|
DiscoveryAnalysisReport |
createDiscoveryAnalysisReport(String userId,
String qualifiedName,
String displayName,
String description,
Date creationDate,
Map<String,String> analysisParameters,
DiscoveryRequestStatus discoveryRequestStatus,
String assetGUID,
String discoveryEngineGUID,
String discoveryServiceGUID,
Map<String,String> additionalProperties,
List<Classification> classifications)
Create a new discovery analysis report and chain it to its asset, discovery engine and discovery service.
|
Annotation |
getAnnotation(String userId,
String discoveryReportGUID,
String annotationGUID)
Retrieve a single annotation by unique identifier.
|
Connector |
getConnectorForConnection(String userId,
Connection connection)
Returns the connector corresponding to the supplied connection.
|
DiscoveryAnalysisReport |
getDiscoveryAnalysisReport(String userId,
String discoveryReportGUID)
Request the discovery report for a discovery request that has completed.
|
List<Annotation> |
getDiscoveryReportAnnotations(String userId,
String discoveryReportGUID,
int startingFrom,
int maximumResults)
Return the annotations linked directly to the report.
|
DiscoveryRequestStatus |
getDiscoveryStatus(String userId,
String discoveryReportGUID)
Request the status of an executing discovery request.
|
List<Annotation> |
getExtendedAnnotations(String userId,
String discoveryReportGUID,
String annotationGUID,
int startingFrom,
int maximumResults)
Return any annotations attached to this annotation.
|
void |
logAssetAuditMessage(String userId,
String assetGUID,
String message)
Log an audit message about this asset.
|
void |
setDiscoveryStatus(String userId,
String discoveryReportGUID,
DiscoveryRequestStatus newStatus)
Request the status of an executing discovery request.
|
DiscoveryAnalysisReport |
updateDiscoveryAnalysisReport(String userId,
DiscoveryAnalysisReport updatedReport)
Update the properties of the discovery analysis report.
|
getAssetForConnection, getAssetProperties, getAssetSummary, getConnectionByGUID, getConnectionForAsset, getConnectorForConnectionpublic DiscoveryEngineClient(String serverName, String serverPlatformRootURL, ODFRESTClient restClient) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversrestClient - client for calling REST APIsInvalidParameterException - unable to initialize the client due to bad parameterspublic Connector getConnectorForConnection(String userId, Connection connection) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException
userId - userId of user making request.connection - 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 void logAssetAuditMessage(String userId, String assetGUID, String message) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for asset.message - 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.public DiscoveryAnalysisReport createDiscoveryAnalysisReport(String userId, String qualifiedName, String displayName, String description, Date creationDate, Map<String,String> analysisParameters, DiscoveryRequestStatus discoveryRequestStatus, String assetGUID, String discoveryEngineGUID, String discoveryServiceGUID, Map<String,String> additionalProperties, List<Classification> classifications) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userqualifiedName - unique name for the reportdisplayName - short name for the reportdescription - description of the reportcreationDate - date of the reportanalysisParameters - analysis parameters passed to the discovery servicediscoveryRequestStatus - current status of the discovery processingassetGUID - unique identifier of the asset being analyseddiscoveryEngineGUID - unique identifier of the discovery engine that is running the discovery servicediscoveryServiceGUID - unique identifier of the discovery service creating the reportadditionalProperties - additional properties for the reportclassifications - classifications to attach to the reportInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to access the asset and/or reportPropertyServerException - there was a problem in the store whether the asset/report properties are kept.public DiscoveryAnalysisReport updateDiscoveryAnalysisReport(String userId, DiscoveryAnalysisReport updatedReport) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.updatedReport - updated report - this will replace what was previous stored.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public DiscoveryRequestStatus getDiscoveryStatus(String userId, String discoveryReportGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public void setDiscoveryStatus(String userId, String discoveryReportGUID, DiscoveryRequestStatus newStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.newStatus - status enumInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public DiscoveryAnalysisReport getDiscoveryAnalysisReport(String userId, String discoveryReportGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery report.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<Annotation> getDiscoveryReportAnnotations(String userId, String discoveryReportGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public List<Annotation> getExtendedAnnotations(String userId, String discoveryReportGUID, String annotationGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery report.annotationGUID - anchor annotationstartingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public Annotation getAnnotation(String userId, String discoveryReportGUID, String annotationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery report.annotationGUID - unique identifier of the annotationInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.Copyright © 2018–2019 ODPi. All rights reserved.