Class ExternalReferenceExchangeService

java.lang.Object
org.odpi.openmetadata.integrationservices.catalog.connector.ExternalReferenceExchangeService

public class ExternalReferenceExchangeService extends Object
DataAssetExchangeService is the context for managing data assets and associated elements such as schemas.
  • Method Summary

    Modifier and Type
    Method
    Description
    createExternalReference(org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, String anchorGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceProperties properties)
    Create a definition of a external reference.
    void
    deleteExternalReference(String externalReferenceGUID, String referenceExternalIdentifier, Date effectiveTime)
    Remove the definition of a external reference.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement>
    findExternalReferences(String searchString, int startFrom, int pageSize, Date effectiveTime)
    Find the external references that contain the search string - which may contain wildcards.
    org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement
    getExternalReferenceByGUID(String externalReferenceGUID, Date effectiveTime)
    Return information about a specific external reference.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement>
    getExternalReferences(int startFrom, int pageSize, Date effectiveTime)
    Retrieve the list of external references sorted in open metadata.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement>
    getExternalReferencesById(String resourceId, int startFrom, int pageSize, Date effectiveTime)
    Retrieve the list of external references for this resourceId.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement>
    getExternalReferencesByName(String name, int startFrom, int pageSize, Date effectiveTime)
    Retrieve the list of external references for this name.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement>
    getExternalReferencesByURL(String url, int startFrom, int pageSize, Date effectiveTime)
    Retrieve the list of external references for this URL.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement>
    getExternalReferencesForAssetManager(int startFrom, int pageSize, Date effectiveTime)
    Retrieve the list of external reference created on behalf of the named asset manager.
    boolean
    Return whether retrieval requests from this service are to avoid merging duplicates or not.
    boolean
    Return whether retrieval requests from this service are to include elements with the Memento classification attached or not.
    linkExternalReferenceToElement(String attachedToGUID, String externalReferenceGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceLinkProperties linkProperties, Date effectiveTime)
    Link an external reference to an object.
    List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceLinkElement>
    retrieveAttachedExternalReferences(String attachedToGUID, int startFrom, int pageSize, Date effectiveTime)
    Retrieve the list of external references attached to the supplied object.
    void
    setAssetManagerIsHome(boolean assetManagerIsHome)
    Set up the flag that controls the ownership of metadata created for this asset manager.
    void
    setForDuplicateProcessing(boolean forDuplicateProcessing)
    Set up whether retrieval requests from this service are to avoid merging duplicates or not.
    void
    setForLineage(boolean forLineage)
    Set up whether retrieval requests from this service are to include elements with the Memento classification attached or not.
    void
    unlinkExternalReferenceFromElement(String externalReferenceLinkGUID, Date effectiveTime)
    Remove the link between a external reference and an element.
    void
    updateExternalReference(String externalReferenceGUID, String referenceExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceProperties properties, Date effectiveTime)
    Update the definition of a external reference.
    void
    updateExternalReferenceToElementLink(String externalReferenceLinkGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceLinkProperties linkProperties, Date effectiveTime)
    Update the link between an external reference to an object.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setAssetManagerIsHome

      public void setAssetManagerIsHome(boolean assetManagerIsHome)
      Set up the flag that controls the ownership of metadata created for this asset manager. Default is true.
      Parameters:
      assetManagerIsHome - should the metadata be marked as owned by the infrastructure manager so others can not update?
    • isForLineage

      public boolean isForLineage()
      Return whether retrieval requests from this service are to include elements with the Memento classification attached or not.
      Returns:
      boolean flag
    • setForLineage

      public void setForLineage(boolean forLineage)
      Set up whether retrieval requests from this service are to include elements with the Memento classification attached or not.
      Parameters:
      forLineage - boolean flag
    • isForDuplicateProcessing

      public boolean isForDuplicateProcessing()
      Return whether retrieval requests from this service are to avoid merging duplicates or not.
      Returns:
      boolean flag
    • setForDuplicateProcessing

      public void setForDuplicateProcessing(boolean forDuplicateProcessing)
      Set up whether retrieval requests from this service are to avoid merging duplicates or not.
      Parameters:
      forDuplicateProcessing - boolean flag
    • createExternalReference

      public String createExternalReference(org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalIdentifierProperties externalIdentifierProperties, String anchorGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create a definition of a external reference.
      Parameters:
      externalIdentifierProperties - optional properties used to define an external identifier
      anchorGUID - optional element to link the external reference to that will act as an anchor - that is, this external reference will be deleted when the element is deleted (once the external reference is linked to the anchor).
      properties - properties for a external reference
      Returns:
      unique identifier of the external reference
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - qualifiedName or userId is null; qualifiedName is not unique
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • updateExternalReference

      public void updateExternalReference(String externalReferenceGUID, String referenceExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceProperties properties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update the definition of a external reference.
      Parameters:
      externalReferenceGUID - unique identifier of external reference
      referenceExternalIdentifier - unique identifier of the external reference in the external asset manager
      isMergeUpdate - are unspecified properties unchanged (true) or replaced with null?
      properties - properties to change
      effectiveTime - the time that the retrieved elements must be effective for
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • deleteExternalReference

      public void deleteExternalReference(String externalReferenceGUID, String referenceExternalIdentifier, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Remove the definition of a external reference.
      Parameters:
      externalReferenceGUID - unique identifier of external reference
      referenceExternalIdentifier - unique identifier of the external reference in the external asset manager
      effectiveTime - the time that the retrieved elements must be effective for
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid or userId is null; guid is not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • linkExternalReferenceToElement

      public String linkExternalReferenceToElement(String attachedToGUID, String externalReferenceGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceLinkProperties linkProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Link an external reference to an object.
      Parameters:
      attachedToGUID - object linked to external references.
      linkProperties - description for the reference from the perspective of the object that the reference is being attached to.
      externalReferenceGUID - unique identifier (guid) of the external reference details.
      effectiveTime - the time that the retrieved elements must be effective for
      Returns:
      Unique identifier for new relationship
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • updateExternalReferenceToElementLink

      public void updateExternalReferenceToElementLink(String externalReferenceLinkGUID, org.odpi.openmetadata.accessservices.assetmanager.properties.ExternalReferenceLinkProperties linkProperties, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Update the link between an external reference to an object.
      Parameters:
      linkProperties - description for the reference from the perspective of the object that the reference is being attached to.
      externalReferenceLinkGUID - unique identifier (guid) of the external reference details.
      effectiveTime - the time that the retrieved elements must be effective for
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • unlinkExternalReferenceFromElement

      public void unlinkExternalReferenceFromElement(String externalReferenceLinkGUID, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Remove the link between a external reference and an element. If the element is its anchor, the external reference is removed.
      Parameters:
      externalReferenceLinkGUID - identifier of the external reference relationship.
      effectiveTime - the time that the retrieved elements must be effective for
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - problem with the GUID or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • getExternalReferences

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement> getExternalReferences(int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of external references sorted in open metadata.
      Parameters:
      effectiveTime - the time that the retrieved elements must be effective for
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return.
      Returns:
      links to addition information.
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • getExternalReferencesById

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement> getExternalReferencesById(String resourceId, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of external references for this resourceId.
      Parameters:
      resourceId - unique reference id assigned by the resource owner (supports wildcards). This is the qualified name of the entity
      effectiveTime - the time that the retrieved elements must be effective for
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return.
      Returns:
      links to addition information.
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • getExternalReferencesByURL

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement> getExternalReferencesByURL(String url, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of external references for this URL.
      Parameters:
      url - URL of the external resource.
      effectiveTime - the time that the retrieved elements must be effective for
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return.
      Returns:
      links to addition information.
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • getExternalReferencesByName

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement> getExternalReferencesByName(String name, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of external references for this name.
      Parameters:
      name - qualifiedName or displayName of the external resource.
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return.
      effectiveTime - the time that the retrieved elements must be effective for
      Returns:
      links to addition information.
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • getExternalReferencesForAssetManager

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement> getExternalReferencesForAssetManager(int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the list of external reference created on behalf of the named asset manager.
      Parameters:
      startFrom - paging start point
      pageSize - maximum results that can be returned
      effectiveTime - the time that the retrieved elements must be effective for
      Returns:
      list of matching metadata elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • findExternalReferences

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement> findExternalReferences(String searchString, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Find the external references that contain the search string - which may contain wildcards.
      Parameters:
      searchString - regular expression (RegEx) to search for
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return.
      effectiveTime - the time that the retrieved elements must be effective for
      Returns:
      links to addition information.
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • retrieveAttachedExternalReferences

      public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceLinkElement> retrieveAttachedExternalReferences(String attachedToGUID, int startFrom, int pageSize, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the list of external references attached to the supplied object.
      Parameters:
      attachedToGUID - object linked to external reference.
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return.
      effectiveTime - the time that the retrieved elements must be effective for
      Returns:
      links to addition information.
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid invalid or the external references are not correctly specified, or are null.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available.
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call.
    • getExternalReferenceByGUID

      public org.odpi.openmetadata.accessservices.assetmanager.metadataelements.ExternalReferenceElement getExternalReferenceByGUID(String externalReferenceGUID, Date effectiveTime) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific external reference.
      Parameters:
      externalReferenceGUID - unique identifier for the external reference
      effectiveTime - the time that the retrieved elements must be effective for
      Returns:
      properties of the external reference
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - externalReferenceGUID 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