[Building Sakai] How to get Current CourseName/CourseID from the currently opened Page in our java code in Other tools

Steve Swinsburg steve.swinsburg at gmail.com
Sat Feb 12 02:52:19 PST 2011


Hi Gautham,

Do you mean the current site ID and title?

public String getCurrentSiteId(){
	return toolManager.getCurrentPlacement().getContext();
}

For title, use this to get the Site from the SiteService and then look up the title.

You want to take a look at the Kernel javadocs.

cheers,
Steve

On 11/02/2011, at 10:52 PM, Gautham wrote:

> 
> 
> Hi Steve/all,
> 
> How to get Current CourseName/CourseID from the currently opened Page in our
> java code in Other tools
> 
> or
> 
> How to get Current CourseName/CourseID in our java code when we are in
> subpages of Courses.
> 
> Please specify the Sakai api classes/tools which will provide this
> Information.
> 
> Any Information to get solution will be highly appreciated. 
> 
> 
> Regards,
> Gautham
> -- 
> View this message in context: http://old.nabble.com/How-to-get-Current-CourseName-CourseID-from-the-currently-opened-Page-in-our-java-code-in-Other-tools-tp30900639p30900639.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/20110212/649c5da9/attachment.html 


More information about the sakai-dev mailing list