Class DataAssetExchangeClient
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.client.AssetManagerBaseClient
org.odpi.openmetadata.accessservices.assetmanager.client.exchange.ExchangeClientBase
org.odpi.openmetadata.accessservices.assetmanager.client.exchange.SchemaExchangeClientBase
org.odpi.openmetadata.accessservices.assetmanager.client.exchange.DataAssetExchangeClient
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface,org.odpi.openmetadata.accessservices.assetmanager.api.exchange.SchemaExchangeInterface,org.odpi.openmetadata.accessservices.assetmanager.api.ExternalIdentifierManagerInterface
public class DataAssetExchangeClient
extends SchemaExchangeClientBase
implements org.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface
DataAssetExchangeClient is the client for managing Data Assets, Schemas and Connections.
-
Constructor Summary
ConstructorsConstructorDescriptionDataAssetExchangeClient(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request.DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) Create a new client that passes userId and password in each HTTP request.DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, AssetManagerRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that is going to be used in an OMAG Server.DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAssetRelationship(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String relationshipGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Remove the relationship between two elements.voidclearDataAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Remove the reference data designation from the asset.createDataAsset(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, org.odpi.openmetadata.frameworks.governanceaction.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties assetProperties) Create a new metadata element to represent the root of an asset.createDataAssetFromTemplate(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, org.odpi.openmetadata.frameworks.governanceaction.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.TemplateProperties templateProperties) Create a new metadata element to represent an asset using an existing metadata element as a template.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement>findDataAssets(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the list of asset metadata elements that contain the search string.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElementgetAssetRelationship(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String fromAssetGUID, String toAssetGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the relationship between two elements.org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElementgetDataAssetByGUID(String userId, String assetManagerGUID, String assetManagerName, String openMetadataGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the asset metadata element with the supplied unique identifier.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement>getDataAssetsByName(String userId, String assetManagerGUID, String assetManagerName, String name, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the list of asset metadata elements with a matching qualified or display name.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement>getDataAssetsForAssetManager(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the list of assets created on behalf of the named asset manager.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElement>getRelatedAssetsAtEnd1(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String toAssetGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the relationships linked from a specific element at end 2 of the relationship.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElement>getRelatedAssetsAtEnd2(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String fromAssetGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Retrieve the requested relationships linked from a specific element at end 2.voidpublishDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Update the zones for the asset so that it becomes visible to consumers.voidremoveDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Remove the metadata element representing an asset.List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement>scanDataAssets(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Step through the assets visible to this caller.voidsetDataAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Classify the asset to indicate that it can be used as reference data.setupRelatedDataAsset(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String relationshipTypeName, String fromAssetGUID, String toAssetGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties relationshipProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Link two asset together.voidupdateAssetRelationship(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String relationshipGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties relationshipProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Update relationship between two elements.voidupdateDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties assetProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Update the metadata element representing an asset.voidwithdrawDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) Update the zones for the asset so that it is no longer visible to consumers.Methods inherited from class org.odpi.openmetadata.accessservices.assetmanager.client.exchange.SchemaExchangeClientBase
clearColumnAsPrimaryKey, clearForeignKeyRelationship, clearSchemaElementAsCalculatedValue, clearSchemaElementRelationship, clearSchemaTypeParent, createAnchoredSchemaType, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaType, createSchemaTypeFromTemplate, findSchemaAttributes, findSchemaType, getNestedSchemaAttributes, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, removeSchemaAttribute, removeSchemaType, setSchemaElementAsCalculatedValue, setupColumnAsPrimaryKey, setupForeignKeyRelationship, setupSchemaElementRelationship, setupSchemaTypeParent, updateForeignKeyRelationship, updateSchemaAttribute, updateSchemaTypeMethods inherited from class org.odpi.openmetadata.accessservices.assetmanager.client.AssetManagerBaseClient
addExternalIdentifier, confirmSynchronization, getElementsForExternalIdentifier, removeExternalIdentifier, updateExternalIdentifierMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.accessservices.assetmanager.api.exchange.SchemaExchangeInterface
clearColumnAsPrimaryKey, clearForeignKeyRelationship, clearSchemaElementAsCalculatedValue, clearSchemaElementRelationship, clearSchemaTypeParent, createAnchoredSchemaType, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaType, createSchemaTypeFromTemplate, findSchemaAttributes, findSchemaType, getNestedSchemaAttributes, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, removeSchemaAttribute, removeSchemaType, setSchemaElementAsCalculatedValue, setupColumnAsPrimaryKey, setupForeignKeyRelationship, setupSchemaElementRelationship, setupSchemaTypeParent, updateForeignKeyRelationship, updateSchemaAttribute, updateSchemaType
-
Constructor Details
-
DataAssetExchangeClient
public DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesauditLog- logging destinationmaxPageSize- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
DataAssetExchangeClient
public DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesmaxPageSize- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
DataAssetExchangeClient
public DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsauditLog- logging destinationmaxPageSize- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
DataAssetExchangeClient
public DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, AssetManagerRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that is going to be used in an OMAG Server.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this serverauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
DataAssetExchangeClient
public DataAssetExchangeClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
createDataAsset
public String createDataAsset(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, org.odpi.openmetadata.frameworks.governanceaction.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties assetProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent the root of an asset.- Specified by:
createDataAssetin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- 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 assetexternalIdentifierProperties- optional properties used to define an external identifierassetProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createDataAssetFromTemplate
public String createDataAssetFromTemplate(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, org.odpi.openmetadata.frameworks.governanceaction.properties.ExternalIdentifierProperties externalIdentifierProperties, org.odpi.openmetadata.accessservices.assetmanager.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent an asset using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new asset.- Specified by:
createDataAssetFromTemplatein interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- 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 assetexternalIdentifierProperties- optional properties used to define an external identifiertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateDataAsset
public void updateDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.assets.DataAssetProperties assetProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing an asset.- Specified by:
updateDataAssetin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 elementeffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
publishDataAsset
public void publishDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for the asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Asset Manager OMAS).- Specified by:
publishDataAssetin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 publisheffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
withdrawDataAsset
public void withdrawDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for the asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Asset Manager OMAS. This is the setting when the database is first created).- Specified by:
withdrawDataAssetin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 withdraweffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeDataAsset
public void removeDataAsset(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing an asset. This will delete the asset and all anchored elements such as schema and comments.- Specified by:
removeDataAssetin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 managereffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setDataAssetAsReferenceData
public void setDataAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the asset to indicate that it can be used as reference data.- Specified by:
setDataAssetAsReferenceDatain interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 managereffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearDataAssetAsReferenceData
public void clearDataAssetAsReferenceData(String userId, String assetManagerGUID, String assetManagerName, String assetGUID, String assetExternalIdentifier, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the reference data designation from the asset.- Specified by:
clearDataAssetAsReferenceDatain interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 managereffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupRelatedDataAsset
public String setupRelatedDataAsset(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String relationshipTypeName, String fromAssetGUID, String toAssetGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties relationshipProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Link two asset together. Use information from the relationship type definition to ensure the fromAssetGUID and toAssetGUID are the right way around.- Specified by:
setupRelatedDataAssetin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerassetManagerIsHome- ensure that only the process manager can update this processrelationshipTypeName- type name of relationship to createfromAssetGUID- unique identifier of the asset at end 1 of the relationshiptoAssetGUID- unique identifier of the asset at end 2 of the relationshiprelationshipProperties- unique identifier for this relationshipeffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- unique identifier of the relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getAssetRelationship
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElement getAssetRelationship(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String fromAssetGUID, String toAssetGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the relationship between two elements.- Specified by:
getAssetRelationshipin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerrelationshipTypeName- type name of relationship to createfromAssetGUID- unique identifier of the asset at end 1 of the relationshiptoAssetGUID- unique identifier of the asset at end 2 of the relationshipeffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- unique identifier and properties of the relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateAssetRelationship
public void updateAssetRelationship(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String relationshipGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties relationshipProperties, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update relationship between two elements.- Specified by:
updateAssetRelationshipin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerrelationshipTypeName- type name of relationship to updaterelationshipGUID- unique identifier of the relationshiprelationshipProperties- description and/or purpose of the relationshipisMergeUpdate- should the new properties be merged with the existing properties, or replace them entirelyeffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearAssetRelationship
public void clearAssetRelationship(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String relationshipGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the relationship between two elements.- Specified by:
clearAssetRelationshipin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerrelationshipTypeName- type name of relationship to deleterelationshipGUID- unique identifier of the relationshipeffectiveTime- optional date for effective time of the query. Null means any effective timeforLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getRelatedAssetsAtEnd2
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElement> getRelatedAssetsAtEnd2(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String fromAssetGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the requested relationships linked from a specific element at end 2.- Specified by:
getRelatedAssetsAtEnd2in interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerrelationshipTypeName- type name of relationship to deletefromAssetGUID- unique identifier of the asset at end 1 of the relationshipstartFrom- start position for resultspageSize- maximum number of resultseffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- unique identifier and properties of the relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getRelatedAssetsAtEnd1
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelationshipElement> getRelatedAssetsAtEnd1(String userId, String assetManagerGUID, String assetManagerName, String relationshipTypeName, String toAssetGUID, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the relationships linked from a specific element at end 2 of the relationship.- Specified by:
getRelatedAssetsAtEnd1in interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerrelationshipTypeName- type name of relationship to deletetoAssetGUID- unique identifier of the asset at end 2 of the relationshipstartFrom- start position for resultspageSize- maximum number of resultseffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- unique identifier and properties of the relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findDataAssets
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement> findDataAssets(String userId, String assetManagerGUID, String assetManagerName, String searchString, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of asset metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findDataAssetsin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- 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 returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
scanDataAssets
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement> scanDataAssets(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Step through the assets visible to this caller.- Specified by:
scanDataAssetsin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- 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 returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataAssetsByName
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement> getDataAssetsByName(String userId, String assetManagerGUID, String assetManagerName, String name, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of asset metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getDataAssetsByNamein interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- 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 returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataAssetsForAssetManager
public List<org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement> getDataAssetsForAssetManager(String userId, String assetManagerGUID, String assetManagerName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of assets created on behalf of the named asset manager.- Specified by:
getDataAssetsForAssetManagerin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
userId- 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 returnedeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataAssetByGUID
public org.odpi.openmetadata.accessservices.assetmanager.metadataelements.DataAssetElement getDataAssetByGUID(String userId, String assetManagerGUID, String assetManagerName, String openMetadataGUID, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the asset metadata element with the supplied unique identifier.- Specified by:
getDataAssetByGUIDin interfaceorg.odpi.openmetadata.accessservices.assetmanager.api.exchange.DataAssetExchangeInterface- Parameters:
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 elementeffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)forLineage- return elements marked with the Memento classification?forDuplicateProcessing- do not merge elements marked as duplicates?- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-