|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
[Building Sakai] Course Management APIDear 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@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
|
|
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:
_______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
|
|
Re: [Building Sakai] Course Management APIDear David,
I am using 2.6.1
Many Thanks~
_______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
|
|
Re: [Building Sakai] Course Management APIDear 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.
_______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
|
|
Re: [Building Sakai] Course Management APIHi 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@... > 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@... > http://collab.sakaiproject.org/mailman/listinfo/sakai-dev > > TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" > sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
|
|
Re: [Building Sakai] Course Management APIDear David,
It works! Many Thanks!!! Best Regards, Sam Chow RA@LingNanUniversity ----- Original Message ----- From: "David Horwitz" <david.horwitz@...> To: "Sam Chow" <samchow@...> Cc: <sakai-dev@...> 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@... >> 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@... >> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev >> >> TO UNSUBSCRIBE: send email to >> sakai-dev-unsubscribe@... with a subject of >> "unsubscribe" >> > _______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe" |
| Free embeddable forum powered by Nabble | Forum Help |