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

    Constructors
    Constructor
    Description
    DiscoveryAnnotationStoreClient(String userId, String assetGUID, DiscoveryAnalysisReportClient discoveryAnalysisReportClient, DiscoveryEngineClient discoveryEngineClient)
    Constructor sets up the key parameters for accessing the annotations store.
  • Method Summary

    Modifier and Type
    Method
    Description
    addAnnotationToAnnotation(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).
    void
    deleteAnnotation(String annotationGUID)
    Remove an annotation from the annotation store.
    void
    deleteDataField(String dataFieldGUID)
    Remove a data field from the annotation store.
    org.odpi.openmetadata.frameworks.discovery.properties.Annotation
    getAnnotation(String annotationGUID)
    Return a specific annotation stored in the annotation store (previous or new).
    org.odpi.openmetadata.frameworks.discovery.properties.DataField
    getDataField(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.
    void
    updateAnnotation(org.odpi.openmetadata.frameworks.discovery.properties.Annotation annotation)
    Replace the current properties of an annotation.
    void
    updateDataField(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 user
      assetGUID - unique identifier of the asset that the annotations should be attached to
      discoveryAnalysisReportClient - 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.PropertyServerException
      Return the annotation subtype names.
      Specified by:
      getTypesOfAnnotation in class org.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 null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.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.PropertyServerException
      Return the annotation subtype names mapped to their descriptions.
      Specified by:
      getTypesOfAnnotationWithDescriptions in class org.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 null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.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:
      getPreviousAnnotationsForAsset in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      getPreviousAnnotationsForAsset in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      status - status value to use on the query
      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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      getNewAnnotationsForAsset in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      getExtendedAnnotations in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      annotationGUID - parent annotation
      startingFrom - starting position in the list
      maximumResults - 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:
      getAnnotation in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      addAnnotationToDiscoveryReport in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      addAnnotationToAnnotation in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      parentAnnotationGUID - unique identifier of the annotation that this new one is to be attached to
      annotation - annotation object
      Returns:
      unique identifier of new annotation
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      updateAnnotation in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      annotation - new properties
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      deleteAnnotation in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      getPreviousDataFieldsForAsset in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      getNewDataFieldsForAsset in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      getNestedDataFields in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      parentDataFieldGUID - parent data field identifier
      startingFrom - starting position in the list
      maximumResults - 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:
      getDataField in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      addDataFieldToDiscoveryReport in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      annotationGUID - unique identifier of the annotation that the data field is to be linked to
      dataField - 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 request
      org.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:
      addDataFieldToDataField in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      parentDataFieldGUID - unique identifier of the data field that this new one is to be attached to
      dataField - data field object
      Returns:
      unique identifier of new data field
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      addAnnotationToDataField in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      parentDataFieldGUID - unique identifier of the data field that this new one is to be attached to
      annotation - data field object
      Returns:
      unique identifier of annotation
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      updateDataField in class org.odpi.openmetadata.frameworks.discovery.DiscoveryAnnotationStore
      Parameters:
      dataField - new properties
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.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:
      deleteDataField in class org.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 invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user id not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there was a problem deleting the data field from the annotation store.