Class DataProductMapper
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolMapperBase
org.odpi.openmetadata.frameworks.integration.bitol.mapping.DataProductMapper
DataProductMapper catalogues an Open Data Product Standard (ODPS) document as a DigitalProduct in open metadata.
- The document becomes a DigitalProduct (one element per version, qualifiedName DataProduct::{id}::{version}) whose identifier is also recorded as an ExternalId shared by all versions.
- The document's status maps onto the product's content status; a retired product is deleted.
- The domain becomes a DigitalProductCatalog that the product is a member of; the tenant becomes an Organization that the product is scoped by; tags become search keywords.
- The input and output ports become SolutionPorts of a SolutionComponent that describes the product's design. Where an output port names a data contract that is already catalogued (as an Agreement), the port becomes an item of that agreement.
- Management ports become Endpoints listed as resources of the product.
- The team becomes a Team profile and scoped PersonRoles, support channels become ContactDetails and authoritative definitions become ExternalReferences (see BitolMapperBase).
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolMapperBase
ADDITIONAL_PROPERTY_PREFIX, context, CONTEXT_JSON, CUSTOM_PROPERTIES_JSON, DEPRECATED, SEPARATOR, SYNONYMS_JSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncatalogueDataProduct(DataProduct dataProduct, String source) Catalogue a data product.Methods inherited from class org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolMapperBase
addCustomProperties, addDescriptionDetails, addSearchKeywords, canonical, fillFundamentals, findElementGUID, findElementsByDocumentId, getContactMethodType, getDocumentQualifiedName, getExternalIdQualifiedName, getLatestVersion, isRetired, linkAuthoritativeDefinitions, linkExternalId, linkSupportChannels, linkTeam, linkTenantOrganization, parseDate, putIfPresent, setContentStatus, toJSON, toStringValue
-
Constructor Details
-
DataProductMapper
Constructor.- Parameters:
context- connector context providing access to the open metadata clients
-
-
Method Details
-
catalogueDataProduct
public BitolMappingResult catalogueDataProduct(DataProduct dataProduct, String source) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Catalogue a data product. Republishing the same version updates the existing elements; a new version creates new elements linked to the same ExternalId.- Parameters:
dataProduct- document to cataloguesource- description of where the document came from (recorded on the ExternalId link)- Returns:
- result describing what was done and anything that could not be fully represented
- Throws:
InvalidParameterException- invalid parameterPropertyServerException- problem with the metadata storeUserNotAuthorizedException- security problem
-