Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mevir
Copy link

@mevir mevir commented Jul 27, 2020

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 .

If no `PageSpecification` is provided to the `VaultService.queryBy(...)` function an exception is thrown if the number of results exceeds the `DEFAULT_PAGE_SIZE` vault configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant