Class GetAllTypesExecutor
java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.GetAllTypesExecutor
- All Implemented Interfaces:
CloneableRepositoryExecutor
,RepositoryExecutor
GetAllTypesExecutor provides the executor for the getAllType executor
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
methodName, userId
-
Constructor Summary
ConstructorDescriptionGetAllTypesExecutor
(String userId, String methodName, String localMetadataCollectionId, AuditLog auditLog, OMRSRepositoryValidator repositoryValidator) Simple public constructor -
Method Summary
Modifier and TypeMethodDescriptiongetClone()
Return a clone of this executor with the same command parameters and accumulator instance.Return the result of the combined requestsboolean
issueRequestToRepository
(String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action for the supplied repository.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.executors.RepositoryExecutorBase
getMethodName
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.RepositoryExecutor
augmentResultFromRepository, getResultsForAugmentation
-
Constructor Details
-
GetAllTypesExecutor
public GetAllTypesExecutor(String userId, String methodName, String localMetadataCollectionId, AuditLog auditLog, OMRSRepositoryValidator repositoryValidator) Simple public constructor- Parameters:
userId
- calling usermethodName
- calling methodlocalMetadataCollectionId
- metadata collection id for the local repositoryauditLog
- logging destinationrepositoryValidator
- validation methods
-
-
Method Details
-
getClone
Return a clone of this executor with the same command parameters and accumulator instance.- Returns:
- clone of this executor
-
issueRequestToRepository
public boolean issueRequestToRepository(String metadataCollectionId, OMRSMetadataCollection metadataCollection) Perform the required action for the supplied 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
-
getResults
public TypeDefGallery getResults() throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedExceptionReturn the result of the combined requests- Returns:
- TypeDefGallery List of different categories of TypeDefs.
- Throws:
InvalidParameterException
- the userId is nullRepositoryErrorException
- there is a problem communicating with the metadata repository.UserNotAuthorizedException
- the userId is not permitted to perform this operation.
-