Interface | osid.course.batch.ActivityUnitBatchAdminSession | ||
---|---|---|---|
Implements | osid.course.ActivityUnitAdminSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an The Once a batch of For updates, Once a batch of The delete operations delete | ||
Method | getActivityUnitFormsForCreate | ||
Description |
Gets the activity unitforms for creating a bunch of new activity units. A new activity form is returned for each supplied course. | ||
Parameters | osid.id.IdList | courseIds | a list of course Ids |
osid.type.Type[] | activityUnitRecordTypes | array of activity unit record types to be included in each create operation or an empty list if none | |
Return | osid.course.batch.ActivityUnitBatchFormList | the activity unitforms | |
Errors | NOT_FOUND | a courseId is not found | |
NULL_ARGUMENT | courseIds or activityUnitRecordTypes is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to request forms with given record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createActivityUnits | ||
Description |
Creates a new set of | ||
Parameters | osid.course.batch.ActivityUnitBatchFormList | activityUnitForms | the activity unit forms |
Return | osid.transaction.batch.CreateResponseList | the create responses | |
Errors | NULL_ARGUMENT | activityUnitForms is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivityUnitFormsForUpdate | ||
Description |
Gets the activity unit forms for updating an existing set of activity units. A new activity unitform should be requested for each update transaction. | ||
Parameters | osid.id.IdList | activityUnitIds | the Ids of the ActivityUnit |
Return | osid.course.batch.ActivityUnitBatchFormList | the activity unit form | |
Errors | NOT_FOUND | an activityUnitId is not found | |
NULL_ARGUMENT | activityUnitIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateActivityUnits | ||
Description |
Updates existing activity units. This method returns an
error if the entire operation fails. Otherwise, the status
of an individual update operation is indicated in the
| ||
Parameters | osid.course.batch.ActivityUnitBatchFormList | activityUnitForms | the form containing the elements to be updated |
Return | osid.transaction.batch.UpdateResponseList | the update responses | |
Errors | NULL_ARGUMENT | activityUnitForms is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | deleteAllActivityUnits | ||
Description |
Deletes all | ||
Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | deleteActivityUnits | ||
Description |
Deletes activity units for the given | ||
Parameters | osid.id.IdList | activityUnitIds | the Ids of the activity units to delete |
Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
Errors | NULL_ARGUMENT | activityUnitIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | deleteActivityUnitsForCourse | ||
Description |
Deletes all activity units mapped to the given course. | ||
Parameters | osid.id.Id | courseId | an Id of a course |
Return | osid.transaction.batch.DeleteResponseList | the delete responses | |
Errors | NULL_ARGUMENT | courseId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | aliasActivityUnits | ||
Description |
Adds an | ||
Parameters | osid.transaction.batch.AliasRequestList | aliasRequests | the alias requests |
Return | osid.transaction.batch.AliasResponseList | the alias responses | |
Errors | NULL_ARGUMENT | aliasRequests is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |