Class ExternalLinksRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.externallinks.server.ExternalLinksRESTServices
The ExternalLinksRESTServices provides the server-side implementation of the External Links Open Metadata
View Service (OMVS). This interface provides access to a person's profile, roles and network.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExternalIdentifier
(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Add the description of a specific external identifier.confirmSynchronization
(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) Confirm that the values of a particular metadata element have been synchronized.createExternalReference
(String serverName, String urlMarker, NewElementRequestBody requestBody) Create an external reference.createExternalReferenceFromTemplate
(String serverName, String urlMarker, TemplateRequestBody requestBody) Create a new metadata element to represent an external reference using an existing metadata element as a template.deleteExternalReference
(String serverName, String urlMarker, String externalReferenceGUID, DeleteRequestBody requestBody) Delete an external reference.detachCitedDocumentReference
(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, DeleteRequestBody requestBody) Detach an element from its external document reference.detachExternalReference
(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, DeleteRequestBody requestBody) Detach an external reference from an element.detachMediaReference
(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, DeleteRequestBody requestBody) Detach an external media reference from an element.findExternalReferences
(String serverName, String urlMarker, SearchStringRequestBody requestBody) Retrieve the list of external reference metadata elements that contain the search string.getElementsForExternalIdentifier
(String serverName, String urlMarker, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Retrieve the unique identifier of the external asset manager from its qualified name.getExternalIdentifiers
(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, ExternalIdEffectiveTimeQueryRequestBody requestBody) Retrieve the external identifiers for a particular metadata element.getExternalReferenceByGUID
(String serverName, String urlMarker, String externalReferenceGUID, GetRequestBody requestBody) Retrieve the list of external reference metadata elements that contain the search string.getExternalReferencesByName
(String serverName, String urlMarker, FilterRequestBody requestBody) Retrieve the list of external reference metadata elements that contain the search string.linkCitedDocumentReference
(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, NewRelationshipRequestBody requestBody) Attach an element to its external document reference.linkExternalReference
(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, NewRelationshipRequestBody requestBody) Attach an external reference to an element.linkMediaReference
(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, NewRelationshipRequestBody requestBody) Attach an external media reference to an element.removeExternalIdentifier
(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Remove an external identifier from an existing open metadata element.removeExternalScope
(String serverName, String urlMarker, String externalScopeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeRequestBody requestBody) Remove the scope associated with a collection of external identifiers.updateExternalIdentifier
(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Update the description of a specific external identifier.updateExternalReference
(String serverName, String urlMarker, String externalReferenceGUID, UpdateElementRequestBody requestBody) Update the properties of an external reference.validateExternalIdentifier
(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) That the external identifier matches the open metadata GUID.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
Constructor Details
-
ExternalLinksRESTServices
public ExternalLinksRESTServices()Default constructor
-
-
Method Details
-
createExternalReference
public GUIDResponse createExternalReference(String serverName, String urlMarker, NewElementRequestBody requestBody) Create an external reference.- Parameters:
serverName
- name of called server.urlMarker
- view service URL markerrequestBody
- properties for the external reference.- Returns:
- unique identifier of the newly created element InvalidParameterException one of the parameters is invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
createExternalReferenceFromTemplate
public GUIDResponse createExternalReferenceFromTemplate(String serverName, String urlMarker, TemplateRequestBody requestBody) Create a new metadata element to represent an external reference using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new element.- Parameters:
serverName
- calling userurlMarker
- view service URL markerrequestBody
- properties that override the template- Returns:
- unique identifier of the new metadata element InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateExternalReference
public VoidResponse updateExternalReference(String serverName, String urlMarker, String externalReferenceGUID, UpdateElementRequestBody requestBody) Update the properties of an external reference.- Parameters:
serverName
- name of called server.urlMarker
- view service URL markerexternalReferenceGUID
- unique identifier of the external reference (returned from create)requestBody
- properties for the new element.- Returns:
- void or InvalidParameterException one of the parameters is invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkExternalReference
public VoidResponse linkExternalReference(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, NewRelationshipRequestBody requestBody) Attach an external reference to an element.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerelementGUID
- unique identifier of the elementexternalReferenceGUID
- unique identifier of the external referencerequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachExternalReference
public VoidResponse detachExternalReference(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, DeleteRequestBody requestBody) Detach an external reference from an element.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerelementGUID
- unique identifier of the elementexternalReferenceGUID
- unique identifier of the external referencerequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkMediaReference
public VoidResponse linkMediaReference(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, NewRelationshipRequestBody requestBody) Attach an external media reference to an element.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerelementGUID
- unique identifier of the elementexternalReferenceGUID
- unique identifier of the external referencerequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachMediaReference
public VoidResponse detachMediaReference(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, DeleteRequestBody requestBody) Detach an external media reference from an element.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerelementGUID
- unique identifier of the elementexternalReferenceGUID
- unique identifier of the external referencerequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkCitedDocumentReference
public VoidResponse linkCitedDocumentReference(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, NewRelationshipRequestBody requestBody) Attach an element to its external document reference.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerelementGUID
- unique identifier of the elementexternalReferenceGUID
- unique identifier of the external referencerequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachCitedDocumentReference
public VoidResponse detachCitedDocumentReference(String serverName, String urlMarker, String elementGUID, String externalReferenceGUID, DeleteRequestBody requestBody) Detach an element from its external document reference.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerelementGUID
- unique identifier of the elementexternalReferenceGUID
- unique identifier of the external referencerequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
deleteExternalReference
public VoidResponse deleteExternalReference(String serverName, String urlMarker, String externalReferenceGUID, DeleteRequestBody requestBody) Delete an external reference.- Parameters:
serverName
- name of called serverurlMarker
- view service URL markerexternalReferenceGUID
- unique identifier of the element to deleterequestBody
- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getExternalReferencesByName
public OpenMetadataRootElementsResponse getExternalReferencesByName(String serverName, String urlMarker, FilterRequestBody requestBody) Retrieve the list of external reference metadata elements that contain the search string.- Parameters:
serverName
- name of the service to route the request tourlMarker
- view service URL markerrequestBody
- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getExternalReferenceByGUID
public OpenMetadataRootElementResponse getExternalReferenceByGUID(String serverName, String urlMarker, String externalReferenceGUID, GetRequestBody requestBody) Retrieve the list of external reference metadata elements that contain the search string.- Parameters:
serverName
- name of the service to route the request tourlMarker
- view service URL markerexternalReferenceGUID
- unique identifier of the required elementrequestBody
- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
findExternalReferences
public OpenMetadataRootElementsResponse findExternalReferences(String serverName, String urlMarker, SearchStringRequestBody requestBody) Retrieve the list of external reference metadata elements that contain the search string.- Parameters:
serverName
- name of the service to route the request tourlMarker
- view service URL markerrequestBody
- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
addExternalIdentifier
public VoidResponse addExternalIdentifier(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Add the description of a specific external identifier.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markeropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier of this element in the external asset manager plus additional mapping properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
updateExternalIdentifier
public VoidResponse updateExternalIdentifier(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Update the description of a specific external identifier.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markeropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier of this element in the external asset manager plus additional mapping properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
validateExternalIdentifier
public BooleanResponse validateExternalIdentifier(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) That the external identifier matches the open metadata GUID.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markeropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier of this element in the external asset manager plus additional mapping properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
removeExternalIdentifier
public VoidResponse removeExternalIdentifier(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Remove an external identifier from an existing open metadata element. The open metadata element is not affected.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markeropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier of this element in the external asset manager plus additional mapping properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
removeExternalScope
public VoidResponse removeExternalScope(String serverName, String urlMarker, String externalScopeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeRequestBody requestBody) Remove the scope associated with a collection of external identifiers. All associated external identifiers are removed too. The linked open metadata elements are not affected.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markerexternalScopeGUID
- unique identifier (GUID) of the scope element in the open metadata ecosystemforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier of this element in the external asset manager plus additional mapping properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
confirmSynchronization
public VoidResponse confirmSynchronization(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) Confirm that the values of a particular metadata element have been synchronized. This is important from an audit point of view, and to allow bidirectional updates of metadata using optimistic locking.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markeropenMetadataElementGUID
- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName
- type name for the open metadata elementrequestBody
- details of the external identifier and its scope- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
getExternalIdentifiers
public MetadataCorrelationHeadersResponse getExternalIdentifiers(String serverName, String urlMarker, String openMetadataElementGUID, String openMetadataElementTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, ExternalIdEffectiveTimeQueryRequestBody requestBody) Retrieve the external identifiers for a particular metadata element.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markeropenMetadataElementGUID
- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName
- type name for the open metadata elementstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- details of the external identifier and its scope- Returns:
- list of correlation header elements, null if null or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
getElementsForExternalIdentifier
public ElementHeadersResponse getElementsForExternalIdentifier(String serverName, String urlMarker, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, UpdateMetadataCorrelatorsRequestBody requestBody) Retrieve the unique identifier of the external asset manager from its qualified name. Typically, the qualified name comes from the integration connector configuration.- Parameters:
serverName
- name of the service to route the request to.urlMarker
- view service URL markerstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- details of the external identifier- Returns:
- list of linked elements, null if null or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-