Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2477

allow getMembers paging to get all members with no gaps from client

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.0.patch, 2.5.0, 2.4.1
    • grouperClient
    • None

    Description

       

      params on getMembers:

      autopage true|false     (if should page through, not try to get all, then put all results together in one result)

      autopageOverlap        (how much the resultset should overlap at least)

      Note, set the pageSize as well.  Generally this should be 1000 or 10000.  Note it will fluxuate to get all records.

      Explained here

      https://spaces.at.internet2.edu/pages/viewpage.action?pageId=159979041

       

          GcGetMembers gcGetMembers = new GcGetMembers().addGroupName("apps:box:user")
            .addSubjectAttributeName("NETID").assignAutopage(true);
          gcGetMembers.assignPageSize(10000);
          WsGetMembersResults wsGetMembersResults = gcGetMembers.execute();
          System.out.println("Found " + GrouperClientUtils.length(wsGetMembersResults.getResults()[0].getWsSubjects()));
          for (WsSubject wsSubject : wsGetMembersResults.getResults()[0].getWsSubjects()) {
            System.out.println(wsSubject.getAttributeValue(0));
          }
          System.out.println("Found " + GrouperClientUtils.length(wsGetMembersResults.getResults()[0].getWsSubjects()));
       

       

      Retrieving records: 0 - 12999, pageSize: 13000, pageNumber: 1
      Retrieving records: 12499 - 24997, pageSize: 12499, pageNumber: 2
      Retrieving records: 24496 - 36743, pageSize: 12248, pageNumber: 3
      Retrieving records: 36243 - 48323, pageSize: 12081, pageNumber: 4
      Retrieving records: 47820 - 59774, pageSize: 11955, pageNumber: 5
      Found 59293 

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist