java.lang.Object
org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler

public class AssetContextHandler extends Object
The Asset Context Handler provides methods to build graph context for schema elements.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssetContextHandler(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.assetlineage.model.GenericStub> genericHandler, HandlerHelper handlerHelper, List<String> supportedZones, ClockService clockService)
    Construct the handler information needed to interact with the repository services
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext>
    buildAssetContext(String userId, org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity)
    Builds the asset context for a schema element.
    org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext
    buildAssetContext(String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Builds the asset context for a schema element.
    Map<String,org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext>
    buildColumnContext(String userId, org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity)
    Builds the column context for a schema element
    Optional<org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity>
    buildEntityContext(String userId, String guid, String typeDefName)
    Returns the asset entity context in lineage format
    Map<String,org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext>
    buildSchemaElementContext(String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail)
    Builds the context for a schema element without the asset context.

    Methods inherited from class java.lang.Object

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

    • AssetContextHandler

      public AssetContextHandler(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.assetlineage.model.GenericStub> genericHandler, HandlerHelper handlerHelper, List<String> supportedZones, ClockService clockService)
      Construct the handler information needed to interact with the repository services
      Parameters:
      genericHandler - handler for calling the repository services
      handlerHelper - helper handler
      supportedZones - configurable list of zones that Asset Lineage is allowed to retrieve Assets from
      clockService - clock service
  • Method Details

    • buildSchemaElementContext

      public Map<String,org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext> buildSchemaElementContext(String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) throws org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
      Builds the context for a schema element without the asset context.
      Parameters:
      userId - the unique identifier for the user
      entityDetail - the entity for which the context is build
      Returns:
      the context of the schema element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors
    • buildAssetContext

      public Map<String,org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext> buildAssetContext(String userId, org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity) throws org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
      Builds the asset context for a schema element.
      Parameters:
      userId - the unique identifier for the user
      lineageEntity - the entity for which the context is build
      Returns:
      the asset context of the schema element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors
    • buildAssetContext

      public org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext buildAssetContext(String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) throws org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
      Builds the asset context for a schema element.
      Parameters:
      userId - the unique identifier for the user
      entityDetail - the entity for which the context is build
      Returns:
      the asset context of the schema element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors
    • buildColumnContext

      public Map<String,org.odpi.openmetadata.accessservices.assetlineage.model.RelationshipsContext> buildColumnContext(String userId, org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity) throws org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
      Builds the column context for a schema element
      Parameters:
      lineageEntity - column as lineage entity
      Returns:
      column context of the schema element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors
    • buildEntityContext

      public Optional<org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity> buildEntityContext(String userId, String guid, String typeDefName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
      Returns the asset entity context in lineage format
      Parameters:
      userId - the unique identifier for the user
      guid - the guid of the entity for which the context is build
      typeDefName - the type def name of the entity for which the context is build
      Returns:
      the asset entity context in lineage format
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors