[Building Sakai] Course Management API
Sam Chow
samchow at ln.edu.hk
Mon Nov 2 17:15:11 PST 2009
Dear David,
It works! Many Thanks!!!
Best Regards,
Sam Chow
RA at LingNanUniversity
----- Original Message -----
From: "David Horwitz" <david.horwitz at uct.ac.za>
To: "Sam Chow" <samchow at ln.edu.hk>
Cc: <sakai-dev at collab.sakaiproject.org>
Sent: Monday, November 02, 2009 5:46 PM
Subject: Re: [Building Sakai] Course Management API
> Hi Sam,
>
> That's one step, what you need to do now is tell maven that that module
> of your tool needs the coursemanagement api. So in the module for the
> part of your tool that uses the API open the pom and in the
> <dependencies> section add:
>
> <dependency>
> <groupId>org.sakaiproject</groupId>
> <artifactId>sakai-coursemanagement-api</artifactId>
> </dependency>
>
>
> regards
>
> David
>
>
> Sam Chow wrote:
>> Dear David,
>>
>> The POM.xml in the root of Sakai source folder, have already got this
>> statement:
>>
>> <module>course-management</module>
>>
>> Is that what you mean?
>>
>> Many Thanks.
>> ----- Original Message -----
>> From: David Horwitz
>> To: Sam Chow
>> Cc: sakai-dev at collab.sakaiproject.org
>> Sent: Monday, November 02, 2009 3:57 PM
>> Subject: Re: [Building Sakai] Course Management API
>>
>>
>> Hi Sam,
>>
>> You will need to add the course management-api to you maven pom.xml so
>> that maven can find it. What version of sakai are you using?
>>
>> David
>>
>> Sam Chow wrote:
>> Dear Sir,
>>
>> I have create a sakai project appliction by using the Sakai App Builder,
>> and i try to retrieve the information of the Acacdemic term. I have
>> import this 2 package:
>>
>> org.sakaiproject.coursemanagement.api.AcademicSession
>> org.sakaiproject.coursemanagement.api.CourseManagementServices;
>>
>> And use this to get the information:
>>
>> protected CourseManagementService cmService;
>> public void setCmService(CourseManagementService cmService){
>> this.cmService = cmService;
>> }
>>
>> And try this in the funciton fillComponents:
>>
>> List<AcademicSession> existingAcademicSessions =
>> cmService.getAcademicSessions();
>>
>>
>> But when i build the project, it have compilation error about the
>> "package org.sakaiproject.coursemanagement.api does not exist".
>> Are they are configurmation i need to make to use the Coursemangment API?
>>
>> Many Thanks!
>>
>>
>> ----------------------------------------------------------------------------
>> _______________________________________________
>> 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"
>>
>
More information about the sakai-dev
mailing list