Class RelationshipHandler
java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.handlers.RelationshipHandler
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.
-
Constructor Summary
ConstructorsConstructorDescriptionRelationshipHandler(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 TypeMethodDescriptionorg.odpi.openmetadata.accessservices.assetcatalog.model.RelationshipgetRelationshipBetweenEntities(String userId, String serverName, String entity1GUID, String entity2GUID, String relationshipType) Fetch relationship between entities details based on its unique identifier of the ends
-
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 componentinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectsassetHandler- provides utilities for manipulating asset catalog objects using a generic handlererrorHandler- provides common validation routines for the other handler classesclockService- 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 userserverName- server nameentity1GUID- Entity guid of the first end of the relationshipentity2GUID- Entity guid of the second end of the relationshiprelationshipType- Type of the relationship- Returns:
- the relationship between entities
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- full path or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-