public class DataAssetExchangeClient extends SchemaExchangeClientBase implements DataAssetExchangeInterface
| Constructor and Description |
|---|
DataAssetExchangeClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
DataAssetExchangeClient(String serverName,
String serverPlatformURLRoot,
AssetManagerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server.
|
DataAssetExchangeClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
DataAssetExchangeClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
DataAssetExchangeClient(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 |
clearDataAssetAsReferenceData(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier)
Remove the reference data designation from the asset.
|
String |
createDataAsset(String userId,
String assetManagerGUID,
String assetManagerName,
boolean assetManagerIsHome,
String assetExternalIdentifier,
String assetExternalIdentifierName,
String assetExternalIdentifierUsage,
String assetExternalIdentifierSource,
KeyPattern assetExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
DataAssetProperties assetProperties)
Create a new metadata element to represent the root of an asset.
|
String |
createDataAssetFromTemplate(String userId,
String assetManagerGUID,
String assetManagerName,
boolean assetManagerIsHome,
String templateGUID,
String assetExternalIdentifier,
String assetExternalIdentifierName,
String assetExternalIdentifierUsage,
String assetExternalIdentifierSource,
KeyPattern assetExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
TemplateProperties templateProperties)
Create a new metadata element to represent an asset using an existing metadata element as a template.
|
List<DataAssetElement> |
findDataAssets(String userId,
String assetManagerGUID,
String assetManagerName,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of asset metadata elements that contain the search string.
|
DataAssetElement |
getDataAssetByGUID(String userId,
String assetManagerGUID,
String assetManagerName,
String openMetadataGUID)
Retrieve the asset metadata element with the supplied unique identifier.
|
List<DataAssetElement> |
getDataAssetsByName(String userId,
String assetManagerGUID,
String assetManagerName,
String name,
int startFrom,
int pageSize)
Retrieve the list of asset metadata elements with a matching qualified or display name.
|
List<DataAssetElement> |
getDataAssetsForAssetManager(String userId,
String assetManagerGUID,
String assetManagerName,
int startFrom,
int pageSize)
Retrieve the list of assets created on behalf of the named asset manager.
|
void |
publishDataAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID)
Update the zones for the asset so that it becomes visible to consumers.
|
void |
removeDataAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier)
Remove the metadata element representing an asset.
|
List<DataAssetElement> |
scanDataAssets(String userId,
String assetManagerGUID,
String assetManagerName,
int startFrom,
int pageSize)
Step through the assets visible to this caller.
|
void |
setDataAssetAsReferenceData(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier)
Classify the asset to indicate that it can be used as reference data.
|
void |
updateDataAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier,
boolean isMergeUpdate,
DataAssetProperties assetProperties)
Update the metadata element representing an asset.
|
void |
withdrawDataAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID)
Update the zones for the asset so that it is no longer visible to consumers.
|
clearColumnAsPrimaryKey, clearForeignKeyRelationship, clearSchemaElementAsCalculatedValue, clearSchemaTypeParent, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaType, createSchemaTypeFromTemplate, findSchemaAttributes, findSchemaType, getAttributesForSchemaType, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, removeSchemaAttribute, removeSchemaType, setSchemaElementAsCalculatedValue, setupColumnAsPrimaryKey, setupForeignKeyRelationship, setupSchemaTypeParent, updateForeignKeyRelationship, updateSchemaAttribute, updateSchemaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearColumnAsPrimaryKey, clearForeignKeyRelationship, clearSchemaElementAsCalculatedValue, clearSchemaTypeParent, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaType, createSchemaTypeFromTemplate, findSchemaAttributes, findSchemaType, getAttributesForSchemaType, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, removeSchemaAttribute, removeSchemaType, setSchemaElementAsCalculatedValue, setupColumnAsPrimaryKey, setupForeignKeyRelationship, setupSchemaTypeParent, updateForeignKeyRelationship, updateSchemaAttribute, updateSchemaTypepublic DataAssetExchangeClient(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 DataAssetExchangeClient(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 DataAssetExchangeClient(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 DataAssetExchangeClient(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 - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public DataAssetExchangeClient(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 String createDataAsset(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String assetExternalIdentifier, String assetExternalIdentifierName, String assetExternalIdentifierUsage, String assetExternalIdentifierSource, KeyPattern assetExternalIdentifierKeyPattern, Map<String,String> mappingProperties, DataAssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDataAsset in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetManagerIsHome - ensure that only the asset manager can update this assetassetExternalIdentifier - unique identifier of the asset in the external asset managerassetExternalIdentifierName - name of property for the external identifier in the external asset managerassetExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerassetExternalIdentifierSource - component that issuing this request.assetExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the external asset manager and open metadataassetProperties - properties to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createDataAssetFromTemplate(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, String assetExternalIdentifier, String assetExternalIdentifierName, String assetExternalIdentifierUsage, String assetExternalIdentifierSource, KeyPattern assetExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createDataAssetFromTemplate in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetManagerIsHome - ensure that only the asset manager can update this assetassetExternalIdentifier - unique identifier of the asset in the external asset managerassetExternalIdentifierName - name of property for the external identifier in the external asset managerassetExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerassetExternalIdentifierSource - component that issuing this request.assetExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the external asset manager and open metadatatemplateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, boolean isMergeUpdate, DataAssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateDataAsset in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetGUID - unique identifier of the metadata element to updateassetExternalIdentifier - unique identifier of the asset in the external asset managerisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?assetProperties - new properties for this elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void publishDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishDataAsset in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetGUID - unique identifier of the metadata element to publishInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void withdrawDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawDataAsset in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetGUID - unique identifier of the metadata element to withdrawInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeDataAsset in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetGUID - unique identifier of the metadata element to removeassetExternalIdentifier - unique identifier of the asset in the external asset managerInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setDataAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setDataAssetAsReferenceData in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetGUID - unique identifier of the metadata element to updateassetExternalIdentifier - unique identifier of the asset in the external asset managerInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearDataAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearDataAssetAsReferenceData in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetGUID - unique identifier of the metadata element to updateassetExternalIdentifier - unique identifier of the asset in the external asset managerInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DataAssetElement> findDataAssets(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findDataAssets in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DataAssetElement> scanDataAssets(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
scanDataAssets in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DataAssetElement> getDataAssetsByName(String userId, String assetManagerGUID, String assetManagerName, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDataAssetsByName in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callername - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<DataAssetElement> getDataAssetsForAssetManager(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDataAssetsForAssetManager in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public DataAssetElement getDataAssetByGUID(String userId, String assetManagerGUID, String assetManagerName, String openMetadataGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getDataAssetByGUID in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the calleropenMetadataGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.