[Building Sakai] what methods to get all course site ids ?

Ishtiaq Ahmad organic.ishtiaq at gmail.com
Thu Oct 1 22:17:41 PDT 2009


try to use
* SelectionType.ANY instead of ** SelectionType.ACCESS in getSites function.

hope it will resolve....

Regards,
ishtiaq Ahmad
*
On Fri, Oct 2, 2009 at 9:58 AM, Small Cat <shadowless4288 at gmail.com> wrote:

> I test it, but it isn't successful :( , and i do'nt know how to fix it . :(
> this is my code in java bean
>
> *private SiteService siteService;
> public void setSiteService(SiteService siteService){
>         this.siteService = siteService;
>     }
> public List<Site> allCourseSites = siteService.getSites(
> SelectionType.ACCESS, null, null, null,SortType.TITLE_ASC, null);
> public String getOneSite(){
>         return allCourseSites.get(0).getTitle();
>     }*
>
> and this is code in .jsp file
>
> *<h:outputText value= " One of many sites is #{TestBean.oneSite}"/>*
>
> when it's run in Sakai, it show only the string " One of many sites is "
> in  .jsp file, but don't show any site's tittle though my sakai has some
> project site & course site ( all of them have 5-10 participants )
>
> Please help me fix it !
>
> 2009/10/1 Steve Swinsburg <steve.swinsburg at gmail.com>
>
>> Hi,
>>
>> yes, in SiteService, the method getSites(). Check out that Class in the
>> API docs.
>>
>> e.g. SiteService.getSites(SelectionType.ACCESS, null, null, null,
>> SortType.TITLE_ASC, null);
>>
>> cheers,
>> Steve
>>
>>
>> On 01/10/2009, at 2:34 PM, Small Cat wrote:
>>
>>
>>>
>>>
>>> Dear all,
>>> How can I get a list of all course sites that a particular user is a
>>> member of ?
>>> Does Sakai suport any APIs to do this ? If yes, where can i find them ?
>>> Thanks and regards !
>>>
>>> _______________________________________________
>>> 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"
>>>
>>
>>
>
> _______________________________________________
> 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"
>



-- 
Regards,
Ishtiaq Ahmad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091002/56949769/attachment.html 


More information about the sakai-dev mailing list