Class DiscoveryAnnotationStoreClient
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
org.odpi.openmetadata.accessservices.discoveryengine.client.DiscoveryAnnotationStoreClient
public class DiscoveryAnnotationStoreClient
extends org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
DiscoveryAnnotationStoreClient provides a client-side implementation of the ODF DiscoveryAnnotationStore
that is backed by calls to the Discovery Engine OMAS.
An instance of this client is created for each discovery service instance that runs. This is
why the REST client is passed in on the constructor (since creating a new RestTemplate object is
very expensive).
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
assetGUID, discoveryReport, userId -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryAnnotationStoreClient(String userId, String assetGUID, DiscoveryAnalysisReportClient discoveryAnalysisReportClient, DiscoveryEngineClient discoveryEngineClient) Constructor sets up the key parameters for accessing the annotations store. -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotationToAnnotation(String parentAnnotationGUID, org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) Add a new annotation and link it to an existing annotation.addAnnotationToDataField(String parentDataFieldGUID, org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) Add a new annotation and link it to an existing data field.addAnnotationToDiscoveryReport(org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) Add a new annotation to the annotation store as a top level annotation linked directly off of the report.addDataFieldToDataField(String parentDataFieldGUID, org.odpi.openmetadata.frameworks.discovery.properties.DataField dataField) Add a new data field and link it to an existing data field.addDataFieldToDiscoveryReport(String annotationGUID, org.odpi.openmetadata.frameworks.discovery.properties.DataField dataField) Add a new data field to the Annotation store linked off of an annotation (typically SchemaAnalysisAnnotation).voiddeleteAnnotation(String annotationGUID) Remove an annotation from the annotation store.voiddeleteDataField(String dataFieldGUID) Remove a data field from the annotation store.org.odpi.openmetadata.frameworks.discovery.properties.AnnotationgetAnnotation(String annotationGUID) Return a specific annotation stored in the annotation store (previous or new).org.odpi.openmetadata.frameworks.discovery.properties.DataFieldgetDataField(String dataFieldGUID) Return a specific data field stored in the annotation store (previous or new).List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation>getExtendedAnnotations(String annotationGUID, int startingFrom, int maximumResults) Return any annotations attached to this annotation.List<org.odpi.openmetadata.frameworks.discovery.properties.DataField>getNestedDataFields(String parentDataFieldGUID, int startingFrom, int maximumResults) Return any annotations attached to this annotation.List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation>getNewAnnotationsForAsset(int startingFrom, int maximumResults) Return the current list of annotations for this discovery run.List<org.odpi.openmetadata.frameworks.discovery.properties.DataField>getNewDataFieldsForAsset(int startingFrom, int maximumResults) Return the current list of data fields for this discovery run.List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation>getPreviousAnnotationsForAsset(int startingFrom, int maximumResults) Return the list of Annotations created for the asset by previous runs of the discovery service.List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation>getPreviousAnnotationsForAsset(org.odpi.openmetadata.frameworks.discovery.properties.AnnotationStatus status, int startingFrom, int maximumResults) Return the list of annotations from previous runs of the discovery service that are set to a specific status.List<org.odpi.openmetadata.frameworks.discovery.properties.DataField>getPreviousDataFieldsForAsset(int startingFrom, int maximumResults) Return the list of data fields from previous runs of the discovery service.Return the annotation subtype names.Return the annotation subtype names mapped to their descriptions.voidupdateAnnotation(org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) Replace the current properties of an annotation.voidupdateDataField(org.odpi.openmetadata.frameworks.discovery.properties.DataField dataField) Replace the current properties of a data field.Methods inherited from class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
getDiscoveryReport
-
Constructor Details
-
DiscoveryAnnotationStoreClient
public DiscoveryAnnotationStoreClient(String userId, String assetGUID, DiscoveryAnalysisReportClient discoveryAnalysisReportClient, DiscoveryEngineClient discoveryEngineClient) Constructor sets up the key parameters for accessing the annotations store.- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the annotations should be attached todiscoveryAnalysisReportClient- discovery report that is linked to the annotations.discoveryEngineClient- client for calling REST APIs
-
-
Method Details
-
getTypesOfAnnotation
public List<String> getTypesOfAnnotation() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the annotation subtype names.- Specified by:
getTypesOfAnnotationin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Returns:
- list of type names that are subtypes of annotation
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- full path or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getTypesOfAnnotationWithDescriptions
public Map<String,String> getTypesOfAnnotationWithDescriptions() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the annotation subtype names mapped to their descriptions.- Specified by:
getTypesOfAnnotationWithDescriptionsin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Returns:
- map of type names that are subtypes of annotation to their descriptions
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- full path or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getPreviousAnnotationsForAsset
public List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation> getPreviousAnnotationsForAsset(int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the list of Annotations created for the asset by previous runs of the discovery service.- Specified by:
getPreviousAnnotationsForAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
startingFrom- starting position in the list.maximumResults- maximum number of elements that can be returned- Returns:
- list of annotation (or null if none are registered)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving annotations from the annotation store.
-
getPreviousAnnotationsForAsset
public List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation> getPreviousAnnotationsForAsset(org.odpi.openmetadata.frameworks.discovery.properties.AnnotationStatus status, int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the list of annotations from previous runs of the discovery service that are set to a specific status. If status is null then annotations that have been reviewed, approved and/or actioned are returned from discovery reports that are not waiting or in progress.- Specified by:
getPreviousAnnotationsForAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
status- status value to use on the querystartingFrom- starting position in the list.maximumResults- maximum number of elements that can be returned- Returns:
- list of annotation (or null if none are registered)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving annotations from the annotation store.
-
getNewAnnotationsForAsset
public List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation> getNewAnnotationsForAsset(int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the current list of annotations for this discovery run.- Specified by:
getNewAnnotationsForAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
startingFrom- starting position in the list.maximumResults- maximum number of elements that can be returned- Returns:
- list of annotation (or null if none are registered)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving annotations from the annotation store.
-
getExtendedAnnotations
public List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation> getExtendedAnnotations(String annotationGUID, int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return any annotations attached to this annotation.- Specified by:
getExtendedAnnotationsin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
annotationGUID- parent annotationstartingFrom- starting position in the listmaximumResults- maximum number of annotations that can be returned.- Returns:
- list of Annotation objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem that occurred within the property server.
-
getAnnotation
public org.odpi.openmetadata.frameworks.discovery.properties.Annotation getAnnotation(String annotationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return a specific annotation stored in the annotation store (previous or new).- Specified by:
getAnnotationin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
annotationGUID- unique identifier of the annotation- Returns:
- annotation object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving the annotation from the annotation store.
-
addAnnotationToDiscoveryReport
public String addAnnotationToDiscoveryReport(org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new annotation to the annotation store as a top level annotation linked directly off of the report.- Specified by:
addAnnotationToDiscoveryReportin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
annotation- annotation object- Returns:
- unique identifier of new annotation
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the annotation is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem adding the annotation to the annotation store.
-
addAnnotationToAnnotation
public String addAnnotationToAnnotation(String parentAnnotationGUID, org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new annotation and link it to an existing annotation.- Specified by:
addAnnotationToAnnotationin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
parentAnnotationGUID- unique identifier of the annotation that this new one is to be attached toannotation- annotation object- Returns:
- unique identifier of new annotation
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem saving annotations in the annotation store.
-
updateAnnotation
public void updateAnnotation(org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Replace the current properties of an annotation.- Specified by:
updateAnnotationin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
annotation- new properties- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem updating the annotation in the annotation store.
-
deleteAnnotation
public void deleteAnnotation(String annotationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove an annotation from the annotation store.- Specified by:
deleteAnnotationin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
annotationGUID- unique identifier of the annotation- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem deleting the annotation from the annotation store.
-
getPreviousDataFieldsForAsset
public List<org.odpi.openmetadata.frameworks.discovery.properties.DataField> getPreviousDataFieldsForAsset(int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the list of data fields from previous runs of the discovery service.- Specified by:
getPreviousDataFieldsForAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
startingFrom- starting position in the list.maximumResults- maximum number of elements that can be returned- Returns:
- list of data fields (or null if none are registered)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving data fields from the annotation store.
-
getNewDataFieldsForAsset
public List<org.odpi.openmetadata.frameworks.discovery.properties.DataField> getNewDataFieldsForAsset(int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the current list of data fields for this discovery run.- Specified by:
getNewDataFieldsForAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
startingFrom- starting position in the list.maximumResults- maximum number of elements that can be returned- Returns:
- list of data fields (or null if none are registered)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving data fields from the annotation store.
-
getNestedDataFields
public List<org.odpi.openmetadata.frameworks.discovery.properties.DataField> getNestedDataFields(String parentDataFieldGUID, int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return any annotations attached to this annotation.- Specified by:
getNestedDataFieldsin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
parentDataFieldGUID- parent data field identifierstartingFrom- starting position in the listmaximumResults- maximum number of annotations that can be returned.- Returns:
- list of DataField objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem that occurred within the property server.
-
getDataField
public org.odpi.openmetadata.frameworks.discovery.properties.DataField getDataField(String dataFieldGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return a specific data field stored in the annotation store (previous or new).- Specified by:
getDataFieldin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
dataFieldGUID- unique identifier of the data field- Returns:
- data field object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem retrieving the data field from the annotation store.
-
addDataFieldToDiscoveryReport
public String addDataFieldToDiscoveryReport(String annotationGUID, org.odpi.openmetadata.frameworks.discovery.properties.DataField dataField) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new data field to the Annotation store linked off of an annotation (typically SchemaAnalysisAnnotation).- Specified by:
addDataFieldToDiscoveryReportin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
annotationGUID- unique identifier of the annotation that the data field is to be linked todataField- dataField object- Returns:
- unique identifier of new dataField
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the dataField is invalid or the annotation GUID points to an annotation that can not be associated with a data field.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem adding the data field to the Annotation store.
-
addDataFieldToDataField
public String addDataFieldToDataField(String parentDataFieldGUID, org.odpi.openmetadata.frameworks.discovery.properties.DataField dataField) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new data field and link it to an existing data field.- Specified by:
addDataFieldToDataFieldin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
parentDataFieldGUID- unique identifier of the data field that this new one is to be attached todataField- data field object- Returns:
- unique identifier of new data field
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem saving data fields in the annotation store.
-
addAnnotationToDataField
public String addAnnotationToDataField(String parentDataFieldGUID, org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a new annotation and link it to an existing data field.- Specified by:
addAnnotationToDataFieldin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
parentDataFieldGUID- unique identifier of the data field that this new one is to be attached toannotation- data field object- Returns:
- unique identifier of annotation
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem saving data fields in the annotation store.
-
updateDataField
public void updateDataField(org.odpi.openmetadata.frameworks.discovery.properties.DataField dataField) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Replace the current properties of a data field.- Specified by:
updateDataFieldin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
dataField- new properties- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem updating the data field in the annotation store.
-
deleteDataField
public void deleteDataField(String dataFieldGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a data field from the annotation store.- Specified by:
deleteDataFieldin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore- Parameters:
dataFieldGUID- unique identifier of the data field- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user id not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem deleting the data field from the annotation store.
-