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 |
clearAssetAsReferenceData(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier)
Remove the reference data designation from the asset.
|
String |
createAsset(String userId,
String assetManagerGUID,
String assetManagerName,
boolean assetManagerIsHome,
String assetExternalIdentifier,
String assetExternalIdentifierName,
String assetExternalIdentifierUsage,
String assetExternalIdentifierSource,
KeyPattern assetExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
AssetProperties assetProperties)
Create a new metadata element to represent the root of an asset.
|
String |
createAssetFromTemplate(String userId,
String assetManagerGUID,
String assetManagerName,
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<AssetElement> |
findAssets(String userId,
String assetManagerGUID,
String assetManagerName,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of asset metadata elements that contain the search string.
|
AssetElement |
getAssetByGUID(String userId,
String assetManagerGUID,
String assetManagerName,
String openMetadataGUID)
Retrieve the asset metadata element with the supplied unique identifier.
|
List<AssetElement> |
getAssetsByName(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<AssetElement> |
getAssetsForAssetManager(String userId,
String assetManagerGUID,
String assetManagerName,
int startFrom,
int pageSize)
Retrieve the list of assets created on behalf of the named asset manager.
|
void |
publishAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID)
Update the zones for the asset so that it becomes visible to consumers.
|
void |
removeAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier)
Remove the metadata element representing an asset.
|
void |
setAssetAsReferenceData(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier)
Classify the asset to indicate that it can be used as reference data.
|
void |
updateAsset(String userId,
String assetManagerGUID,
String assetManagerName,
String assetGUID,
String assetExternalIdentifier,
boolean isMergeUpdate,
AssetProperties assetProperties)
Update the metadata element representing an asset.
|
void |
withdrawAsset(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 createAsset(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String assetExternalIdentifier, String assetExternalIdentifierName, String assetExternalIdentifierUsage, String assetExternalIdentifierSource, KeyPattern assetExternalIdentifierKeyPattern, Map<String,String> mappingProperties, AssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAsset 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 createAssetFromTemplate(String userId, String assetManagerGUID, String assetManagerName, String templateGUID, String assetExternalIdentifier, String assetExternalIdentifierName, String assetExternalIdentifierUsage, String assetExternalIdentifierSource, KeyPattern assetExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createAssetFromTemplate in interface DataAssetExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetExternalIdentifier - 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 updateAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, boolean isMergeUpdate, AssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateAsset 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 publishAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishAsset 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 withdrawAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawAsset 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 removeAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeAsset 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 setAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setAssetAsReferenceData 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 clearAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearAssetAsReferenceData 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<AssetElement> findAssets(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findAssets 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<AssetElement> getAssetsByName(String userId, String assetManagerGUID, String assetManagerName, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAssetsByName 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<AssetElement> getAssetsForAssetManager(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAssetsForAssetManager 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 AssetElement getAssetByGUID(String userId, String assetManagerGUID, String assetManagerName, String openMetadataGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getAssetByGUID 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–2020 ODPi. All rights reserved.