Class AssetManagerBaseClient
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.client.AssetManagerBaseClient
- All Implemented Interfaces:
ExternalIdentifierManagerInterface
- Direct Known Subclasses:
CollaborationExchangeClient
,ExchangeClientBase
,GlossaryExchangeClient
AssetManagerBaseClient supports the common properties and functions for the Asset Manager OMAS.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final InvalidParameterHandler
protected final MetadataElementSummaryConverter<MetadataElementSummary>
protected final MetadataRelationshipSummaryConverter<MetadataRelationshipSummary>
protected final NullRequestBody
protected final OpenMetadataStoreClient
protected final PropertyHelper
protected final RelatedMetadataElementSummaryConverter<RelatedMetadataElementSummary>
protected final AssetManagerRESTClient
protected final String
protected final String
protected final String
-
Constructor Summary
ConstructorDescriptionAssetManagerBaseClient
(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.AssetManagerBaseClient
(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request.AssetManagerBaseClient
(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog, int maxPageSize) Create a new client that passes userId and password in each HTTP request.AssetManagerBaseClient
(String serverName, String serverPlatformURLRoot, AssetManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) Create a new client that is going to be used in an OMAG Server.AssetManagerBaseClient
(String serverName, String serverPlatformURLRoot, AuditLog auditLog, int maxPageSize) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExternalIdentifier
(String userId, String assetManagerGUID, String assetManagerName, String assetManagerTypeName, String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) Add a new external identifier to an existing open metadata element.void
addExternalIdentifier
(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) Add a new external identifier to an existing open metadata element.protected void
clearRelationship
(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, String relationshipTypeName, String relationshipTypeNameParameterName, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Remove a relationship.protected void
clearRelationship
(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Remove a relationship.void
confirmSynchronization
(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) Confirm that the values of a particular metadata element have been synchronized.protected String
createFeedbackFromTemplateWithParent
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, boolean isPublic, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, boolean deepCopy, String urlTemplate, String methodName) Create a new metadata element to represent a community using an existing metadata element as a template.protected String
createFeedbackWithParent
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, boolean isPublic, ReferenceableProperties properties, String propertiesParameterName, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Create a new metadata element that is attached to the parent.protected String
createReferenceable
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, ExternalIdentifierProperties externalIdentifierProperties, ReferenceableProperties properties, String propertiesParameterName, String urlTemplate, String methodName) Create a new metadata element that does not link to another element on create.protected String
createReferenceableFromTemplate
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, boolean deepCopy, String methodName) Create a new metadata element to represent a community using an existing metadata element as a template.protected String
createReferenceableFromTemplate
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, String methodName) Create a new metadata element to represent a community using an existing metadata element as a template.protected String
createReferenceableFromTemplateWithParent
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, boolean deepCopy, String urlTemplate, String methodName) Create a new metadata element to represent a community using an existing metadata element as a template.protected String
createReferenceableFromTemplateWithParent
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, String methodName) Create a new metadata element to represent a community using an existing metadata element as a template.protected String
createReferenceableWithParent
(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, ReferenceableProperties properties, String propertiesParameterName, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Create a new metadata element that is attached to the parent.protected AssetManagerIdentifiersRequestBody
getAssetManagerIdentifiersRequestBody
(String assetManagerGUID, String assetManagerName) Return the asset manager identifiers packaged in an appropriate request body (or null if assetManagerGUID is null).protected List<MetadataElementSummary>
getClassifiedElements
(String userId, String classificationName, String entityTypeName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Retrieve a collection of classified elements that also have specific classification properties.protected List<MetadataElementSummary>
getClassifiedElements
(String userId, String classificationName, String entityTypeName, int propertyValue, String propertyName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Retrieve a collection of classified elements that also have specific classification properties.protected List<MetadataElementSummary>
getClassifiedElements
(String userId, String classificationName, String entityTypeName, String propertyValue, String propertyName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Retrieve a collection of classified elements that also have specific classification properties.protected List<ElementStub>
getClassifiedElements
(String userId, String assetManagerGUID, String assetManagerName, FindProperties properties, String urlTemplate, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Retrieve a collection of classified elements.protected MetadataCorrelationProperties
getCorrelationProperties
(String assetManagerGUID, String assetManagerName, String externalIdentifier, String methodName) Set up the correlation properties for update.protected MetadataCorrelationProperties
getCorrelationProperties
(String assetManagerGUID, String assetManagerName, String externalIdentifier, String externalIdentifierName, String externalIdentifierUsage, String externalIdentifierSource, KeyPattern externalIdentifierKeyPattern, Map<String, String> mappingProperties, String methodName) Set up the correlation properties for request.protected MetadataCorrelationProperties
getCorrelationProperties
(String assetManagerGUID, String assetManagerName, ExternalIdentifierProperties externalIdentifierProperties, String methodName) Set up the correlation properties for request.protected EffectiveTimeQueryRequestBody
getEffectiveTimeQueryRequestBody
(String assetManagerGUID, String assetManagerName, Date effectiveTime) Return the asset manager identifiers packaged in an appropriate request body.getElementsForExternalIdentifier
(String userId, String assetManagerGUID, String assetManagerName, String externalIdentifier, int startFrom, int pageSize) Return the list of headers for open metadata elements that are associated with a particular external identifier.protected GlossaryTermRelationshipRequestBody
getGlossaryTermRelationshipRequestBody
(String assetManagerGUID, String assetManagerName, String relationshipTypeName, List<GlossaryTermRelationshipStatus> limitResultsByStatus, Date effectiveTime) Return the asset manager identifiers packaged in an appropriate request body.protected List<MetadataCorrelationHeader>
getMetadataCorrelationHeaders
(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName) Assemble the correlation headers attached to the supplied element guid.protected NameRequestBody
getNameRequestBody
(String assetManagerGUID, String assetManagerName, String name, String nameParameterName, Date effectiveTime) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.protected NameRequestBody
getNameRequestBody
(String assetManagerGUID, String assetManagerName, String name, Date effectiveTime, String methodName) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.protected NameRequestBody
getQualifiedNameRequestBody
(String assetManagerGUID, String assetManagerName, String qualifiedName, Date effectiveTime) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.protected List<RelatedMetadataElementSummary>
getRelatedElements
(String userId, String startingElementGUID, int startingAtEnd, String relationshipTypeName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Retrieve a relationship.protected RelationshipRequestBody
getRelationshipRequestBody
(String assetManagerGUID, String assetManagerName, Date effectiveTime, RelationshipProperties relationshipProperties) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.protected SearchStringRequestBody
getSearchStringRequestBody
(String assetManagerGUID, String assetManagerName, String searchString, Date effectiveTime, String methodName) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.protected UpdateRequestBody
getUpdateRequestBody
(String assetManagerGUID, String assetManagerName, String externalIdentifier, Date effectiveTime, String methodName) Set up the correlation properties for update.protected void
handleMissingScope
(String externalIdentifier, String methodName) Throw an exception because the asset manager's GUID has not been passed with an external identifier.void
removeExternalIdentifier
(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) Remove an external identifier from an existing open metadata element.protected void
removeReferenceable
(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameterName, String externalIdentifierName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Remove the metadata element.protected void
removeReferenceableClassification
(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameter, String externalIdentifierName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Remove classification from the referenceable.protected void
setReferenceableClassification
(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameter, String externalIdentifierName, ClassificationProperties properties, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Add or update classification on referenceable.protected void
setupRelationship
(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, String relationshipTypeName, String relationshipTypeNameParameterName, RelationshipProperties properties, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Create a relationship between a primary element and a secondary element.protected void
setupRelationship
(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, RelationshipProperties properties, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Create a relationship between a primary element and a secondary element.void
updateExternalIdentifier
(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) Update the description of a specific external identifier.protected void
updateFeedback
(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameterName, String externalIdentifierName, boolean isMergeUpdate, boolean isPublic, ReferenceableProperties properties, String propertiesParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Update the metadata element.protected void
updateReferenceable
(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameterName, String externalIdentifierName, boolean isMergeUpdate, ReferenceableProperties properties, String propertiesParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) Update the metadata element.
-
Field Details
-
serverName
-
serverPlatformURLRoot
-
invalidParameterHandler
-
propertyHelper
-
restClient
-
openMetadataStoreClient
-
nullRequestBody
-
urlTemplatePrefix
- See Also:
-
metadataElementSummaryConverter
protected final MetadataElementSummaryConverter<MetadataElementSummary> metadataElementSummaryConverter -
metadataRelationshipSummaryConverter
protected final MetadataRelationshipSummaryConverter<MetadataRelationshipSummary> metadataRelationshipSummaryConverter
-
-
Constructor Details
-
AssetManagerBaseClient
public AssetManagerBaseClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog, int maxPageSize) throws 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:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
AssetManagerBaseClient
public AssetManagerBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize) throws 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:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
AssetManagerBaseClient
public AssetManagerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws 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:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
AssetManagerBaseClient
public AssetManagerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog, int maxPageSize) throws 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:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
AssetManagerBaseClient
public AssetManagerBaseClient(String serverName, String serverPlatformURLRoot, AssetManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws 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:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
handleMissingScope
protected void handleMissingScope(String externalIdentifier, String methodName) throws InvalidParameterException Throw an exception because the asset manager's GUID has not been passed with an external identifier.- Parameters:
externalIdentifier
- external identifiermethodName
- calling method- Throws:
InvalidParameterException
- resulting exception
-
getCorrelationProperties
protected MetadataCorrelationProperties getCorrelationProperties(String assetManagerGUID, String assetManagerName, String externalIdentifier, String methodName) throws InvalidParameterException Set up the correlation properties for update.- Parameters:
assetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the callerexternalIdentifier
- unique identifier of the glossary in the external asset managermethodName
- calling method- Returns:
- filled out correlation properties
- Throws:
InvalidParameterException
- missing external identifier
-
getUpdateRequestBody
protected UpdateRequestBody getUpdateRequestBody(String assetManagerGUID, String assetManagerName, String externalIdentifier, Date effectiveTime, String methodName) throws InvalidParameterException Set up the correlation properties for update.- Parameters:
assetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the callerexternalIdentifier
- unique identifier of the glossary in the external asset managereffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- filled out correlation properties
- Throws:
InvalidParameterException
- missing external identifier
-
getCorrelationProperties
protected MetadataCorrelationProperties getCorrelationProperties(String assetManagerGUID, String assetManagerName, String externalIdentifier, String externalIdentifierName, String externalIdentifierUsage, String externalIdentifierSource, KeyPattern externalIdentifierKeyPattern, Map<String, String> mappingProperties, String methodName) throws InvalidParameterExceptionSet up the correlation properties for request.- Parameters:
assetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the callerexternalIdentifier
- unique identifier of the element in the external asset managerexternalIdentifierName
- name of property for the external identifier in the external asset managerexternalIdentifierUsage
- optional usage description for the external identifier when calling the external asset managerexternalIdentifierSource
- component that issuing this request.externalIdentifierKeyPattern
- 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 metadatamethodName
- calling method- Returns:
- filled out correlation properties
- Throws:
InvalidParameterException
- missing external identifier
-
getCorrelationProperties
protected MetadataCorrelationProperties getCorrelationProperties(String assetManagerGUID, String assetManagerName, ExternalIdentifierProperties externalIdentifierProperties, String methodName) throws InvalidParameterException Set up the correlation properties for request.- Parameters:
assetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the callerexternalIdentifierProperties
- optional properties used to define an external identifiermethodName
- calling method- Returns:
- filled out correlation properties
- Throws:
InvalidParameterException
- missing external identifier
-
getAssetManagerIdentifiersRequestBody
protected AssetManagerIdentifiersRequestBody getAssetManagerIdentifiersRequestBody(String assetManagerGUID, String assetManagerName) Return the asset manager identifiers packaged in an appropriate request body (or null if assetManagerGUID is null).- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset manager- Returns:
- request body
-
getEffectiveTimeQueryRequestBody
protected EffectiveTimeQueryRequestBody getEffectiveTimeQueryRequestBody(String assetManagerGUID, String assetManagerName, Date effectiveTime) Return the asset manager identifiers packaged in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset managereffectiveTime
- the time that the retrieved elements must be effective for- Returns:
- request body
-
getGlossaryTermRelationshipRequestBody
protected GlossaryTermRelationshipRequestBody getGlossaryTermRelationshipRequestBody(String assetManagerGUID, String assetManagerName, String relationshipTypeName, List<GlossaryTermRelationshipStatus> limitResultsByStatus, Date effectiveTime) Return the asset manager identifiers packaged in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset managerrelationshipTypeName
- optional name of relationshiplimitResultsByStatus
- By default, term relationships in all statuses are returned. However, it is possible to specify a list of statuses (eg ACTIVE) to restrict the results to. Null means all status values.effectiveTime
- the time that the retrieved elements must be effective for- Returns:
- request body
-
getRelationshipRequestBody
protected RelationshipRequestBody getRelationshipRequestBody(String assetManagerGUID, String assetManagerName, Date effectiveTime, RelationshipProperties relationshipProperties) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset managereffectiveTime
- the time that the retrieved elements must be effective forrelationshipProperties
- relationship properties- Returns:
- request body
-
getNameRequestBody
protected NameRequestBody getNameRequestBody(String assetManagerGUID, String assetManagerName, String name, String nameParameterName, Date effectiveTime) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset managername
- name to search fornameParameterName
- parameter nameeffectiveTime
- the time that the retrieved elements must be effective for- Returns:
- request body
-
getNameRequestBody
protected NameRequestBody getNameRequestBody(String assetManagerGUID, String assetManagerName, String name, Date effectiveTime, String methodName) throws InvalidParameterException Return the asset manager identifiers packaged with relevant properties in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset managername
- name to search foreffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- request body
- Throws:
InvalidParameterException
- blank name
-
getQualifiedNameRequestBody
protected NameRequestBody getQualifiedNameRequestBody(String assetManagerGUID, String assetManagerName, String qualifiedName, Date effectiveTime) Return the asset manager identifiers packaged with relevant properties in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique qualifiedName for the asset managerqualifiedName
- qualifiedName to search foreffectiveTime
- the time that the retrieved elements must be effective for- Returns:
- request body
-
getSearchStringRequestBody
protected SearchStringRequestBody getSearchStringRequestBody(String assetManagerGUID, String assetManagerName, String searchString, Date effectiveTime, String methodName) throws InvalidParameterException Return the asset manager identifiers packaged with relevant properties in an appropriate request body.- Parameters:
assetManagerGUID
- unique identifier for the asset managerassetManagerName
- unique name for the asset managersearchString
- string to find in the propertieseffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- request body
- Throws:
InvalidParameterException
- blank name
-
addExternalIdentifier
public void addExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add a new external identifier to an existing open metadata element.- Specified by:
addExternalIdentifier
in interfaceExternalIdentifierManagerInterface
- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the calleropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name for the open metadata elementexternalIdentifierProperties
- optional properties used to define an external identifier- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
addExternalIdentifier
public void addExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, String assetManagerTypeName, String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add a new external identifier to an existing open metadata element.- Specified by:
addExternalIdentifier
in interfaceExternalIdentifierManagerInterface
- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the callerassetManagerTypeName
- type name of the software capability describing the asset manageropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name for the open metadata elementexternalIdentifierProperties
- optional properties used to define an external identifier- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
updateExternalIdentifier
public void updateExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, ExternalIdentifierProperties externalIdentifierProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the description of a specific external identifier.- Specified by:
updateExternalIdentifier
in interfaceExternalIdentifierManagerInterface
- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the calleropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name for the open metadata elementexternalIdentifierProperties
- optional properties used to define an external identifier- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
removeExternalIdentifier
public void removeExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove an external identifier from an existing open metadata element. The open metadata element is not affected.- Specified by:
removeExternalIdentifier
in interfaceExternalIdentifierManagerInterface
- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the calleropenMetadataElementGUID
- unique identifier (GUID) of the element in the open metadata ecosystemopenMetadataElementTypeName
- type name for the open metadata elementexternalIdentifier
- unique identifier of this element in the third party asset manager- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
confirmSynchronization
public void confirmSynchronization(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName, String externalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Confirm that the values of a particular metadata element have been synchronized. This is important from an audit point of view, and to allow bidirectional updates of metadata using optimistic locking.- Specified by:
confirmSynchronization
in interfaceExternalIdentifierManagerInterface
- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the calleropenMetadataElementGUID
- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName
- type name for the open metadata elementexternalIdentifier
- unique identifier of this element in the external asset manager- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
getElementsForExternalIdentifier
public List<ElementHeader> getElementsForExternalIdentifier(String userId, String assetManagerGUID, String assetManagerName, String externalIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of headers for open metadata elements that are associated with a particular external identifier.- Specified by:
getElementsForExternalIdentifier
in interfaceExternalIdentifierManagerInterface
- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the callerexternalIdentifier
- unique identifier of this element in the external asset managerstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of element headers
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
getMetadataCorrelationHeaders
protected List<MetadataCorrelationHeader> getMetadataCorrelationHeaders(String userId, String assetManagerGUID, String assetManagerName, String openMetadataElementGUID, String openMetadataElementTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Assemble the correlation headers attached to the supplied element guid.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software server capability representing the callerassetManagerName
- unique name of software server capability representing the calleropenMetadataElementGUID
- unique identifier (GUID) of this element in open metadataopenMetadataElementTypeName
- type name for the open metadata element- Returns:
- list of correlation headers (note if asset manager identifiers are present, only the matching correlation header is returned)
- Throws:
InvalidParameterException
- one of the parameters is invalid.UserNotAuthorizedException
- the user is not authorized to make this request.PropertyServerException
- the repository is not available or not working properly.
-
createReferenceable
protected String createReferenceable(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, ExternalIdentifierProperties externalIdentifierProperties, ReferenceableProperties properties, String propertiesParameterName, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element that does not link to another element on create.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementexternalIdentifierProperties
- optional properties used to define an external identifierproperties
- properties about the element to storepropertiesParameterName
- name of parameter passing the propertiesurlTemplate
- URL to call (no expected placeholders)methodName
- calling method- Returns:
- unique identifier of the new element
- Throws:
InvalidParameterException
- 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)
-
createReferenceableFromTemplate
protected String createReferenceableFromTemplate(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a community using an existing metadata element as a template.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementtemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the templateexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (with placeholders)methodName
- calling method- Returns:
- unique identifier of the new community
- Throws:
InvalidParameterException
- 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)
-
createReferenceableFromTemplate
protected String createReferenceableFromTemplate(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, boolean deepCopy, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a community using an existing metadata element as a template.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementtemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the templateexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (with placeholders)deepCopy
- should the template creation extend to the anchored elements or just the direct entity?methodName
- calling method- Returns:
- unique identifier of the new community
- Throws:
InvalidParameterException
- 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)
-
createReferenceableFromTemplateWithParent
protected String createReferenceableFromTemplateWithParent(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a community using an existing metadata element as a template.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementparentGUID
- unique identifier of the parent elementparentGUIDParameterName
- name of parameter passing the parentGUIDtemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the templateexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (with placeholders)methodName
- calling method- Returns:
- unique identifier of the new community
- Throws:
InvalidParameterException
- 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)
-
createReferenceableFromTemplateWithParent
protected String createReferenceableFromTemplateWithParent(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, boolean deepCopy, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a community using an existing metadata element as a template.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementparentGUID
- unique identifier of the parent elementparentGUIDParameterName
- name of parameter passing the parentGUIDtemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the templateexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (with placeholders)deepCopy
- should the template creation extend to the anchored elements or just the direct entity?methodName
- calling method- Returns:
- unique identifier of the new community
- Throws:
InvalidParameterException
- 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)
-
createFeedbackFromTemplateWithParent
protected String createFeedbackFromTemplateWithParent(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, boolean isPublic, String templateGUID, TemplateProperties templateProperties, ExternalIdentifierProperties externalIdentifierProperties, boolean deepCopy, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a community using an existing metadata element as a template.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementparentGUID
- unique identifier of the parent elementparentGUIDParameterName
- name of parameter passing the parentGUIDisPublic
- is this element visible to other people.templateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the templateexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (with placeholders)deepCopy
- should the template creation extend to the anchored elements or just the direct entity?methodName
- calling method- Returns:
- unique identifier of the new community
- Throws:
InvalidParameterException
- 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)
-
createReferenceableWithParent
protected String createReferenceableWithParent(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, ReferenceableProperties properties, String propertiesParameterName, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element that is attached to the parent.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementparentGUID
- unique identifier of the parent elementparentGUIDParameterName
- name of parameter passing the parentGUIDproperties
- properties about the element to storepropertiesParameterName
- name of parameter passing the propertiesexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- unique identifier of the new element
- Throws:
InvalidParameterException
- 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)
-
createFeedbackWithParent
protected String createFeedbackWithParent(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String parentGUID, String parentGUIDParameterName, boolean isPublic, ReferenceableProperties properties, String propertiesParameterName, ExternalIdentifierProperties externalIdentifierProperties, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element that is attached to the parent.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerassetManagerIsHome
- ensure that only the asset manager can update this elementparentGUID
- unique identifier of the parent elementparentGUIDParameterName
- name of parameter passing the parentGUIDisPublic
- is this element visible to other people.properties
- properties about the element to storepropertiesParameterName
- name of parameter passing the propertiesexternalIdentifierProperties
- optional properties used to define an external identifierurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- unique identifier of the new element
- Throws:
InvalidParameterException
- 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)
-
updateReferenceable
protected void updateReferenceable(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameterName, String externalIdentifierName, boolean isMergeUpdate, ReferenceableProperties properties, String propertiesParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element. It is possible to use the subtype property classes or set up specialized properties in extended properties.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerelementGUID
- unique identifier of the metadata element to updateelementGUIDParameterName
- name of parameter passing the elementGUIDexternalIdentifierName
- optional external identifierisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?properties
- new properties for the metadata elementpropertiesParameterName
- name of parameter passing the propertiesurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
updateFeedback
protected void updateFeedback(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameterName, String externalIdentifierName, boolean isMergeUpdate, boolean isPublic, ReferenceableProperties properties, String propertiesParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element. It is possible to use the subtype property classes or set up specialized properties in extended properties.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerelementGUID
- unique identifier of the metadata element to updateelementGUIDParameterName
- name of parameter passing the elementGUIDexternalIdentifierName
- optional external identifierisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?isPublic
- is this element visible to other people.properties
- new properties for the metadata elementpropertiesParameterName
- name of parameter passing the propertiesurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
setReferenceableClassification
protected void setReferenceableClassification(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameter, String externalIdentifierName, ClassificationProperties properties, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add or update classification on referenceable.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerelementGUID
- unique identifier of the metadata element to classifyelementGUIDParameter
- parameter name for elementGUIDexternalIdentifierName
- optional name used to define an external identifierproperties
- properties of security at the siteurlTemplate
- URL to call with placeholder for guideffectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
removeReferenceableClassification
protected void removeReferenceableClassification(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameter, String externalIdentifierName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove classification from the referenceable.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerelementGUID
- unique identifier of the metadata element to classifyelementGUIDParameter
- parameter name for elementGUIDexternalIdentifierName
- optional name used to define an external identifierurlTemplate
- URL to call with placeholder for guidforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- 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)
-
setupRelationship
protected void setupRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, RelationshipProperties properties, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between a primary element and a secondary element.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerprimaryElementGUID
- unique identifier of the primary elementprimaryElementGUIDParameterName
- name of parameter passing the primaryElementGUIDproperties
- describes the properties for the relationshipsecondaryElementGUID
- unique identifier of the element to connect it tosecondaryElementGUIDParameterName
- name of parameter passing the secondaryElementGUIDurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
setupRelationship
protected void setupRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, String relationshipTypeName, String relationshipTypeNameParameterName, RelationshipProperties properties, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a relationship between a primary element and a secondary element.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerprimaryElementGUID
- unique identifier of the primary elementprimaryElementGUIDParameterName
- name of parameter passing the primaryElementGUIDrelationshipTypeName
- type of relationship to createrelationshipTypeNameParameterName
- name of the parameter passing relationshipTypeNameproperties
- describes the properties for the relationshipsecondaryElementGUID
- unique identifier of the element to connect it tosecondaryElementGUIDParameterName
- name of parameter passing the secondaryElementGUIDurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
clearRelationship
protected void clearRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerprimaryElementGUID
- unique identifier of the primary elementprimaryElementGUIDParameterName
- name of parameter passing the primaryElementGUIDsecondaryElementGUID
- unique identifier of the element to connect it tosecondaryElementGUIDParameterName
- name of parameter passing the secondaryElementGUIDurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
clearRelationship
protected void clearRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryElementGUID, String primaryElementGUIDParameterName, String relationshipTypeName, String relationshipTypeNameParameterName, String secondaryElementGUID, String secondaryElementGUIDParameterName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerprimaryElementGUID
- unique identifier of the primary elementprimaryElementGUIDParameterName
- name of parameter passing the primaryElementGUIDrelationshipTypeName
- type of relationship to createrelationshipTypeNameParameterName
- name of the parameter passing relationshipTypeNamesecondaryElementGUID
- unique identifier of the element to connect it tosecondaryElementGUIDParameterName
- name of parameter passing the secondaryElementGUIDurlTemplate
- URL to call (no expected placeholders)effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-
getRelatedElements
protected List<RelatedMetadataElementSummary> getRelatedElements(String userId, String startingElementGUID, int startingAtEnd, String relationshipTypeName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a relationship.- Parameters:
userId
- calling userstartingElementGUID
- unique identifier of the primary elementstartingAtEnd
- 0=either, or 1 or 2relationshipTypeName
- URL to call (no expected placeholders)startFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- list of related elements
- Throws:
InvalidParameterException
- 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)
-
getClassifiedElements
protected List<ElementStub> getClassifiedElements(String userId, String assetManagerGUID, String assetManagerName, FindProperties properties, String urlTemplate, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a collection of classified elements.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerproperties
- values to search onurlTemplate
- URL to call (no expected placeholders)startFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- list of related elements
- Throws:
InvalidParameterException
- 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)
-
getClassifiedElements
protected List<MetadataElementSummary> getClassifiedElements(String userId, String classificationName, String entityTypeName, String propertyValue, String propertyName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a collection of classified elements that also have specific classification properties. It is also possible to restrict the results using the entity type name.- Parameters:
userId
- calling userclassificationName
- name of the classification to search forentityTypeName
- optional type name to restrict the search bypropertyValue
- value to search for in the classificationstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- list of related elements
- Throws:
InvalidParameterException
- 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)
-
getClassifiedElements
protected List<MetadataElementSummary> getClassifiedElements(String userId, String classificationName, String entityTypeName, int propertyValue, String propertyName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a collection of classified elements that also have specific classification properties. It is also possible to restrict the results using the entity type name.- Parameters:
userId
- calling userclassificationName
- name of the classification to search forentityTypeName
- optional type name to restrict the search bypropertyValue
- value to search for in the classificationstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- list of related elements
- Throws:
InvalidParameterException
- 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)
-
getClassifiedElements
protected List<MetadataElementSummary> getClassifiedElements(String userId, String classificationName, String entityTypeName, int startFrom, int pageSize, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a collection of classified elements that also have specific classification properties. It is also possible to restrict the results using the entity type name.- Parameters:
userId
- calling userclassificationName
- name of the classification to search forentityTypeName
- optional type name to restrict the search bystartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.effectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Returns:
- list of related elements
- Throws:
InvalidParameterException
- 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)
-
removeReferenceable
protected void removeReferenceable(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementGUIDParameterName, String externalIdentifierName, String urlTemplate, Date effectiveTime, boolean forLineage, boolean forDuplicateProcessing, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element.- Parameters:
userId
- calling userassetManagerGUID
- unique identifier of software capability representing the callerassetManagerName
- unique name of software capability representing the callerelementGUID
- unique identifier of the metadata element to removeelementGUIDParameterName
- name of parameter passing the elementGUIDurlTemplate
- URL to call (no expected placeholders)externalIdentifierName
- unique identifier of the element in the external asset managereffectiveTime
- the time that the retrieved elements must be effective forforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?methodName
- calling method- Throws:
InvalidParameterException
- 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)
-