Interface | osid.grading.GradebookAdminSession | ||
---|---|---|---|
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 | canCreateGradebooks | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Gradebook creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateGradebookWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | gradebookRecordTypes | array of gradebook record types |
Return | boolean | true if Gradebook creation using the
specified Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | gradebookRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getGradebookFormForCreate | ||
Description |
Gets the gradebook form for creating new gradebooks. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | gradebookRecordTypes | array of gradebook record types |
Return | osid.grading.GradebookForm | the gradebook form | |
Errors | NULL_ARGUMENT | gradebookRecordTypes 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 | createGradebook | ||
Description |
Creates a new | ||
Parameters | osid.grading.GradebookForm | gradebookForm | the form for this Gradebook |
Return | osid.grading.Gradebook | the new Gradebook | |
Errors | ILLEGAL_STATE | gradebookForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | gradebookForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | gradebookForm did not originate from
getGradebookFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateGradebooks | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Gradebook modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getGradebookFormForUpdate | ||
Description |
Gets the gradebook form for updating an existing gradebook. A new gradebook form should be requested for each update transaction. | ||
Parameters | osid.id.Id | gradebookId | the Id of the Gradebook |
Return | osid.grading.GradebookForm | the gradebook form | |
Errors | NOT_FOUND | gradebookId is not found | |
NULL_ARGUMENT | gradebookId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateGradebook | ||
Description |
Updates an existing gradebook. | ||
Parameters | osid.grading.GradebookForm | gradebookForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | gradebookForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | gradebookForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | gradebookForm did not originate from getGradebookFormForUpdate()
| ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteGradebooks | ||
Description |
Tests if this user can delete gradebooks. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a | ||
Return | boolean | false if Gradebook deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteGradebook | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | gradebookId | the Id of the Gradebook to remove |
Errors | NOT_FOUND | gradebookId not found | |
NULL_ARGUMENT | gradebookId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageGradebookAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Gradebook aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasGradebook | ||
Description |
Adds an | ||
Parameters | osid.id.Id | gradebookId | the Id of a Gradebook |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | gradebookId not found | ||
NULL_ARGUMENT | gradebookId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |