[Building Sakai] Course Management API integration question

Zhen Qian zqian at umich.edu
Thu Feb 11 10:30:17 PST 2010



Nicola: 

In CourseManagement, there is hierarchy of role resolvers:
SectionRoleResolver, CourseOfferingRoleResolver, and CourseSetRoleResolver.
I noticed that there are the latter two from your log message, however, the
SectionRoleResolver is missing. 

Could you please check whether you have the role definition at the Section
level? 

Thanks, 

- Zhen 

On Thu, 11 Feb 2010 13:10:14 -0500, Nicola Monat-Jacobs  wrote: Okay, I
was able to figure out that Worksite Setup calls a bunch of CM methods to
find some sections for the current user, so I went ahead and implemented
getSections() so that the same courses would be returned there too. 
catalina.out indicated that these are found and added to the list of groups
for the current user:  DEBUG: findCourseOfferingRoles: nicola at longsight.com
[1]::sdfdfdff7537x7fs7f (2010-02-11 13:03:24,295
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: adding offering role to Map: course1::Instructor
(2010-02-11
13:03:24,637
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: adding offering role to Map: course2::Instructor (2010-02-11
13:03:24,637
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: adding offering role to Map: course3::Instructor (2010-02-11
13:03:24,637
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: adding offering role to Map: course4::Instructor (2010-02-11
13:03:24,637
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: TEST: getSections: course1 (2010-02-11 13:03:24,650
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: TEST: getSections: course4 (2010-02-11 13:03:24,836
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: TEST: getSections: course2 (2010-02-11 13:03:25,020
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: TEST: getSections: course3 (2010-02-11
13:03:25,213
http-8080-Processor19_org.coursemanagement.LdapCourseManagementService)
DEBUG: Found 4 groups for nicola at longsight.com [2] from resolver
org.sakaiproject.coursemanagement.impl.provider.CourseOfferingRoleResolver
(2010-02-11 13:03:25,402
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)
DEBUG: Adding course1 to groupRoleMap with sakai roleInstructor for user
nicola at longsight.com [3] (2010-02-11 13:03:25,402
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)
DEBUG: Adding course4 to groupRoleMap with sakai roleInstructor for user
nicola at longsight.com [4] (2010-02-11 13:03:25,402
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)
DEBUG: Adding course2 to groupRoleMap with sakai roleInstructor for user
nicola at longsight.com [5] (2010-02-11
13:03:25,402
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)
DEBUG: Adding course3 to groupRoleMap with sakai roleInstructor for user
nicola at longsight.com [6] (2010-02-11 13:03:25,402
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)
DEBUG: Found 0 groups for nicola at longsight.com [7] from resolver
org.sakaiproject.coursemanagement.impl.provider.CourseSetRoleResolver
(2010-02-11 13:03:25,404
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)
DEBUG: ______________getGroupRolesForUser={course1=Instructor,
course4=Instructor, course2=Instructor, course3=Instructor} (2010-02-11
13:03:25,405
http-8080-Processor19_org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider)

 But still - nothing shown to the user in the GUI.  Can anyone let me know
what I am missing here?  Thanks!  
  On Feb 11, 2010, at 9:30 AM, Nicola
Monat-Jacobs wrote: 
  Hi All -  I've never worked with the CM API before, so I'm wondering
perhaps if you folks on the list can give me some guidance. We've got a
Sakai 2.5.x environment and we'd like a very simple CM implementation - l
http://confluence.sakaiproject.org/display/CM/1+Simple+Course+Pattern [8] 
We'd like the faculty to be able to go to Worksite Setup and see the
courses they have available to create/activate. However, although I can see
in catalina.out that our implementation of findCourseOfferingRoles() is
bringing up the relevant courses for Instructors, nothing is being shown to
them in the Worksite Setup tool. What method does Worksite Setup look to to
generate that list? It appears from the documentation that I don't need to
implement Sections if I don't want them.   Thanks!   Nicola Monat-Jacobs
nicola at longsight.com [9]  
  _______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
[10]
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"    

 

Links:
------
[1] mailto:nicola at longsight.com
[2] mailto:nicola at longsight.com
[3] mailto:nicola at longsight.com
[4] mailto:nicola at longsight.com
[5] mailto:nicola at longsight.com
[6] mailto:nicola at longsight.com
[7] mailto:nicola at longsight.com
[8] http://confluence.sakaiproject.org/display/CM/1+Simple+Course+Pattern
[9] mailto:nicola at longsight.com
[10] mailto:sakai-dev at collab.sakaiproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100211/db77dd46/attachment.html 


More information about the sakai-dev mailing list