| Interface | osid.course.registration.CourseRegistrationAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.course.registration.batch.CourseRegistrationBatchAdminSession | ||
| Used By | osid.course.registration.CourseRegistrationManager | ||
osid.course.registration.CourseRegistrationProxyManager | |||
| 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 | canCreateCourseRegistrations | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if CourseRegistration creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCourseRegistrationWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | courseRegistrationRecordTypes | array of course registration record types |
| Return | boolean | true if CourseRegistration creation using the
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | courseRegistrationRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCourseRegistrationFormForCreate | ||
| Description |
Gets the course registration form for creating new course registrations. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | courseOfferingId | the Id for a CourseOffering |
osid.id.Id | resourceId | the Id for a Resource | |
osid.type.Type[] | courseRegistrationRecordTypes | array of course registration record types | |
| Return | osid.course.registration.CourseRegistrationForm | the course registration form | |
| Errors | NOT_FOUND | courseOfferingId or resourceId is not found | |
| NULL_ARGUMENT | courseOfferingId, resourceId , or
courseRegistrationRecordTypes 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 | createCourseRegistration | ||
| Description |
Creates a new | ||
| Parameters | osid.course.registration.CourseRegistrationForm | courseRegistrationForm | the form for this CourseRegistration |
| Return | osid.course.registration.CourseRegistration | the new CourseRegistration | |
| Errors | ILLEGAL_STATE | courseRegistrationForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | courseRegistrationForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | courseRegistrationForm did not originate from
getCourseRegistrationFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateCourseRegistrations | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if CourseRegistration modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCourseRegistrationFormForUpdate | ||
| Description |
Gets the course registration form for updating an existing course registration. A new course registration form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | courseRegistrationId | the Id of the CourseRegistration |
| Return | osid.course.registration.CourseRegistrationForm | the course registration form | |
| Errors | NOT_FOUND | courseRegistrationId is not found | |
| NULL_ARGUMENT | courseRegistrationId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCourseRegistration | ||
| Description |
Updates an existing course registration. | ||
| Parameters | osid.course.registration.CourseRegistrationForm | courseRegistrationForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | courseRegistrationForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | courseRegistrationForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | courseRegistrationForm did not originate from
getCourseRegistrationFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteCourseRegistrations | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if CourseRegistration deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCourseRegistration | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | courseRegistrationId | the Id of the CourseRegistration to remove |
| Errors | NOT_FOUND | courseRegistrationId not found | |
| NULL_ARGUMENT | courseRegistrationId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageCourseRegistrationAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if CourseRegistration aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCourseRegistration | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | courseRegistrationId | the Id of a CourseRegistration |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | courseRegistrationId not found | ||
| NULL_ARGUMENT | courseRegistrationId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |