Interface | osid.course.chronicle.CourseEntryAdminSession | ||
---|---|---|---|
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 | canCreateCourseEntries | ||
Description |
Tests if this user can create | ||
Return | boolean | false if CourseEntry creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCourseEntryWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | courseEntryRecordTypes | array of course entry record types |
Return | boolean | true if CourseEntry creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | courseEntryRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseEntryFormForCreate | ||
Description |
Gets the course entry form for creating new course entries. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | courseId | a course Id |
osid.id.Id | resourceId | a program Id | |
osid.type.Type[] | courseEntryRecordTypes | array of course entry record types | |
Return | osid.course.chronicle.CourseEntryForm | the course entry form | |
Errors | NOT_FOUND | courseId or resourceId is not found | |
NULL_ARGUMENT | courseId, resourceId , or courseEntryRecordTypes
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 | createCourseEntry | ||
Description |
Creates a new | ||
Parameters | osid.course.chronicle.CourseEntryForm | courseEntryForm | the form for this CourseEntry |
Return | osid.course.chronicle.CourseEntry | the new CourseEntry | |
Errors | ILLEGAL_STATE | courseEntryForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | courseEntryForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | courseEntryForm did not originate from
getCourseEntryFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateCourseEntries | ||
Description |
Tests if this user can update | ||
Return | boolean | false if CourseEntry modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseEntryFormForUpdate | ||
Description |
Gets the course entry form for updating an existing course entry. A new course entry form should be requested for each update transaction. | ||
Parameters | osid.id.Id | courseEntryId | the Id of the CourseEntry |
Return | osid.course.chronicle.CourseEntryForm | the course entry form | |
Errors | NOT_FOUND | courseEntryId is not found | |
NULL_ARGUMENT | courseEntryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateCourseEntry | ||
Description |
Updates an existing course entry. | ||
Parameters | osid.course.chronicle.CourseEntryForm | courseEntryForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | courseEntryForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | courseEntryForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | courseEntryForm did not originate from getCourseEntryFormForUpdate()
| ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteCourseEntries | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if CourseEntry deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteCourseEntry | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | courseEntryId | the Id of the CourseEntry to remove |
Errors | NOT_FOUND | courseEntryId not found | |
NULL_ARGUMENT | courseEntryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageCourseEntryAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if CourseEntry aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasCourseEntry | ||
Description |
Adds an | ||
Parameters | osid.id.Id | courseEntryId | the Id of a CourseEntry |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | courseEntryId not found | ||
NULL_ARGUMENT | courseEntryId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |