Class GetEntitySummaryExecutor
java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetEntityExecutor
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetEntitySummaryExecutor
- All Implemented Interfaces:
RepositoryExecutor
GetEntitySummaryExecutor provides the executor for the getEntitySummary method.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetEntityExecutor
entityGUID
Fields inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
methodName, userId
-
Constructor Summary
ConstructorDescriptionGetEntitySummaryExecutor
(String userId, String entityGUID, AuditLog auditLog, String methodName) Constructor takes the parameters for the request. -
Method Summary
Modifier and TypeMethodDescriptionReturn the entity and accumulated classifications.boolean
issueRequestToRepository
(String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action for the supplied repository.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetEntityExecutor
augmentResultFromRepository, getHomeClassifications, getResultsForAugmentation
Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
getMethodName
-
Constructor Details
-
GetEntitySummaryExecutor
public GetEntitySummaryExecutor(String userId, String entityGUID, AuditLog auditLog, String methodName) Constructor takes the parameters for the request.- Parameters:
userId
- unique identifier for requesting userentityGUID
- unique identifier (guid) for the entityauditLog
- logging destinationmethodName
- calling method
-
-
Method Details
-
issueRequestToRepository
public 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:
issueRequestToRepository
in interfaceRepositoryExecutor
- Specified by:
issueRequestToRepository
in classRepositoryExecutorBase
- Parameters:
metadataCollectionId
- unique identifier for the metadata collection for the repositorymetadataCollection
- metadata collection object for the repository- Returns:
- boolean true means that the required results have been achieved
-
getEntitySummary
public EntitySummary getEntitySummary() throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, UserNotAuthorizedExceptionReturn the entity and accumulated classifications. The returned entity summary may be from a full entity object or an entity proxy.- Returns:
- EntitySummary structure
- Throws:
InvalidParameterException
- the guid is nullRepositoryErrorException
- there is a problem communicating with the metadata repository where the metadata collection is stored.EntityNotKnownException
- the requested entity instance is not known in the metadata collection.UserNotAuthorizedException
- the userId is not permitted to perform this operation.
-