Java Code Examples for com.microsoft.azure.PagedList#iterator()

The following examples show how to use com.microsoft.azure.PagedList#iterator() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ITManagedStorageAccountKey.java    From azure-keyvault-java with MIT License 5 votes vote down vote up
private RoleDefinition getKeyVaultRole() {
    RoleDefinition keyVaultRole = null;
    PagedList<RoleDefinition> roleDefinitions = graphRbacManager.roleDefinitions().listByScope("\\");
    Iterator<RoleDefinition> roleDefs = roleDefinitions.iterator();
    while (roleDefs.hasNext()) {
        RoleDefinition definition = roleDefs.next();
        if (definition.roleName().equals("Storage Account Key Operator Service Role")) {
            keyVaultRole = definition;
            break;
        }
    }
    return keyVaultRole;
}
 
Example 2
Source File: GroupPagedList.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Creates an instance from a list of resource groups.
 *
 * @param resourceGroupList the list of resource groups
 */
public GroupPagedList(PagedList<ResourceGroup> resourceGroupList) {
    this.resourceGroupItr = resourceGroupList.iterator();
    setCurrentPage(nextPage("dummy"));
}
 
Example 3
Source File: ChildListFlattener.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Creates ChildListFlattener.
 *
 * @param parentList a paged list of parents
 * @param childListLoader {@link ChildListLoader} for fetching child paged list associated any parent
 */
ChildListFlattener(PagedList<ParentT> parentList, ChildListLoader<ParentT, ChildT> childListLoader) {
    this.parentItr = parentList.iterator();
    this.childListLoader = childListLoader;
}