[Building Sakai] How to get creator's user_id of a particular assignment using we-service

Mark J. Norton markjnorton at earthlink.net
Wed Oct 10 05:04:10 PDT 2012


To get an assignment, use the Assignment service.  If you have the 
assignment id, you can get it with 
AssignmentService.getAssignment(assignmentId).  If you have the title, 
get an iterator with AssignmentService.getAssignments(courseId) and scan 
for the correct assignment in that course.

Once you have an Assignment, use Assignment.getCreator() to get the 
userId of the person who created it.

- Mark Norton

On 10/10/2012 4:46 AM, Khan wrote:
> Dear All
>
>
> I want to get creator's user_id of a particular assignment using 
> we-service.
>
> I have a course site with 3 instructors, each creates their own 
> assignments, using web-service I want to print user_id of instructor 
> who created a particular assignment.
>
> e.g., course site with Site_ID "CS101SAKAI", assignment title "Java 
> Script Testing Lab", I want return creator of that assignment like 
> following
>
> String getAssignmentCreator(String site_id, String assignment_title)
> {
> ........
> ......
> return assignmentCreator;  //"zeshaan.murtaza"
> }
>
>
> Any help please ?
>
>
>
> _______________________________________________
> 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/20121010/4a39fdb0/attachment.html 


More information about the sakai-dev mailing list