Interface | osid.course.program.CourseProgramAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to assign | ||
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 | canAssignCourses | ||
Description |
Tests if this user can alter program/course mappings. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
Return | boolean | false if mapping is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canAssignCourseToProgram | ||
Description |
Tests if this user can alter program/course mappings. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
Parameters | osid.id.Id | programId | the Id of the Program |
Return | boolean | false if mapping is not authorized, true
otherwise | |
Errors | NULL_ARGUMENT | programId is null | |
Compliance | mandatory | This method must be implemented. | |
Method | assignCourseToProgram | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | courseId | the Id of the Course |
osid.id.Id | programId | the Id of the Program | |
Errors | ALREADY_EXISTS | courseId is already assigned to programId | |
NOT_FOUND | courseId or programId not found | ||
NULL_ARGUMENT | courseId or programId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignCourseFromProgram | ||
Description |
Removes a | ||
Parameters | osid.id.Id | courseId | the Id of the Course |
osid.id.Id | programId | the Id of the Program | |
Errors | NOT_FOUND | courseId or programId not found or
courseId not assigned to programId | |
NULL_ARGUMENT | courseId or programId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |