[Building Sakai] Tool Permissions

Nkululeko Phakela nonkululeko.phakela at wits.ac.za
Tue Aug 16 02:29:44 PDT 2011


Hi Steve,

This is very helpful. I'm more comfortable with jsp now but in time I
will learn how to use Wicket. The tool we have developed is almost done
and the only remaining part was to put the Permissions page.

Thank you,
Nguni


On Tue, 2011-08-16 at 19:12 +1000, Steve Swinsburg wrote:
> Hi Nguni,
> 
> 
> I don't know of a JSP example, here's one in RSF that is pretty easy
> to follow:
> https://source.sakaiproject.org/svn//polls/trunk/tool/src/java/org/sakaiproject/poll/tool/producers/PermissionsProducer.java
> 
> 
> See fillComponents. I don't normally recommend RSF though since it
> isn't very well supported anymore. I prefer Apache Wicket myself, but
> the logic is the same, get the info from the PermissionsHelper and
> present it..
> 
> 
> cheers,
> Steve
> 
> 
> 
> 
> On 16/08/2011, at 5:48 PM, Nkululeko Phakela wrote:
> 
> > Hi Steve,
> > 
> > I will take a look at that. I am using jsp. And yes, I was looking
> > around for some code samples. I would very much appreciate it if you
> > have an idea of where to look.
> > 
> > Thanks,
> > Nguni
> > 
> > On Tue, 2011-08-16 at 09:01 +1000, Steve Swinsburg wrote:
> > > Hi Nguni,
> > > 
> > > You can use the PermissionsHelper available in the authz.api
> > > package, but a code sample might be best to guide you. What are
> > > you using for your presentation layer? Ie JSP, Wicket, RSF,
> > > Velocity etc.
> > > 
> > > cheers,
> > > Steve
> > > 
> > > 
> > > On 15/08/2011, at 6:04 PM, Nkululeko Phakela wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > I am new to Sakai and trying to get my feet wet in developing
> > > > tools. I
> > > > would like to have a link that says Permissions, and in this
> > > > page I
> > > > would like to display all the permissions that an Instructor,
> > > > Student
> > > > and Teaching Assistant would have for this tool. What is the
> > > > best way to
> > > > accomplish this? Any help would be appreciated.
> > > > 
> > > > Regards,
> > > > Nguni
> > > > 
> > > > --
> > > > Nkululeko Phakela
> > > > Software Developer
> > > > 011 717 7167
> > > > eLearning Support and Innovation (eLSI)
> > > > Witwatersrand University
> > > > Braamfontein, Johannesburg
> > > > <html><p><font face = "verdana" size = "0.8" color = "navy">This
> > > > communication is intended for the addressee only. It is
> > > > confidential. If you have received this communication in error,
> > > > please notify us immediately and destroy the original message.
> > > > You may not copy or disseminate this communication without the
> > > > permission of the University. Only authorized signatories are
> > > > competent to enter into agreements on behalf of the University
> > > > and recipients are thus advised that the content of this message
> > > > may not be legally binding on the University and may contain the
> > > > personal views and opinions of the author, which are not
> > > > necessarily the views and opinions of The University of the
> > > > Witwatersrand, Johannesburg. All agreements between the
> > > > University and outsiders are subject to South African Law unless
> > > > the University agrees in writing to the
> > > > contrary.</font></p></html>
> > > > 
> > > > _______________________________________________
> > > > 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"
> > > 
> > 
> > --
> > Nkululeko Phakela
> > Software Developer
> > 011 717 7167
> > eLearning Support and Innovation (eLSI)
> > Witwatersrand University
> > Braamfontein, Johannesburg
> > <html><p><font face = "verdana" size = "0.8" color = "navy">This
> > communication is intended for the addressee only. It is
> > confidential. If you have received this communication in error,
> > please notify us immediately and destroy the original message. You
> > may not copy or disseminate this communication without the
> > permission of the University. Only authorized signatories are
> > competent to enter into agreements on behalf of the University and
> > recipients are thus advised that the content of this message may not
> > be legally binding on the University and may contain the personal
> > views and opinions of the author, which are not necessarily the
> > views and opinions of The University of the Witwatersrand,
> > Johannesburg. All agreements between the University and outsiders
> > are subject to South African Law unless the University agrees in
> > writing to the contrary.</font></p></html>
> > 
> > 
> 
> 

-- 
Nkululeko Phakela 
Software Developer 
011 717 7167 
eLearning Support and Innovation (eLSI) 
Witwatersrand University 
Braamfontein, Johannesburg
<html><p><font face = "verdana" size = "0.8" color = "navy">This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary.</font></p></html>



More information about the sakai-dev mailing list