[Building Sakai] How to Get Site ID

Adrian Fish a.fish at lancaster.ac.uk
Thu Oct 1 03:49:50 PDT 2009


Hi,

You need to use SiteService.getSites using the site title in the 
criteria parameter.

Cheers,

Adrian.

Ishtiaq Ahmad wrote:
> Hi,
> I am adding members to site using Quartz Job.
> I know the site title in which members will be added. Can you please 
> tell me how can I get site id if I know the title of the site.?
>
> I am using ServiceSite API but did't find any function which will 
> return the site id on the basis of site title?
>
> Lets say
>
> SITE_ID                                                             TITLE
> 8c159075-9c79-44f1-abe6-c38a088e1a73              000298-01-0913-1-A-04907
>
>
> I know the title only (000298-01-0913-1-A-04907).
>
> Please tell me any solution or workaround to find site ID.....
> -- 
> Regards,
> Ishtiaq Ahmad
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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"

-- 
==================================
Adrian Fish
Software Engineer
Centre for e-Science
Bowland Tower South C Floor
Lancaster University
Lancaster
LA1 4YW
email: a.fish at lancaster.ac.uk

http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/BLOG/Home
http://confluence.sakaiproject.org/display/AGORA/Home

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a_fish.vcf
Type: text/x-vcard
Size: 289 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091001/c393ae06/attachment.vcf 


More information about the sakai-dev mailing list