| Interface | osid.course.registration.RegistrationTargetAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.course.registration.batch.RegistrationTargetBatchAdminSession | ||
| 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 | canCreateRegistrationTargets | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if RegistrationTarget creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateRegistrationTargetWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | registrationTargetRecordTypes | array of registration target record types |
| Return | boolean | true if RegistrationTarget creation using the
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | registrationTargetRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRegistrationTargetFormForCreate | ||
| Description |
Gets the registration target form for creating new registration targets. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | courseOfferingId | a course offering Id |
osid.type.Type[] | registrationTargetRecordTypes | array of registration target record types | |
| Return | osid.course.registration.RegistrationTargetForm | the registration target form | |
| Errors | NOT_FOUND | courseOfferingId is not found | |
| NULL_ARGUMENT | courseOfferingId or registrationTargetRecordTypes
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 | createRegistrationTarget | ||
| Description |
Creates a new | ||
| Parameters | osid.course.registration.RegistrationTargetForm | registrationTargetForm | the form for this RegistrationTarget |
| Return | osid.course.registration.RegistrationTarget | the new RegistrationTarget | |
| Errors | ILLEGAL_STATE | registrationTargetForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | registrationTargetForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | registrationTargetForm did not originate from
getRegistrationTargetFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateRegistrationTargets | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if RegistrationTarget modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRegistrationTargetFormForUpdate | ||
| Description |
Gets the registration target form for updating an existing registration target. A new registration target form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | registrationTargetId | the Id of the RegistrationTarget |
| Return | osid.course.registration.RegistrationTargetForm | the registration target form | |
| Errors | NOT_FOUND | registrationTargetId is not found | |
| NULL_ARGUMENT | registrationTargetId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateRegistrationTarget | ||
| Description |
Updates an existing registration target. | ||
| Parameters | osid.course.registration.RegistrationTargetForm | registrationTargetForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | registrationTargetForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | registrationTargetForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | registrationTargetForm did not originate from
getRegistrationTargetFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteRegistrationTargets | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if RegistrationTarget deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteRegistrationTarget | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | registrationTargetId | the Id of the RegistrationTarget to remove |
| Errors | NOT_FOUND | registrationTargetId not found | |
| NULL_ARGUMENT | registrationTargetId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageRegistrationTargetAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if RegistrationTarget aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasRegistrationTarget | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | registrationTargetId | the Id of a RegistrationTarget |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | registrationTargetId not found | ||
| NULL_ARGUMENT | registrationTargetId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |