public class AssetManagerClient extends Object implements AssetManagerInterface
| Constructor and Description |
|---|
AssetManagerClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
AssetManagerClient(String serverName,
String serverPlatformURLRoot,
AssetManagerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is to be used within an OMAG Server.
|
AssetManagerClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
AssetManagerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
AssetManagerClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalIdentifier(String userId,
String assetManagerGUID,
String assetManagerName,
SynchronizationDirection synchronizationDirection,
String synchronizationDescription,
String openMetadataElementGUID,
String openMetadataElementTypeName,
String externalIdentifier,
String externalIdentifierName,
String externalIdentifierUsage,
String externalIdentifierSource,
KeyPattern keyPattern,
Map<String,String> mappingProperties)
Add a new external identifier to an existing open metadata element.
|
void |
confirmSynchronization(String userId,
String assetManagerGUID,
String assetManagerName,
String openMetadataElementGUID,
String openMetadataElementTypeName,
String externalIdentifier)
Confirm that the values of a particular metadata element have been synchronized.
|
String |
createExternalAssetManager(String userId,
AssetManagerProperties assetManagerProperties)
Create information about the external asset manager.
|
List<ElementHeader> |
getElementsForExternalIdentifier(String userId,
String assetManagerGUID,
String assetManagerName,
String externalIdentifier,
int startFrom,
int pageSize)
Return the list of headers for open metadata elements that are associated with a particular
external identifier.
|
String |
getExternalAssetManagerGUID(String userId,
String qualifiedName)
Retrieve the unique identifier of the external asset manager from its qualified name.
|
void |
removeExternalIdentifier(String userId,
String assetManagerGUID,
String assetManagerName,
SynchronizationDirection synchronizationDirection,
String synchronizationDescription,
String openMetadataElementGUID,
String openMetadataElementTypeName,
String externalIdentifier,
String externalIdentifierName,
String externalIdentifierUsage,
String externalIdentifierSource,
KeyPattern keyPattern,
Map<String,String> mappingProperties)
Remove an external identifier from an existing open metadata element.
|
void |
updateExternalIdentifier(String userId,
String assetManagerGUID,
String assetManagerName,
SynchronizationDirection synchronizationDirection,
String synchronizationDescription,
String openMetadataElementGUID,
String openMetadataElementTypeName,
String externalIdentifier,
String externalIdentifierName,
String externalIdentifierUsage,
String externalIdentifierSource,
KeyPattern keyPattern,
Map<String,String> mappingProperties)
Update the description of a specific external identifier.
|
public AssetManagerClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public AssetManagerClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public AssetManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public AssetManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public AssetManagerClient(String serverName, String serverPlatformURLRoot, AssetManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - pre-initialized REST clientmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - there is a problem with the information about the remote OMASpublic String createExternalAssetManager(String userId, AssetManagerProperties assetManagerProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createExternalAssetManager in interface AssetManagerInterfaceuserId - calling userassetManagerProperties - description of the integration daemon (specify qualified name at a minimum)InvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String getExternalAssetManagerGUID(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getExternalAssetManagerGUID in interface AssetManagerInterfaceuserId - calling userqualifiedName - unique name to use for the external assetInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, SynchronizationDirection synchronizationDirection, String synchronizationDescription, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier, String externalIdentifierName, String externalIdentifierUsage, String externalIdentifierSource, KeyPattern keyPattern, Map<String,String> mappingProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addExternalIdentifier in interface AssetManagerInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callersynchronizationDirection - details of the synchronization directionsynchronizationDescription - optional additional description about the synchronization approachopenMetadataElementGUID - unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName - type name for the open metadata elementexternalIdentifier - unique identifier of this element in the third party asset managerexternalIdentifierName - name of the identifier in the third party asset managerexternalIdentifierUsage - description of how the open metadata element maps to the identifierexternalIdentifierSource - component that issuing this request.keyPattern - style of the external identifiermappingProperties - additional mapping propertiesInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, SynchronizationDirection synchronizationDirection, String synchronizationDescription, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier, String externalIdentifierName, String externalIdentifierUsage, String externalIdentifierSource, KeyPattern keyPattern, Map<String,String> mappingProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateExternalIdentifier in interface AssetManagerInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callersynchronizationDirection - details of the synchronization directionsynchronizationDescription - optional additional description about the synchronization approachopenMetadataElementGUID - unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName - type name for the open metadata elementexternalIdentifier - unique identifier of this element in the third party asset managerexternalIdentifierName - name of the identifier in the third party asset managerexternalIdentifierUsage - description of how the open metadata element maps to the identifierexternalIdentifierSource - component that issuing this request.keyPattern - style of the external identifiermappingProperties - additional mapping propertiesInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, SynchronizationDirection synchronizationDirection, String synchronizationDescription, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier, String externalIdentifierName, String externalIdentifierUsage, String externalIdentifierSource, KeyPattern keyPattern, Map<String,String> mappingProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeExternalIdentifier in interface AssetManagerInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callersynchronizationDirection - details of the synchronization directionsynchronizationDescription - optional additional description about the synchronization approachopenMetadataElementGUID - unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName - type name for the open metadata elementexternalIdentifier - unique identifier of this element in the third party asset managerexternalIdentifierName - name of the identifier in the third party asset managerexternalIdentifierUsage - description of how the open metadata element maps to the identifierexternalIdentifierSource - component that issuing this request.keyPattern - style of the external identifiermappingProperties - additional mapping propertiesInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void confirmSynchronization(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
confirmSynchronization in interface AssetManagerInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the calleropenMetadataElementGUID - unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName - type name for the open metadata elementexternalIdentifier - unique identifier of this element in the external asset managerInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<ElementHeader> getElementsForExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, String externalIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getElementsForExternalIdentifier in interface AssetManagerInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerexternalIdentifier - unique identifier of this element in the external asset managerstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.