Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
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 |