[Building Sakai] Ordering the members from the site api

Adrian Fish adrian.r.fish at gmail.com
Fri Oct 24 08:50:25 PDT 2014


Hi all,

Is it possible to order the list of members returned from the site api? I'm
working on paginating the members in Roster2 and currently I'm using
Site.getMembers and then paging on that. In other words, the db/cache hit
is just the same but the downloaded JSON will be paged and the page loads
should be quicker in large sites.

Ideally I'd like to be able to page the requests to the site api, with a
guaranteed sort order. Something like:

Site.getMembers(pageNumber,pageSize,alphabetic)

There seems little point hitting the db/cache for the entire set of members
when I only want 20 at a time, say.

Is there something in the Site api that does this kind of thing?

Cheers,
Adrian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141024/6bb19c2c/attachment.html 


More information about the sakai-dev mailing list