Interface | osid.course.registration.ActivityBundleAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an 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 | canCreateActivityBundles | ||
Description |
Tests if this user can create | ||
Return | boolean | false if ActivityBundle creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateActivityBundleWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | activityBundleRecordTypes | array of types |
Return | boolean | true if ActivityBundle creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | activityBundleRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateActivityBundlesForCourseOffering | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.id.Id | courseOfferingId | a course offering Id |
Return | boolean | true if ActivityBundle creation for the
specified CourseOffering is supported, false
otherwise | |
Errors | NULL_ARGUMENT | courseOfferingId is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getActivityBundleFormForCreate | ||
Description |
Gets the course form for creating new activity bundles. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | courseOfferingId | a course offering Id |
osid.type.Type[] | activityBundleRecordTypes | array of types | |
Return | osid.course.registration.ActivityBundleForm | the activity bundle form | |
Errors | NOT_FOUND | courseOfferingId is not found | |
NULL_ARGUMENT | courseOfferingId or activityBundleRecordTypes
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 | createActivityBundle | ||
Description |
Creates a new | ||
Parameters | osid.course.registration.ActivityBundleForm | activityBundleForm | the form for this ActivityBundle |
Return | osid.course.registration.ActivityBundle | the new ActivityBundle | |
Errors | ILLEGAL_STATE | activityBundleForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | activityBundleForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | activityBundleForm did not originate from
getActivityBundleFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateActivityBundles | ||
Description |
Tests if this user can update | ||
Return | boolean | false if ActivityBundle modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getActivityBundleFormForUpdate | ||
Description |
Gets the activity bundle form for updating an existing activity bundle. A new activity bundle form should be requested for each update transaction. | ||
Parameters | osid.id.Id | activityBundleId | the Id of the ActivityBundle |
Return | osid.course.registration.ActivityBundleForm | the activity bundle form | |
Errors | NOT_FOUND | activityBundleId is not found | |
NULL_ARGUMENT | activityBundleId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateActivityBundle | ||
Description |
Updates an existing activity bundle. | ||
Parameters | osid.course.registration.ActivityBundleForm | activityBundleForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | activityBundleForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | activityBundleForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | activityBundleForm did not originate from
getActivityBundleFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteActivityBundles | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if ActivityBundle deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteActivityBundle | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | activityBundleId | the Id of the ActivityBundle to remove |
Errors | NOT_FOUND | activityBundleId not found | |
NULL_ARGUMENT | activityBundleId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageActivityBundleAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if ActivityBundle aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasActivityBundle | ||
Description |
Adds an | ||
Parameters | osid.id.Id | activityBundleId | the Id of an ActivityBundle |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | activityBundleId not found | ||
NULL_ARGUMENT | activityBundleId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |