java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.handlers.RelationshipHandler

public class RelationshipHandler extends Object
Relationship Handler supports the lookup of the asset's relationship from the repositories. It runs on the server-side of the Asset Catalog OMAS, fetches the relationships using the RepositoryHandler.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RelationshipHandler(String sourceName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler repositoryHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean> assetHandler, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler errorHandler, ClockService clockService)
    Construct the handler information needed to interact with the repository services
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship
    getRelationshipBetweenEntities(String userId, String serverName, String entity1GUID, String entity2GUID, String relationshipType)
    Fetch relationship between entities details based on its unique identifier of the ends

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • RelationshipHandler

      public RelationshipHandler(String sourceName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryHandler repositoryHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean> assetHandler, org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryErrorHandler errorHandler, ClockService clockService)
      Construct the handler information needed to interact with the repository services
      Parameters:
      sourceName - name of the component
      invalidParameterHandler - handler for managing parameter errors
      repositoryHandler - manages calls to the repository services
      repositoryHelper - provides utilities for manipulating the repository services objects
      assetHandler - provides utilities for manipulating asset catalog objects using a generic handler
      errorHandler - provides common validation routines for the other handler classes
      clockService - clock service
  • Method Details

    • getRelationshipBetweenEntities

      public org.odpi.openmetadata.accessservices.assetcatalog.model.Relationship getRelationshipBetweenEntities(String userId, String serverName, String entity1GUID, String entity2GUID, String relationshipType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Fetch relationship between entities details based on its unique identifier of the ends
      Parameters:
      userId - String unique identifier for the user
      serverName - server name
      entity1GUID - Entity guid of the first end of the relationship
      entity2GUID - Entity guid of the second end of the relationship
      relationshipType - Type of the relationship
      Returns:
      the relationship between entities
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - full path or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem