| Interface | osid.course.plan.PlanAdminSession | ||
|---|---|---|---|
| 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 | canCreatePlans | ||
| Description | Tests if this user can create plans. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known creating a  | ||
| Return | boolean |  false if Plan creation is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreatePlanWithRecordTypes | ||
| Description | Tests if this user can create a single  | ||
| Parameters | osid.type.Type[] | planRecordTypes | array of plan record types | 
| Return | boolean |  true if Plan creation using the specified 
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT |  planRecordTypes is null  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPlanFormForCreate | ||
| Description | Gets the plan form for creating new plans. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | syllabusId | a syllabus  Id  | 
| osid.id.Id | courseOfferingId | a course offering  Id  | |
| osid.type.Type[] | planRecordTypes | array of plan record types | |
| Return | osid.course.plan.PlanForm | the plan form | |
| Errors | NOT_FOUND |  syllabusId or courseOfferingId is not found | |
| NULL_ARGUMENT |  syllabusId, courseOfferingId, or planRecordTypes 
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 | createPlan | ||
| Description | Creates a new  | ||
| Parameters | osid.course.plan.PlanForm | planForm | the form for this  Plan  | 
| Return | osid.course.plan.Plan | the new  Plan  | |
| Errors | ILLEGAL_STATE |  planForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  planForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  planForm did not originate from 
getPlanFormForCreate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdatePlans | ||
| Description | Tests if this user can update plans. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known updating a  | ||
| Return | boolean |  false if Plan modification is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPlanFormForUpdate | ||
| Description | Gets the plan form for updating an existing plan. A new plan form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | planId | the  Id of the Plan  | 
| Return | osid.course.plan.PlanForm | the plan form | |
| Errors | NOT_FOUND |  planId is not found | |
| NULL_ARGUMENT |  planId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updatePlan | ||
| Description | Updates an existing plan. | ||
| Parameters | osid.course.plan.PlanForm | planForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  planForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  planForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  planForm did not originate from 
getPlanFormForUpdate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeletePlans | ||
| Description | Tests if this user can delete plans. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known deleting an  | ||
| Return | boolean |  false if Plan deletion is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deletePlan | ||
| Description | Deletes a  | ||
| Parameters | osid.id.Id | planId | the  Id of the Plan to remove | 
| Errors | NOT_FOUND |  planId not found | |
| NULL_ARGUMENT |  planId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManagePlanAliases | ||
| Description | Tests if this user can manage  | ||
| Return | boolean |  false if Plan aliasing is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasPlan | ||
| Description | Adds an  | ||
| Parameters | osid.id.Id | planId | the  Id of a Plan  | 
| osid.id.Id | aliasId | the alias  Id  | |
| Errors | ALREADY_EXISTS |  aliasId is already assigned | |
| NOT_FOUND |  planId not found | ||
| NULL_ARGUMENT |  planId or aliasId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |