[Building Sakai] Adding method to Site Service not seen in other web-apps

Steve Swinsburg steve.swinsburg at gmail.com
Tue May 8 15:53:04 PDT 2012


Hi,

You'll need to ensure that the role of the user that is making the change has the correct permission. This will allow the security check to pass.  IIRC, for changing the description of a site, this is the site.upd permission, however that is tied to a number of other site modifications. 

You'd need more fine grained control:
https://jira.sakaiproject.org/browse/SAK-7768

Your other issue is probably to due with duplicate jars in shared lib, and Tomcat picking the first (generally older) version.

cheers,
Steve





On 09/05/2012, at 5:10 AM, Me wrote:

> Good afternoon,
>  
> I have been requested at work to modify some code that would allow a TA the ability to change the description, (as well as other roles to change various items of a site).  Although I was able to add it my code, they both used Kernel's SiteService's save() or saveSiteInfo()'s methods.  In these methods there is a lock on the permissions to not allow a TA (or by save() other groups) to modify, and I received a lock error in my logs.  I noticed that my web-app code, web's IframeAction, that it uses the SiteService's cover.  I went into the SiteService api class and added a similar method (ie save2() and saveSiteInfo2()) and then added those methods into the SiteService cover class.  I also added the methods to the BaseSiteService class which implements the SiteService class.  In this implementation I removed the lock.
> I compiled the Kernel webapp (and the Kernel-deploy webapp) and they compiled correctly.  However, when I tried using these new methods in the web app and ran "mvn install" I received an error that it could not find my new class. If I modify a method it picks it up, but not if I add one.
> I have even gone into the .m2 maven repository and deleted kernel and kernel-deploy and went again ran mvn install, and received the same error (on web).
>  
> Am I missing something, or is there another step that I need to take? 
>  
> Thank you for your time and expertise,
> Shlomo
> _______________________________________________
> 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/20120509/856c4f49/attachment.html 


More information about the sakai-dev mailing list