Class AssetManagerRESTServices
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.server.AssetManagerRESTServices
The AssetManagerRESTServices provides the server-side implementation of the services
that are generic for all types of asset managers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddExternalIdentifier
(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) Add the description of a specific external identifier.confirmSynchronization
(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, MetadataCorrelationProperties requestBody) Confirm that the values of a particular metadata element have been synchronized.createExternalAssetManager
(String serverName, String userId, AssetManagerProperties assetManagerProperties) Create information about the external asset manager.getElementsForExternalIdentifier
(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Retrieve the unique identifier of the external asset manager from its qualified name.getExternalAssetManagerGUID
(String serverName, String userId, String qualifiedName) Retrieve the unique identifier of the external asset manager from its qualified name.getMetadataCorrelationHeaders
(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the unique identifier of the external asset manager from its qualified name.getOutTopicConnection
(String serverName, String userId, String callerId) Return the client side connection object for the Asset Manager OMAS's out topic.removeExternalIdentifier
(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove an external identifier from an existing open metadata element.updateExternalIdentifier
(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) Update the description of a specific external identifier.validateExternalIdentifier
(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) That the external identifier matches the open metadata GUID.
-
Constructor Details
-
AssetManagerRESTServices
public AssetManagerRESTServices()Default constructor
-
-
Method Details
-
getOutTopicConnection
public OCFConnectionResponse getOutTopicConnection(String serverName, String userId, String callerId) Return the client side connection object for the Asset Manager OMAS's out topic.- Parameters:
serverName
- name of the service to route the request to.userId
- identifier of calling user.callerId
- unique identifier of the caller- Returns:
- connection object for the out topic or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException problem retrieving the discovery engine definition.
-
createExternalAssetManager
public GUIDResponse createExternalAssetManager(String serverName, String userId, AssetManagerProperties assetManagerProperties) Create information about the external asset manager. This is represented as a software server capability and all information that is specific to the external asset manager (such as the identifiers of the metadata elements it stores) will be linked to it.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetManagerProperties
- description of the integration daemon (specify qualified name at a minimum)- Returns:
- unique identifier of the asset management's software server capability or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
getExternalAssetManagerGUID
public GUIDResponse getExternalAssetManagerGUID(String serverName, String userId, String qualifiedName) 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.userId
- calling userqualifiedName
- unique name to use for the external asset- Returns:
- unique identifier of the external asset manager's software server capability or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
addExternalIdentifier
public VoidResponse addExternalIdentifier(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) Add the description of a specific external identifier.- Parameters:
serverName
- name of the service to route the request to.userId
- calling useropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)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 userId, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) Update the description of a specific external identifier.- Parameters:
serverName
- name of the service to route the request to.userId
- calling useropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)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 userId, String openMetadataElementGUID, String openMetadataElementTypeName, MetadataCorrelationProperties requestBody) That the external identifier matches the open metadata GUID.- Parameters:
serverName
- name of the service to route the request to.userId
- calling useropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name of the element in the open metadata ecosystem (default referenceable)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 userId, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody 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.userId
- calling useropenMetadataElementGUID
- 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
-
confirmSynchronization
public VoidResponse confirmSynchronization(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, 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.userId
- calling useropenMetadataElementGUID
- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName
- type name for the open metadata elementforLineage
- 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:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException user not authorized to issue this request PropertyServerException problem accessing the property server
-
getMetadataCorrelationHeaders
public MetadataCorrelationHeadersResponse getMetadataCorrelationHeaders(String serverName, String userId, String openMetadataElementGUID, String openMetadataElementTypeName, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody 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.userId
- calling useropenMetadataElementGUID
- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName
- type name for the open metadata elementforLineage
- 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 userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody 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.userId
- calling userstartFrom
- 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
-