public class RelationshipHandler extends Object
| Constructor and Description |
|---|
RelationshipHandler(String sourceName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryErrorHandler errorHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
Relationship |
getRelationshipBetweenEntities(String userId,
String entity1GUID,
String entity2GUID,
String relationshipType)
Fetch relationship between entities details based on its unique identifier of the ends
|
public RelationshipHandler(String sourceName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler)
sourceName - name of the componentinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectserrorHandler - provides common validation routines for the other handler classespublic Relationship getRelationshipBetweenEntities(String userId, String entity1GUID, String entity2GUID, String relationshipType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - String unique identifier for the userentity1GUID - Entity guid of the first end of the relationshipentity2GUID - Entity guid of the second end of the relationshiprelationshipType - Type of the relationshipInvalidParameterException - full path or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2020 ODPi. All rights reserved.