[Building Sakai] question about siteService.getSites()
Holladay, Bryan Andrew
bahollad at indiana.edu
Fri Feb 26 10:59:32 PST 2010
That looks correct, I'm not sure about PagingPosition(), but if you aren't worried about paging, and just want a list of sites, you can try sending null for that parameter:
ex:
List<Site> searchResults = getSiteService().getSites(type, null, criteria, null, SiteService.SortType.TITLE_ASC, null);
Bryan
On 2/26/10 1:41 PM, "Nicola Monat-Jacobs" <nicola at longsight.com> wrote:
Hi -
I have a question about getSites() - I'm trying to get all the sites (regardless of whether or not the current user is enrolled) that fit a certain criteria - namely that their site titles match a certain substring. The following code seems to work:
String rule = "CHEM";
List<Site> sites = siteService.getSites(SelectionType.ANY, null, rule, null, SortType.NONE, new PagingPosition());
except that only one site is returned (the first one usually). There shouldn't be any paging here, right? Even explicitly setting the paging to false doesn't seem to change matters.
Any thoughts on why only one result would be returned? (There are definitely many sites that fit that criteria in the system.)
Thanks,
Nicola
PS (Thank goodness there's wireless in this igloo!)
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100226/2aaeea37/attachment.html
More information about the sakai-dev
mailing list