public abstract class RepositoryIteratorForEntities extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<EntityDetail> |
entitiesCache |
protected String |
entityTypeGUID |
protected String |
entityTypeName |
protected String |
methodName |
protected int |
pageSize |
protected RepositoryHandler |
repositoryHandler |
protected int |
startingFrom |
protected String |
userId |
| Constructor and Description |
|---|
RepositoryIteratorForEntities(RepositoryHandler repositoryHandler,
String userId,
String entityTypeGUID,
String entityTypeName,
int startingFrom,
int pageSize,
String methodName)
Constructor takes the parameters used to call the repository handler.
|
| Modifier and Type | Method and Description |
|---|---|
EntityDetail |
getNext()
Return the next entity.
|
abstract boolean |
moreToReceive()
Determine if there is more to receive.
|
protected RepositoryHandler repositoryHandler
protected String userId
protected String entityTypeGUID
protected String entityTypeName
protected int startingFrom
protected int pageSize
protected String methodName
protected List<EntityDetail> entitiesCache
public RepositoryIteratorForEntities(RepositoryHandler repositoryHandler, String userId, String entityTypeGUID, String entityTypeName, int startingFrom, int pageSize, String methodName)
repositoryHandler - interface to the open metadata repositories.userId - user making the requestentityTypeGUID - identifier for the type of entity to retrieveentityTypeName - name for the type of entity to retrievestartingFrom - initial position in the stored list.pageSize - maximum number of definitions to return on this call.methodName - name of calling methodpublic abstract boolean moreToReceive()
throws UserNotAuthorizedException,
PropertyServerException
UserNotAuthorizedException - the repository is not allowing the user to access the metadataPropertyServerException - there is a problem in the repositorypublic EntityDetail getNext() throws UserNotAuthorizedException, PropertyServerException
UserNotAuthorizedException - the repository is not allowing the user to access the metadataPropertyServerException - there is a problem in the repositoryCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.