[Building Sakai] How to Get Site ID
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.
On Thu, Oct 1, 2009 at 8:25 PM, Ishtiaq Ahmad <organic.ishtiaq at gmail.com>wrote:
> 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.....
> Ishtiaq Ahmad
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sakai-dev