[Building Sakai] take the value of site_id
Steve Swinsburg
s.swinsburg at lancaster.ac.uk
Wed May 13 09:36:54 PDT 2009
For a tool in a site, you can get the siteId via the ToolManager and
Placement:
public String getCurrentSiteId(){
return toolManager.getCurrentPlacement().getContext();
}
Here's the Javadocs as well:
http://source.sakaiproject.org/release/2.5.4/apidocs/
cheers,
Steve
---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT
email: s.swinsburg at lancaster.ac.uk
phone: +44 (0) 1524 594870
On 13 May 2009, at 17:32, menjuanpablo wrote:
>
> hi,
> how can I take the value of actual site_id (tool site) for my tool?
> in order to make comparisons
> --
> View this message in context: http://www.nabble.com/take-the-value-of-site_id-tp23525450p23525450.html
> Sent from the Sakai - Development mailing list archive at Nabble.com.
>
> _______________________________________________
> 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/20090513/3010b8f0/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2437 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090513/3010b8f0/attachment.bin
More information about the sakai-dev
mailing list