[Building Sakai] How to Get Site ID

Steve Swinsburg steve.swinsburg at gmail.com
Thu Oct 1 05:50:56 PDT 2009


Site titles are not uniquely constrained so you can't reliably use them as a
key on which to look up info and assume you only get one result back. That
said, if you did have unique titles so you could just do a DB query from
Quartz and get the ID given the title.
You obviously have the site titles in some external list, it would be best
to record the site ID's along with them so you have all of the info at hand.
You could do a table export from the DB and recreate your list.

cheers,
Steve

On Thu, Oct 1, 2009 at 8:25 PM, Ishtiaq Ahmad <organic.ishtiaq at gmail.com>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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091001/c2ace0a6/attachment.html 


More information about the sakai-dev mailing list