[Building Sakai] Get All Sites

Nguni Phakela nguni52 at gmail.com
Fri May 17 06:50:15 PDT 2013


Hi,

I want to list all the courses that belong to a user, just like in Site
Membership.

I saw in the api that there is something like this:

*getSites<http://source.sakaiproject.org/release/kernel/1.2.2/apidocs/org/sakaiproject/site/api/SiteService.html#getSites(org.sakaiproject.site.api.SiteService.SelectionType,
java.lang.Object, java.lang.String, java.util.Map,
org.sakaiproject.site.api.SiteService.SortType,
org.sakaiproject.javax.PagingPosition)>*(SiteService.SelectionType<http://source.sakaiproject.org/release/kernel/1.2.2/apidocs/org/sakaiproject/site/api/SiteService.SelectionType.html>
 type, Object<http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true>
 ofType, String<http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true>
 criteria, Map<http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true>
<String<http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true>
,String<http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true>
> propertyCriteria, SiteService.SortType<http://source.sakaiproject.org/release/kernel/1.2.2/apidocs/org/sakaiproject/site/api/SiteService.SortType.html>
 sort, PagingPosition<http://source.sakaiproject.org/release/kernel/1.2.2/apidocs/org/sakaiproject/javax/PagingPosition.html>
 page)

How do I use this method to be able to retrieve all the sites that a
specific user belongs to?

Cheers,
-- 
Nguni Phakela
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130517/726c652f/attachment.html 


More information about the sakai-dev mailing list