[Building Sakai] How to hide course sites programatically via sql queries.

Steve Swinsburg steve.swinsburg at gmail.com
Tue Jan 22 15:09:51 PST 2013


On quick glance it doesnt look like this is in the API, its code in the tool.

Have a look at UserPrefsTool in the user module, specifically processActionEdit which orders the sites, sets the exclusions from the list of tabs and sets some specifically named properties.

cheers,
Steve

On 23/01/2013, at 1:11 AM, Jehan Badshah <jehan.badshah at nu.edu.pk> wrote:

> Thanks
> 
> How through this API (Preferences APi ) 
> name of java file or any webservice.
> 
> On Tue, Jan 22, 2013 at 5:29 PM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
> Oh right, got it. Use the Preferences APi to do this, not SQL
> 
> Cheers
> Steve
> 
> Sent from my iPhone
> 
> On 22/01/2013, at 21:40, Jehan Badshah <jehan.badshah at nu.edu.pk> wrote:
> 
>> Thanks Steve
>> 
>> I don't want to unpublish it because student will not able to see it.
>> 
>> I want to hide them like user hidding it from prefrences, so in future if instructor or student want to browse some data then they should be able to show/view it.
>> 
>> Thanks
>> 
>> 
>> On Tue, Jan 22, 2013 at 3:18 PM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
>> Hi
>> 
>> You can set the site as unpublished and then only instructors/maintainers can see the site. There is an API method to do it, or just flip the flag in the sakai_site table.
>> 
>> Cheers
>> Steve
>> 
>> Sent from my iPhone
>> 
>> On 22/01/2013, at 21:09, Jehan Badshah <jehan.badshah at nu.edu.pk> wrote:
>> 
>> > Dear all
>> >
>> > How to hide course sites programatically via sql queries.
>> >
>> > I want to hide previous semester courses like hiding via prefrences link.
>> >
>> >
>> > Regards
>> >
>> > _______________________________________________
>> > 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/20130123/69c879c2/attachment.html 


More information about the sakai-dev mailing list