| Interface | osid.learning.ObjectiveAdminSession | ||
|---|---|---|---|
| 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 | getObjectiveBankId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the ObjectiveBank Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getObjectiveBank | ||
| Description |
Gets the | ||
| Return | osid.learning.ObjectiveBank | the ObjectiveBank associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateObjectives | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Objective creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateObjectiveWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | objectiveRecordTypes | array of objective record types |
| Return | boolean | true if Objective creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | objectiveRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getObjectiveFormForCreate | ||
| Description |
Gets the objective form for creating new objectives. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | objectiveRecordTypes | array of objective record types |
| Return | osid.learning.ObjectiveForm | the objective form | |
| Errors | NULL_ARGUMENT | objectiveRecordTypes 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 | createObjective | ||
| Description |
Creates a new | ||
| Parameters | osid.learning.ObjectiveForm | objectiveForm | the form for this Objective |
| Return | osid.learning.Objective | the new Objective | |
| Errors | ILLEGAL_STATE | objectiveForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | objectiveForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | objectiveForm did not originate from
getObjectiveFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateObjectives | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if objective modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getObjectiveFormForUpdate | ||
| Description |
Gets the objective form for updating an existing objective. A new objective form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | objectiveId | the Id of the Objective |
| Return | osid.learning.ObjectiveForm | the objective form | |
| Errors | NOT_FOUND | objectiveId is not found | |
| NULL_ARGUMENT | objectiveId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateObjective | ||
| Description |
Updates an existing objective. | ||
| Parameters | osid.learning.ObjectiveForm | objectiveForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | objectiveForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | objectiveForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | objectiveForm did not originate from
getObjectiveFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteObjectives | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Objective deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteObjective | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | objectiveId | the Id of the Objective to delete |
| Errors | NOT_FOUND | an Objective was not found identified by the given Id
| |
| NULL_ARGUMENT | objectiveId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageObjectiveAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Objective aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasObjective | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | objectiveId | the Id of an Objective |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | objectiveId not found | ||
| NULL_ARGUMENT | objectiveId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |