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 com.atlassian.crowd.exception.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 EntityQuerycom.atlassian.crowd.exception.OperationFailedExceptionpublic <V extends PageableGraphList<T>,T> List<T> fetchAllMatchingResults(V firstPage, Predicate<T> filter) throws com.atlassian.crowd.exception.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 matchcom.atlassian.crowd.exception.OperationFailedExceptionpublic <V extends PageableGraphList<T>,T> List<T> fetchAllResults(V firstPage) throws com.atlassian.crowd.exception.OperationFailedException
V - Class representing a page of resultsT - Class representing the entries contained in a pagefirstPage - The first page of the resultscom.atlassian.crowd.exception.OperationFailedExceptionpublic <V extends PageableGraphList<T>,T> Optional<T> pageForElement(V firstPage, Predicate<T> predicate) throws com.atlassian.crowd.exception.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 matchedcom.atlassian.crowd.exception.OperationFailedExceptionpublic <V extends PageableDeltaQueryGraphList<T>,T> GraphDeltaQueryResult<T> fetchAllDeltaQueryResults(V firstPage) throws com.atlassian.crowd.exception.OperationFailedException
Copyright © 2023 Atlassian. All rights reserved.