Interface | osid.course.CourseAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | getCourseCatalogId | ||
Description |
Gets the | ||
Return | osid.id.Id | the CourseCatalog Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseCatalog | ||
Description |
Gets the | ||
Return | osid.course.CourseCatalog | the course catalog | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCourses | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Course creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCourseWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | courseRecordTypes | array of course record types |
Return | boolean | true if Course creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | courseRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseFormForCreate | ||
Description |
Gets the course form for creating new courses. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | courseRecordTypes | array of course record types |
Return | osid.course.CourseForm | the course form | |
Errors | NULL_ARGUMENT | courseRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createCourse | ||
Description |
Creates a new | ||
Parameters | osid.course.CourseForm | courseForm | the form for this Course |
Return | osid.course.Course | the new Course | |
Errors | ILLEGAL_STATE | courseForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | courseForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | courseForm did not originate from getCourseFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateCourses | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Course modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseFormForUpdate | ||
Description |
Gets the course form for updating an existing course. A new course form should be requested for each update transaction. | ||
Parameters | osid.id.Id | courseId | the Id of the Course |
Return | osid.course.CourseForm | the course form | |
Errors | NOT_FOUND | courseId is not found | |
NULL_ARGUMENT | courseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateCourse | ||
Description |
Updates an existing course. | ||
Parameters | osid.course.CourseForm | courseForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | courseForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | courseForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | courseForm did not originate from getCourseFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteCourses | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Course deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteCourse | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | courseId | the Id of the Course to remove |
Errors | NOT_FOUND | courseId not found | |
NULL_ARGUMENT | courseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageCourseAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Course aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasCourse | ||
Description |
Adds an | ||
Parameters | osid.id.Id | courseId | the Id of a Course |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | courseId not found | ||
NULL_ARGUMENT | courseId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |