cancel
Showing results for 
Search instead for 
Did you mean: 

searchGroups returns first 100 results

vamirr
Champ on-the-rise
Champ on-the-rise
When performing searchGroups under the authority service, it limits the results to the first 100.  Is this a bug?  How can I get around this?

This is on 3.4.
1 REPLY 1

abarisone
Star Contributor
Star Contributor
Hi Vamirr.
If you take a look to the javadocs you can see that for version 3.4 (unlike 3.3) the are two methods signatures for searchGroups:

    searchGroups

    public ScriptGroup[] searchGroups(java.lang.String shortNameFilter)
    Search for groups in all zones.
    Parameters:
    shortNameFilter - partial match on shortName (* and ?) work. If empty then matches everything.
    Returns:
    the groups matching the query

    searchGroups

    public ScriptGroup[] searchGroups(java.lang.String shortNameFilter, ScriptPagingDetails paging, java.lang.String sortBy)
    Search for groups in all zones.
    Parameters:
    shortNameFilter - partial match on shortName (* and ?) work. If empty then matches everything.
    paging - Paging object with max number to return, and items to skip
    sortBy - What to sort on (authorityName, shortName or displayName)
    Returns:
    the groups matching the query
The latter has a paging parameter that allows you to scroll across results.
Hope this could help

Andrea