logo       

RE: Getting the list of sites a user can access? (2.2): msg#00752

cms.sakai.devel

Subject: RE: Getting the list of sites a user can access? (2.2)

I found the following:
SiteService.getSites(
org.sakaiproject.service.legacy.site.SiteService.SelectionType.ACCESS,
null, search, null,
org.sakaiproject.service.legacy.site.SiteService.SortType.TITLE_ASC, new
PagingPosition(first, last));

And

SiteService.getSites(org.sakaiproject.service.legacy.site.SiteService.Se
lectionType.JOINABLE, null, null, null,
org.sakaiproject.service.legacy.site.SiteService.SortType.TITLE_ASC,
null);

These both seem to be pretty much the same as what I am using
(especially the second one) except that I am injecting the SiteService
and the jws code appears to be using the cover:
this.siteService.getSites(SiteService.SelectionType.ACCESS, null, null,
null, SiteService.SortType.TITLE_ASC, null);

Maybe it is because I am using it in the mercury portal?
Any ideas?
-AZ

--
Aaron Zeckoski (aaronz@xxxxxx)
Lead Developer - Learning Technologies - Virginia Tech

> -----Original Message-----
> From: Charles Severance [mailto:csev@xxxxxxxxx]
> Sent: Friday, April 28, 2006 9:17 AM
> To: sakai-dev sakai-dev
> Cc: Zeckoski, Aaron
> Subject: Re: Getting the list of sites a user can access? (2.2)
>
> Take a look at SakaiSite.jws in the web services area.
>
> /Chuck
>
> On Apr 28, 2006, at 8:56 AM, Zeckoski, Aaron wrote:
>
> > What is the right way of a getting a list of Site objects that a
user
> > has access to in Sakai 2.2? I tried the following but I keep
> > getting an
> > empty list. (siteService is injected)
> >
> > siteService.getSites(SiteService.SelectionType.ACCESS, null, null,
> > null,
> > SiteService.SortType.TITLE_ASC, null);
> >
> > Is there something in the presence stuff that will do this? Does
this
> > include the current site for the user or not?
> >
> > -AZ
> >
> > --
> > Aaron Zeckoski (aaronz@xxxxxx)
> > Lead Developer - Learning Technologies - Virginia Tech
> >
> > ----------------------
> > This automatic notification message was sent by Sakai Collab
> > (http://collab.sakaiproject.org/portal) from the DG: Development
site.
> > You can modify how you receive notifications at My Workspace >
> > Preferences.
> >
> >
> >

----------------------
This automatic notification message was sent by Sakai Collab
(http://collab.sakaiproject.org/portal) from the DG: Development site.
You can modify how you receive notifications at My Workspace > Preferences.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise