public class DataAssetExchangeService extends SchemaExchangeService
| 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(boolean assetManagerIsHome,
String assetExternalIdentifier,
String assetExternalIdentifierName,
String assetExternalIdentifierUsage,
KeyPattern assetExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
DataAssetProperties assetProperties)
Create a new metadata element to represent the root of an asset.
|
String |
createDataAssetFromTemplate(boolean assetManagerIsHome,
String templateGUID,
String assetExternalIdentifier,
String assetExternalIdentifierName,
String assetExternalIdentifierUsage,
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 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 name,
int startFrom,
int pageSize)
Retrieve the list of asset metadata elements with a matching qualified or display name.
|
List<DataAssetElement> |
getDataAssetsForAssetManager(int startFrom,
int pageSize)
Retrieve the list of assets created on behalf of the named asset manager.
|
void |
publishDataAsset(String userId,
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.
|
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 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, updateSchemaTypepublic String createDataAsset(boolean assetManagerIsHome, String assetExternalIdentifier, String assetExternalIdentifierName, String assetExternalIdentifierUsage, KeyPattern assetExternalIdentifierKeyPattern, Map<String,String> mappingProperties, DataAssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assetManagerIsHome - 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 managerassetExternalIdentifierKeyPattern - 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(boolean assetManagerIsHome, String templateGUID, String assetExternalIdentifier, String assetExternalIdentifierName, String assetExternalIdentifierUsage, KeyPattern assetExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this processassetExternalIdentifier - 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 managerassetExternalIdentifierKeyPattern - 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
userId - 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 assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - 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 assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - 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
userId - 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
userId - 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
userId - 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 searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - 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> getDataAssetsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - 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(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
startFrom - 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
userId - 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.