[Building Sakai] Sakai new Tool - currentUser

John Bush jbush at anisakai.com
Mon Feb 10 07:50:07 PST 2014


Are you sure that sakai' request filter is being used on every
request, without that you are dead in the water.  Might want to review
your web.xml.

On Mon, Feb 10, 2014 at 5:31 AM, Jaco Gillman <jaco at opencollab.co.za> wrote:
> Hi All
>
> I am in the process of creating a new Sakai Tool. Programmatically creating
> course Sites, adding users, creating groups etc etc.
>
> When I select the tool as Admin, my first request contains this admin user,
> but all other requests inside my tool return a User object from
> userDirectoryService.getCurrentUser(); with no ID or EID value. I then tried
> to set this user on the HttpSession, but again, once I enter my tool's
> context, and any other controller method, the user object is no where to be
> found on the session. Some of my previous emails mentioned the fact that I
> struggled to create Course Site, add users due to Permission restrictions.
>
>
> I used the Sakai archetype to create the tool.  I have created a Service
> interface, with which my tool's frond-end integrates with, and in my Service
> implementation I integrate with
>
>
> Regards,
>
> Jaco Gillman
>
> Java Developer
>
> opencollab
>
> Tel: +27 21 970 4017  |  Fax: +27 21 914 3098
>
> Email: jaco at opencollab.co.za  |  Skype: gillmanjc
>
> Web: www.opencollab.co.za
>
>
> ________________________________
> See OpenCollab email disclaimer at
> http://www.opencollab.co.za/email-disclaimer
> _______________________________________________
> 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"



-- 
John Bush
602-490-0470

** This message is neither private nor confidential in fact the US
government is storing it in a warehouse located in Utah for future
data mining use cases should they arise. **


More information about the sakai-dev mailing list