public class AzureAdPagingWrapper extends Object
Constructor and Description |
---|
AzureAdPagingWrapper(AzureAdRestClient azureAdRestClient) |
Modifier and Type | Method and Description |
---|---|
<V extends PageableDeltaQueryGraphList<T>,T> |
fetchAllDeltaQueryResults(V firstPage) |
<V extends PageableGraphList<T>,T> |
fetchAllMatchingResults(V firstPage,
Predicate<T> filter)
Will fetch all results from Microsoft Graph that match the specified predicate
|
<V extends PageableGraphList<T>,T> |
fetchAllResults(V firstPage)
Will fetch all results from Microsoft Graph
|
<V extends PageableGraphList<T>,T> |
fetchAppropriateAmountOfResults(V firstPage,
int startIndex,
int maxResults)
Will fetch results from Microsoft Graph until the desired amount of results is reached or until the results are exhausted
|
<V extends PageableGraphList<T>,T> |
pageForElement(V firstPage,
Predicate<T> predicate)
Retrieves the first element matching the specified predicate, if any, paging for it if necessary
|
public AzureAdPagingWrapper(AzureAdRestClient azureAdRestClient)
public <V extends PageableGraphList<T>,T> List<T> fetchAppropriateAmountOfResults(V firstPage, int startIndex, int maxResults) throws OperationFailedException
V
- Class representing a page of resultsT
- Class representing the entries contained in a pagefirstPage
- The first page of the resultsmaxResults
- the amount of results that should be fetched in the same format as used by EntityQuery
OperationFailedException
public <V extends PageableGraphList<T>,T> List<T> fetchAllMatchingResults(V firstPage, Predicate<T> filter) throws OperationFailedException
V
- Class representing a page of resultsT
- Class representing the entries contained in a pagefirstPage
- The first page of the resultsfilter
- the filter that results should matchOperationFailedException
public <V extends PageableGraphList<T>,T> List<T> fetchAllResults(V firstPage) throws OperationFailedException
V
- Class representing a page of resultsT
- Class representing the entries contained in a pagefirstPage
- The first page of the resultsOperationFailedException
public <V extends PageableGraphList<T>,T> Optional<T> pageForElement(V firstPage, Predicate<T> predicate) throws OperationFailedException
V
- Class representing a page of resultsT
- Class representing the entries contained in a pagefirstPage
- The first page of the resultspredicate
- The predicate against which search items will be matchedOperationFailedException
public <V extends PageableDeltaQueryGraphList<T>,T> GraphDeltaQueryResult<T> fetchAllDeltaQueryResults(V firstPage) throws OperationFailedException
OperationFailedException
Copyright © 2021 Atlassian. All rights reserved.