public class DiscoveryAnalysisReportHandler extends Object
| Constructor and Description |
|---|
DiscoveryAnalysisReportHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
AnnotationHandler annotationHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
String |
addAnnotationToDiscoveryReport(String userId,
String discoveryReportGUID,
Annotation annotation,
String methodName)
Add a new annotation to the annotation store as a top level annotation linked directly off of the report.
|
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,
String methodName)
Create a new discovery analysis report and chain it to its asset, discovery engine and discovery service.
|
List<Annotation> |
getAnnotationsForAssetByStatus(String userId,
String assetGUID,
AnnotationStatus status,
int startingFrom,
int maximumResults,
String methodName)
Return the list of annotations from previous runs of the discovery service that are set to a specific status.
|
DiscoveryAnalysisReport |
getDiscoveryAnalysisReport(String userId,
String discoveryReportGUID,
String methodName)
Request the discovery report for a discovery request that has completed.
|
List<DiscoveryAnalysisReport> |
getDiscoveryAnalysisReports(String userId,
String assetGUID,
int startingFrom,
int maximumResults,
String methodName)
Return the discovery analysis reports about the asset.
|
List<Annotation> |
getDiscoveryReportAnnotations(String userId,
String discoveryReportGUID,
AnnotationStatus annotationStatus,
int startingFrom,
int maximumResults,
String methodName)
Return the annotations linked direction to the report.
|
DiscoveryAnalysisReport |
updateDiscoveryAnalysisReport(String userId,
String discoveryReportGUID,
DiscoveryAnalysisReport updatedReport)
Update the properties of the discovery analysis report.
|
public DiscoveryAnalysisReportHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, AnnotationHandler annotationHandler)
serviceName - 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 objectsannotationHandler - handler for managing annotationspublic 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, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userqualifiedName - unique name for the reportdisplayName - short name for the reportdescription - description of the reportcreationDate - data 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 reportmethodName - calling methodInvalidParameterException - 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, String discoveryReportGUID, DiscoveryAnalysisReport updatedReport) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.updatedReport - updated report - this will replace what was previous stored.discoveryReportGUID - identifier of the discovery reportInvalidParameterException - 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, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.methodName - calling methodInvalidParameterException - 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<DiscoveryAnalysisReport> getDiscoveryAnalysisReports(String userId, String assetGUID, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the assetstartingFrom - position in the list (used when there are so many reports that paging is neededmaximumResults - maximum number of elements to return an this callmethodName - calling methodInvalidParameterException - 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, AnnotationStatus annotationStatus, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - identifier of the discovery request.annotationStatus - status of the desired annotations - null means all statuses.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.methodName - calling methodInvalidParameterException - 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> getAnnotationsForAssetByStatus(String userId, String assetGUID, AnnotationStatus status, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of the assetstatus - status value to use on the querystartingFrom - starting position in the list.maximumResults - maximum number of elements that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving annotations from the annotation store.public String addAnnotationToDiscoveryReport(String userId, String discoveryReportGUID, Annotation annotation, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - unique identifier of the discovery analysis reportannotation - annotation objectmethodName - calling methodInvalidParameterException - the annotation is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving adding the annotation to the annotation store.Copyright © 2018–2019 ODPi. All rights reserved.