corda / accounts

Accounts on Corda
Other
36 stars 38 forks source link

Allow to retrieve the account list via KeyManagementBackedAccountService when the number of accounts exceeds DEFAULT_PAGE_SIZE #100

Open mevir opened 4 years ago

mevir commented 4 years ago

The AccountService interface doesn't provide any way to return paginated results when querying for accounts an the number of the results is indefinite. The fix adds a PageSpecification(1, MAX_PAGE_SIZE) page specification parameter when the number of results returned by the vaultService.queryBy<AccountInfo> is indefinite. This pull request fixes #99 .