Class PageableEntityRepositoryExecutorBase
java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.PageableEntityRepositoryExecutorBase
- All Implemented Interfaces:
CloneableRepositoryExecutor
,RepositoryExecutor
- Direct Known Subclasses:
FindEntitiesByClassificationExecutor
,FindEntitiesByPropertyExecutor
,FindEntitiesByPropertyValueExecutor
,FindEntitiesExecutor
,GetEntityDetailHistoryExecutor
PageableEntityRepositoryExecutorBase is the executor base class for find requests that return entities. It is responsible for the
second phase of retrieving a list of entities where repositories that have not returned an entity instance are called to see if they have
disconnected home classifications to add to these entities.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
methodName, userId
-
Method Summary
Modifier and TypeMethodDescriptionvoid
augmentResultFromRepository
(String resultGUID, String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action to augment a result.getResults
(EnterpriseOMRSRepositoryConnector repositoryConnector, OMRSMetadataCollection metadataCollection) Return the results or exception.Return the results that need further augmentation.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
getMethodName, issueRequestToRepository
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.CloneableRepositoryExecutor
getClone
-
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.- Parameters:
resultGUID
- unique identifier of result.metadataCollectionId
- identifier for the metadata collectionmetadataCollection
- metadata collection object for the repository
-
getResults
public List<EntityDetail> getResults(EnterpriseOMRSRepositoryConnector repositoryConnector, OMRSMetadataCollection metadataCollection) throws InvalidParameterException, RepositoryErrorException, TypeErrorException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserNotAuthorizedException Return the results or exception.- Parameters:
repositoryConnector
- enterprise connectormetadataCollection
- enterprise metadata collection- Returns:
- a list of entities matching the supplied criteria; null means no matching entities in the metadata collection.
- Throws:
InvalidParameterException
- a parameter is invalid or null.TypeErrorException
- the type guid passed on the request is not known by the metadata collection.RepositoryErrorException
- there is a problem communicating with the metadata repository where the metadata collection is stored.PropertyErrorException
- the properties specified are not valid for any of the requested types of entity.PagingErrorException
- the paging/sequencing parameters are set up incorrectly.FunctionNotSupportedException
- the repository does not support the asOfTime parameter.UserNotAuthorizedException
- the userId is not permitted to perform this operation.
-