Package com.auth0.client.mgmt.filter
Class PageFilter
java.lang.Object
com.auth0.client.mgmt.filter.BaseFilter
com.auth0.client.mgmt.filter.PageFilter
- Direct Known Subclasses:
RolesFilter
Class used to filter the results received when calling an endpoint that supports Pagination.
This class is not thread-safe.
- See Also:
-
Field Summary
Fields inherited from class com.auth0.client.mgmt.filter.BaseFilter
parameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInclude thefromparameter to specify where to start the page selection.withPage(int pageNumber, int amountPerPage) Filter by pagewithTake(int take) Include thetakeparameter to specify the amount of results to return per page.withTotals(boolean includeTotals) Include the query summaryMethods inherited from class com.auth0.client.mgmt.filter.BaseFilter
getAsMap
-
Constructor Details
-
PageFilter
public PageFilter()
-
-
Method Details
-
withPage
Filter by page- Parameters:
pageNumber- the page number to retrieve.amountPerPage- the amount of items per page to retrieve.- Returns:
- this filter instance
-
withTotals
Include the query summary- Parameters:
includeTotals- whether to include or not the query summary.- Returns:
- this filter instance
-
withFrom
Include thefromparameter to specify where to start the page selection. Only applicable for endpoints that support checkpoint pagination.Note: If this or the withTake(int) is specified, any offset paging parameters set via withPage(int, int) or withTotals(boolean) will be disregarded by the API.
- Parameters:
from- the ID from which to start selection. This can be obtained from thenextfield returned from a checkpoint-paginated result.- Returns:
- this filter instance.
-
withTake
Include thetakeparameter to specify the amount of results to return per page. Only applicable for endpoints that support checkpoint pagination.Note: If this or the withFrom(String) is specified, any offset paging parameters set via withPage(int, int) or withTotals(boolean) will be disregarded by the API.
- Parameters:
take- the amount of entries to retrieve per page.- Returns:
- this filter instance.
-