Class AssetCatalogConverter<B>

java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.accessservices.assetcatalog.converters.AssetCatalogConverter<B>

public class AssetCatalogConverter<B> extends org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
AssetConverter is a helper class that maps the OMRS objects to Asset Catalog model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssetCatalogConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
    Instantiates a new Asset Catalog converter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChildElement(org.odpi.openmetadata.accessservices.assetcatalog.model.Element parentElement, org.odpi.openmetadata.accessservices.assetcatalog.model.Element element)
    Method use to add the parent element to the current element in the built context tree
    void
    addContextElement(org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement assetCatalogItemElement, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Method use to add to the context of the given entity
    void
    addElement(org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement assetCatalogItemElement, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Add an element in the context.
    org.odpi.openmetadata.accessservices.assetcatalog.model.Elements
    buildAssetElements(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Create an Asset Element from the Entity Details
    List<org.odpi.openmetadata.accessservices.assetcatalog.model.Classification>
    convertClassifications(List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> classificationsFromEntity)
    Convert a list of Classifications from the OMRS model to Asset Catalog OMAS model
    org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship
    convertRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship rel)
    Method used to convert the relationship from the OMRS model to AC OMAS model
    List<org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship>
    convertRelationships(List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships)
    Method used to covert a list of relationships from OMRS model to AC OMAS model
    org.odpi.openmetadata.accessservices.assetcatalog.model.Type
    convertType(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef openType)
    Method used to convert TypeDef to Type object from the Asset Catalog OMAS
    org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean
    getAssetCatalogBean(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Method used to convert the Entity Details to Asset Catalog OMAS Model - Asset Description object
    org.odpi.openmetadata.accessservices.assetcatalog.model.Element
    getLastNode(org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement assetCatalogItemElement)
    Returns the last node added in the context

    Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter

    getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetCatalogConverter

      public AssetCatalogConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Instantiates a new Asset Catalog converter.
      Parameters:
      repositoryHelper - the repository helper
      serviceName - the service name
      serverName - the server name
  • Method Details

    • getAssetCatalogBean

      public org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean getAssetCatalogBean(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
      Method used to convert the Entity Details to Asset Catalog OMAS Model - Asset Description object
      Parameters:
      entityDetail - entityDetails object
      Returns:
      Asset Description object
    • convertRelationships

      public List<org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship> convertRelationships(List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships)
      Method used to covert a list of relationships from OMRS model to AC OMAS model
      Parameters:
      relationships - list of relationships - OMRS model
      Returns:
      a list of AC OMAS relationships objects
    • convertRelationship

      public org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship convertRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship rel)
      Method used to convert the relationship from the OMRS model to AC OMAS model
      Parameters:
      rel - relationship in the OMRS model
      Returns:
      a relationship in AC OMAS model
    • convertClassifications

      public List<org.odpi.openmetadata.accessservices.assetcatalog.model.Classification> convertClassifications(List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> classificationsFromEntity)
      Convert a list of Classifications from the OMRS model to Asset Catalog OMAS model
      Parameters:
      classificationsFromEntity - - list of classification in the repository services model
      Returns:
      list of classifications in the AC OMAS model
    • addElement

      public void addElement(org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement assetCatalogItemElement, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
      Add an element in the context. If the context is null, the current element becomes the root of the context
      Parameters:
      assetCatalogItemElement - the context
      entityDetail - entity details of the new element
    • getLastNode

      public org.odpi.openmetadata.accessservices.assetcatalog.model.Element getLastNode(org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement assetCatalogItemElement)
      Returns the last node added in the context
      Parameters:
      assetCatalogItemElement - given context
      Returns:
      the last element
    • addChildElement

      public void addChildElement(org.odpi.openmetadata.accessservices.assetcatalog.model.Element parentElement, org.odpi.openmetadata.accessservices.assetcatalog.model.Element element)
      Method use to add the parent element to the current element in the built context tree
      Parameters:
      parentElement - parent element from the context
      element - a child element
    • addContextElement

      public void addContextElement(org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogItemElement assetCatalogItemElement, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
      Method use to add to the context of the given entity
      Parameters:
      assetCatalogItemElement - asset element that contains the current context
      entityDetail - entity details
    • convertType

      public org.odpi.openmetadata.accessservices.assetcatalog.model.Type convertType(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef openType)
      Method used to convert TypeDef to Type object from the Asset Catalog OMAS
      Parameters:
      openType - type definition
      Returns:
      the Type object
    • buildAssetElements

      public org.odpi.openmetadata.accessservices.assetcatalog.model.Elements buildAssetElements(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
      Create an Asset Element from the Entity Details
      Parameters:
      entityDetail - entityDetails
      Returns:
      an AssetElement object