| Interface | osid.course.plan.LessonAdminSession | ||
|---|---|---|---|
| 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 | canCreateLessons | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Lesson  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateLessonWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | lessonRecordTypes | array of lesson record types | 
| Return | boolean |  true  if  Lesson  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  lessonRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getLessonFormForCreate | ||
| Description | 
                     Gets the lesson form for creating new lessons. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | planId | a plan  Id   | 
osid.id.Id | docetId | a docet  Id   | |
osid.type.Type[] | lessonRecordTypes | array of lesson record types | |
| Return | osid.course.plan.LessonForm | the lesson form | |
| Errors | NOT_FOUND |  planId  or  docetId  is not found  |                 |
| NULL_ARGUMENT |  planId, docetId  or  lessonRecordTypes  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 | createLesson | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.course.plan.LessonForm | lessonForm | the form for this  Lesson   | 
| Return | osid.course.plan.Lesson | the new  Lesson   | |
| Errors | ILLEGAL_STATE |  lessonForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  lessonForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  lessonForm  did not originate from  
getLessonFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateLessons | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Lesson  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getLessonFormForUpdate | ||
| Description | 
                     Gets the lesson form for updating an existing lesson. A new lesson form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | lessonId | the  Id  of the  Lesson   | 
| Return | osid.course.plan.LessonForm | the lesson form | |
| Errors | NOT_FOUND |  lessonId  is not found  |                 |
| NULL_ARGUMENT |  lessonId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateLesson | ||
| Description | 
                     Updates an existing lesson.  | ||
| Parameters | osid.course.plan.LessonForm | lessonForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  lessonForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  lessonForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  lessonForm  did not originate from  
getLessonFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteLessons | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Lesson  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteLesson | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | lessonId | the  Id  of the  Lesson  to remove  | 
| Errors | NOT_FOUND |  lessonId  not found  |                 |
| NULL_ARGUMENT |  lessonId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageLessonAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Lesson  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasLesson | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | lessonId | the  Id  of a  Lesson   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  lessonId  not found  |                 ||
| NULL_ARGUMENT |  lessonId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |