Class GetEntityExecutor
java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetEntityExecutor
- All Implemented Interfaces:
RepositoryExecutor
- Direct Known Subclasses:
GetEntityDetailExecutor,GetEntitySummaryExecutor
GetEntityExecutor provides the common base executor for the getEntityXXX methods. It is focused on managing the classifications.
Its subtypes manage the entity summary or entity detail.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
methodName, userId -
Constructor Summary
ConstructorsConstructorDescriptionGetEntityExecutor(String userId, String entityGUID, ClassificationAccumulator accumulator, String methodName) Constructor takes the parameters for the request. -
Method Summary
Modifier and TypeMethodDescriptionvoidaugmentResultFromRepository(String resultGUID, String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action to augment a result by calling a specific repository.protected voidgetHomeClassifications(OMRSMetadataCollection metadataCollection) Retrieve the home classifications from the repository.Return the results that need further augmentation.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
getMethodName, issueRequestToRepository
-
Field Details
-
entityGUID
-
-
Constructor Details
-
GetEntityExecutor
public GetEntityExecutor(String userId, String entityGUID, ClassificationAccumulator accumulator, String methodName) Constructor takes the parameters for the request.- Parameters:
userId- unique identifier for requesting userentityGUID- unique identifier (guid) for the entityaccumulator- for the requestmethodName- calling method
-
-
Method Details
-
getResultsForAugmentation
Return the results that need further augmentation.- Returns:
- null (if no augmentation of results is required) or a list containing the guids of the results.
-
augmentResultFromRepository
public void augmentResultFromRepository(String resultGUID, String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action to augment a result by calling a specific repository.- Parameters:
resultGUID- unique identifier of result.metadataCollectionId- identifier for the metadata collectionmetadataCollection- metadata collection object for the repository
-
getHomeClassifications
Retrieve the home classifications from the repository.- Parameters:
metadataCollection- repository to issue request to
-