Class GetRelationshipExecutor
java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetRelationshipExecutor
- All Implemented Interfaces:
- RepositoryExecutor
GetRelationshipExecutor provides the executor for the isRelationshipKnown and getRelationship methods.
- 
Field SummaryFields inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBasemethodName, userId
- 
Constructor SummaryConstructorsConstructorDescriptionGetRelationshipExecutor(String userId, String relationshipGUID, Date asOfTime, AuditLog auditLog, String methodName) Constructor takes the parameters for the request.GetRelationshipExecutor(String userId, String relationshipGUID, AuditLog auditLog, String methodName) Constructor takes the parameters for the request.
- 
Method SummaryModifier and TypeMethodDescriptionReturn a requested relationship.Return a historical version of a relationship.Returns a boolean indicating if the relationship is stored in the metadata collection.booleanissueRequestToRepository(String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action for the supplied repository.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBasegetMethodNameMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutoraugmentResultFromRepository, getResultsForAugmentation
- 
Constructor Details- 
GetRelationshipExecutorpublic GetRelationshipExecutor(String userId, String relationshipGUID, AuditLog auditLog, String methodName) Constructor takes the parameters for the request.- Parameters:
- userId- unique identifier for requesting user
- relationshipGUID- unique identifier (guid) for the relationship
- auditLog- logging destination
- methodName- calling method
 
- 
GetRelationshipExecutorpublic GetRelationshipExecutor(String userId, String relationshipGUID, Date asOfTime, AuditLog auditLog, String methodName) Constructor takes the parameters for the request.- Parameters:
- userId- unique identifier for requesting user.
- relationshipGUID- unique identifier (guid) for the new entity's type.
- asOfTime- is this a historical query.
- auditLog- logging destination
- methodName- calling method
 
 
- 
- 
Method Details- 
issueRequestToRepositorypublic boolean issueRequestToRepository(String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action for the supplied repository. Create requests occur in the first repository that accepts the call. Some repositories may produce exceptions. These exceptions are saved and will be returned if there are no positive results from any repository.- Specified by:
- issueRequestToRepositoryin interface- RepositoryExecutor
- Specified by:
- issueRequestToRepositoryin class- RepositoryExecutorBase
- Parameters:
- metadataCollectionId- unique identifier for the metadata collection for the repository
- metadataCollection- metadata collection object for the repository
- Returns:
- boolean true means that the required results have been achieved
 
- 
isRelationshipKnownpublic Relationship isRelationshipKnown() throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedExceptionReturns a boolean indicating if the relationship is stored in the metadata collection.- Returns:
- relationship details if the relationship is found in the metadata collection; otherwise return null
- Throws:
- InvalidParameterException- the guid is null.
- RepositoryErrorException- there is a problem communicating with the metadata repository where the metadata collection is stored.
- UserNotAuthorizedException- the userId is not permitted to perform this operation.
 
- 
getRelationshippublic Relationship getRelationship() throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, UserNotAuthorizedExceptionReturn a requested relationship.- Returns:
- a relationship structure.
- Throws:
- InvalidParameterException- the guid is null.
- RepositoryErrorException- there is a problem communicating with the metadata repository where the metadata collection is stored.
- RelationshipNotKnownException- the metadata collection does not have a relationship with the requested GUID stored.
- UserNotAuthorizedException- the userId is not permitted to perform this operation.
 
- 
getRelationshipAsOfTimepublic Relationship getRelationshipAsOfTime() throws InvalidParameterException, RepositoryErrorException, RelationshipNotKnownException, FunctionNotSupportedException, UserNotAuthorizedExceptionReturn a historical version of a relationship.- Returns:
- Relationship structure.
- Throws:
- InvalidParameterException- the guid or date is null or the date is for a future time.
- RepositoryErrorException- there is a problem communicating with the metadata repository where the metadata collection is stored.
- RelationshipNotKnownException- the requested entity instance is not known in the metadata collection at the time requested.
- FunctionNotSupportedException- the repository does not support the asOfTime parameter.
- UserNotAuthorizedException- the userId is not permitted to perform this operation.
 
 
-