Class DataProductGenerator
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolGeneratorBase
org.odpi.openmetadata.frameworks.integration.bitol.mapping.DataProductGenerator
DataProductGenerator builds an Open Data Product Standard (ODPS) document from a DigitalProduct in open metadata.
It is the reverse of DataProductMapper: the product's solution component ports become input and output ports (with
the data contract identifier taken from the agreement each port is an item of, or from the identifier recorded when
the port was catalogued), the endpoints listed as its resources become management ports, and the catalog,
organization, keywords, contact details, external references and scoped roles become the domain, tenant, tags,
support, authoritative definitions and team.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolGeneratorBase
context, propertyHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateDataProduct(String digitalProductGUID) Generate the ODPS document for a digital product.Generate the ODPS document for a digital product that has already been retrieved with its related elements.Methods inherited from class org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolGeneratorBase
fillFundamentals, fromJSON, fromJSONList, getAuthoritativeDefinitions, getBitolValue, getContext, getCustomProperties, getDeprecated, getDisplayName, getGUID, getSupportChannels, getSynonyms, getTags, getTeam, getTenant, getTypeName
-
Constructor Details
-
DataProductGenerator
Constructor.- Parameters:
context- connector context providing access to the open metadata clients
-
-
Method Details
-
generateDataProduct
public DataProduct generateDataProduct(String digitalProductGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Generate the ODPS document for a digital product.- Parameters:
digitalProductGUID- unique identifier of the DigitalProduct element- Returns:
- document
- Throws:
InvalidParameterException- the element is not a digital productPropertyServerException- problem with the metadata storeUserNotAuthorizedException- security problem
-
generateDataProduct
public DataProduct generateDataProduct(OpenMetadataRootElement product) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Generate the ODPS document for a digital product that has already been retrieved with its related elements.- Parameters:
product- DigitalProduct element- Returns:
- document
- Throws:
InvalidParameterException- the element is not a digital productPropertyServerException- problem with the metadata storeUserNotAuthorizedException- security problem
-