|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICoursesService
Deltalearn services related to courses.
Functionalities provided:
| Method Summary | |
|---|---|
ICourseInfo |
getCourseInfo(java.lang.String courseId)
Returns basic information about a course. |
ICourseInfo[] |
getCourseInfos()
Returns basic information about all the imported courses. |
ICourseUserStatus[] |
getCourseStatus(java.lang.String userId)
Returns the status of the all the courses in which a user is registered. |
ICourseStructure |
getCourseStructure(java.lang.String courseId)
Returns the hierarchical structure of a course. |
ICourseInfo[] |
getCoursesUserIsNotRegisteredIn(java.lang.String userId)
Returns basic information about the courses in which a user is not registered. |
ICourseInfo[] |
getCoursesUserIsRegisteredIn(java.lang.String userId)
Returns basic information about the courses in which a user is registered. |
ICourseUserStatus |
getCourseUserStatus(java.lang.String userId,
java.lang.String courseId)
Returns the status of the course in which a user is registered. |
int |
getCourseVersion(java.lang.String courseId)
Returns the version of a course. |
IImportCourseResult |
importCourse(byte[] zipFile)
Imports a course, given a byte array representing a zip containing the course, as defined by the SCORM standard. |
boolean |
isUserRegisteredToCourse(java.lang.String userId,
java.lang.String courseId)
Determines if a user is registered in a course. |
void |
registerUserIntoCourse(java.lang.String userId,
java.lang.String courseId)
Registers a user into a course. |
boolean |
removeCourse(java.lang.String courseId)
Removes a course previously imported. |
void |
unregisterUserFromCourse(java.lang.String userId,
java.lang.String courseId)
Unregisters a user from a course. |
| Method Detail |
|---|
IImportCourseResult importCourse(byte[] zipFile)
zipFile - byte array of the zip file
boolean removeCourse(java.lang.String courseId)
courseId - the id of a course
true is the course was removed,
false otherwise (the course didn't exist
previously)importCourse(byte[])ICourseStructure getCourseStructure(java.lang.String courseId)
courseId - the id of a course
null if the course doesn't existICourseInfo[] getCourseInfos()
ICourseInfo getCourseInfo(java.lang.String courseId)
courseId - the id of the course
int getCourseVersion(java.lang.String courseId)
courseId - the id of a course
void registerUserIntoCourse(java.lang.String userId,
java.lang.String courseId)
userId - the id of a usercourseId - the id of a course
void unregisterUserFromCourse(java.lang.String userId,
java.lang.String courseId)
userId - the id of a usercourseId - the id of a course
boolean isUserRegisteredToCourse(java.lang.String userId,
java.lang.String courseId)
userId - the id of a usercourseId - the id of a course
true if the user is registered in the course,
false otherwiseICourseInfo[] getCoursesUserIsRegisteredIn(java.lang.String userId)
userId - the id of a user
ICourseInfo[] getCoursesUserIsNotRegisteredIn(java.lang.String userId)
userId - the id of a user
ICourseUserStatus getCourseUserStatus(java.lang.String userId,
java.lang.String courseId)
userId - the id of a usercourseId - the id of a user
null if
the user is not registered in the courseICourseUserStatus[] getCourseStatus(java.lang.String userId)
userId - the id of a user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||