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, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, OpenMetadataAPIGenericHandler<AssetCatalogBean> assetHandler, RepositoryErrorHandler errorHandler, ClockService clockService) Construct the handler information needed to interact with the repository services -
Method Summary
-
Constructor Details
-
RelationshipHandler
public RelationshipHandler(String sourceName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, OpenMetadataAPIGenericHandler<AssetCatalogBean> assetHandler, 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 Relationship getRelationshipBetweenEntities(String userId, String serverName, String entity1GUID, String entity2GUID, String relationshipType) throws InvalidParameterException, UserNotAuthorizedException, 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:
InvalidParameterException
- full path or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-