Whereas the REST API allows to do the following:
http://localhost:8080/nuxeo/site/api/v1/user/search?q=*&pageSize=2000¤tPageIndex=0
This cannot be done using the Java Client.
Looking at UserManagerAPI the interface only supports a query parameter:
@GET("user/search") Call<Users> searchUser(@Query("q") String query);
Looking at the server side at PaginableObject:
@Override protected void initialize(Object... args) { super.initialize(args); final HttpServletRequest request = ctx.getRequest(); currentPageIndex = extractLongParam(request, "currentPageIndex", 0L); pageSize = extractLongParam(request, "pageSize", 50L); maxResults = request.getParameter("maxResults"); }
The page size is set to 50 when not present in the request parameters.
Ideally, it should be possible to pass the currentPageIndex, pageSize and maxResults parameters