Class RelatedElementsIterator
java.lang.Object
org.odpi.openmetadata.frameworks.integration.iterator.IntegrationIterator
org.odpi.openmetadata.frameworks.integration.iterator.RelatedElementsIterator
RelatedElementsIterator is used to iterate through the related elements of a particular type within a metadata collection.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.integration.iterator.IntegrationIterator
auditLog, catalogTargetName, connectorName, elementCache, integrationContext, maxPageSize, metadataCollectionGUID, metadataTypeName, propertyHelper, startFrom, targetPermittedSynchronization -
Constructor Summary
ConstructorsConstructorDescriptionRelatedElementsIterator(String metadataCollectionGUID, String catalogTargetName, String connectorName, String parentGUID, String parentRelationshipTypeName, int parentAtEnd, String attachmentEntityTypeName, IntegrationContext integrationContext, PermittedSynchronization targetPermittedSynchronization, int maxPageSize, AuditLog auditLog) Create the iterator. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanRetrieve information from the open metadata repositories.Methods inherited from class org.odpi.openmetadata.frameworks.integration.iterator.IntegrationIterator
getMemberByQualifiedName, getNextMember, moreToReceive
-
Constructor Details
-
RelatedElementsIterator
public RelatedElementsIterator(String metadataCollectionGUID, String catalogTargetName, String connectorName, String parentGUID, String parentRelationshipTypeName, int parentAtEnd, String attachmentEntityTypeName, IntegrationContext integrationContext, PermittedSynchronization targetPermittedSynchronization, int maxPageSize, AuditLog auditLog) throws UserNotAuthorizedException Create the iterator.- Parameters:
metadataCollectionGUID- unique identifier of the metadata collectioncatalogTargetName- name of targetconnectorName- name of the calling connectorparentGUID- unique identifier of element that the desired results are linked toparentRelationshipTypeName- type of relationship - may be nullparentAtEnd- which end of the relationship to start from: 0 (either); 1 or 2attachmentEntityTypeName- type of element to receiveintegrationContext- clients to access metadatatargetPermittedSynchronization- the synchronization policy for this targetmaxPageSize- max page size for the serverauditLog- logging destination- Throws:
UserNotAuthorizedException- connector has disconnected
-
-
Method Details
-
fillCache
protected boolean fillCache() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionRetrieve information from the open metadata repositories.- Specified by:
fillCachein classIntegrationIterator- Returns:
- boolean where true means there are elements to process.
- Throws:
InvalidParameterException- problem with a parameter valuePropertyServerException- repository not working properlyUserNotAuthorizedException- permissions problem
-