Class DataProduct
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolDocument
org.odpi.openmetadata.frameworks.integration.bitol.odps.DataProduct
This class represents an Open Data Product Standard (ODPS) data product as defined by the Bitol project
(https://bitol-io.github.io/open-data-product-standard/). It is used internally in Egeria to pass this
information to the integration connectors and view services. A data product describes the data it consumes
(input ports) and provides (output ports), each described by an Open Data Contract Standard (ODCS) data
contract, along with its management ports, support channels and team. The fundamentals shared with the Open
Data Contract Standard are inherited from BitolDocument.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe version of the Open Data Product Standard that this bean is aligned with.The prefixes of the apiVersion values that this bean is able to represent.Fields inherited from class org.odpi.openmetadata.frameworks.integration.bitol.common.BitolDocument
DATA_CONTRACT_KIND, DATA_PRODUCT_KIND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return whether this data product is deprecated and should not be used in new implementations.Return the list of input ports (data consumed by the data product).Return the list of management ports.Return the list of output ports (data provided by the data product).Return the timestamp (UTC, ISO 8601) when the data product was created.Return the list of support and communication channels.Return the alternative names for this data product.getTeam()Return the team responsible for the data product.getType()Return the architectural type of the data product, for example sourceAligned, aggregate or consumerAligned.inthashCode()Return hash code based on properties.booleanReturn whether the apiVersion of this document is one that this bean is able to represent.voidsetDeprecated(Boolean deprecated) Set up whether this data product is deprecated and should not be used in new implementations.voidsetInputPorts(List<DataProductInputPort> inputPorts) Set up the list of input ports (data consumed by the data product).voidsetManagementPorts(List<DataProductManagementPort> managementPorts) Set up the list of management ports.voidsetOutputPorts(List<DataProductOutputPort> outputPorts) Set up the list of output ports (data provided by the data product).voidsetProductCreatedTs(String productCreatedTs) Set up the timestamp (UTC, ISO 8601) when the data product was created.voidsetSupport(List<BitolSupportChannel> support) Set up the list of support and communication channels.voidsetSynonyms(List<BitolSynonym> synonyms) Set up the alternative names for this data product.voidSet up the team responsible for the data product.voidSet up the architectural type of the data product, for example sourceAligned, aggregate or consumerAligned.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.bitol.common.BitolDocument
getApiVersion, getAuthoritativeDefinitions, getContext, getCustomProperties, getDescription, getDomain, getId, getKind, getName, getStatus, getTags, getTenant, getVersion, setApiVersion, setAuthoritativeDefinitions, setContext, setCustomProperties, setDescription, setDomain, setId, setKind, setName, setStatus, setTags, setTenant, setVersion
-
Field Details
-
CURRENT_API_VERSION
The version of the Open Data Product Standard that this bean is aligned with. It is the default apiVersion for new documents.- See Also:
-
SUPPORTED_API_VERSION_PREFIXES
The prefixes of the apiVersion values that this bean is able to represent. The v0.9.0 pre-release has the same structure as v1.0.0.
-
-
Constructor Details
-
DataProduct
public DataProduct()Default constructor
-
-
Method Details
-
getInputPorts
Return the list of input ports (data consumed by the data product).- Returns:
- list of input ports
-
setInputPorts
Set up the list of input ports (data consumed by the data product).- Parameters:
inputPorts- list of input ports
-
getOutputPorts
Return the list of output ports (data provided by the data product).- Returns:
- list of output ports
-
setOutputPorts
Set up the list of output ports (data provided by the data product).- Parameters:
outputPorts- list of output ports
-
getManagementPorts
Return the list of management ports.- Returns:
- list of management ports
-
setManagementPorts
Set up the list of management ports.- Parameters:
managementPorts- list of management ports
-
getSupport
Return the list of support and communication channels.- Returns:
- list of support channels
-
setSupport
Set up the list of support and communication channels.- Parameters:
support- list of support channels
-
getTeam
Return the team responsible for the data product.- Returns:
- team structure
-
setTeam
Set up the team responsible for the data product.- Parameters:
team- team structure
-
getProductCreatedTs
Return the timestamp (UTC, ISO 8601) when the data product was created.- Returns:
- string timestamp
-
setProductCreatedTs
Set up the timestamp (UTC, ISO 8601) when the data product was created.- Parameters:
productCreatedTs- string timestamp
-
hasSupportedApiVersion
public boolean hasSupportedApiVersion()Return whether the apiVersion of this document is one that this bean is able to represent.- Specified by:
hasSupportedApiVersionin classBitolDocument- Returns:
- boolean flag
-
getType
Return the architectural type of the data product, for example sourceAligned, aggregate or consumerAligned.- Returns:
- String
-
setType
Set up the architectural type of the data product, for example sourceAligned, aggregate or consumerAligned.- Parameters:
type- String
-
getDeprecated
Return whether this data product is deprecated and should not be used in new implementations.- Returns:
- Boolean
-
setDeprecated
Set up whether this data product is deprecated and should not be used in new implementations.- Parameters:
deprecated- Boolean
-
getSynonyms
Return the alternative names for this data product.- Returns:
- List
-
setSynonyms
Set up the alternative names for this data product.- Parameters:
synonyms- List
-
toString
Standard toString method.- Overrides:
toStringin classBitolDocument- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classBitolDocument- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classBitolDocument- Returns:
- int
-