| Interface | osid.learning.ActivityObjectiveBankAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Moving or adding a reference of an | ||
| Method | canAssignActivities | ||
| Description |
Tests if this user can alter activity/objective bank
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignActivitiesToObjectiveBank | ||
| Description |
Tests if this user can alter activity/objective bank
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | objectiveBankId | the Id of the ObjectiveBank |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | objectiveBankId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableObjectiveBankIds | ||
| Description |
Gets a list of objective banks including and under the given objective bank node in which any activity can be assigned. | ||
| Parameters | osid.id.Id | objectiveBankId | the Id of the ObjectiveBank |
| Return | osid.id.IdList | list of assignable objective bank Ids | |
| Errors | NULL_ARGUMENT | objectiveBankId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableObjectiveBankIdsForActivity | ||
| Description |
Gets a list of objective banks including and under the given objective bank node in which a specific activity can be assigned. | ||
| Parameters | osid.id.Id | objectiveBankId | the Id of the ObjectiveBank |
osid.id.Id | activityId | the Id of the Activity | |
| Return | osid.id.IdList | list of assignable objective bank Ids | |
| Errors | NULL_ARGUMENT | activityId or objectiveBankId is null
| |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignActivityToObjectiveBank | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | activityId | the Id of the Activity |
osid.id.Id | objectiveBankId | the Id of the ObjectiveBank | |
| Errors | ALREADY_EXISTS | activityId already mapped to objectiveBankId | |
| NOT_FOUND | activityId or objectiveBankId not found | ||
| NULL_ARGUMENT | activityId or objectiveBankId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignActivityFromObjectiveBank | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | activityId | the Id of the Activity |
osid.id.Id | objectiveBankId | the Id of the ObjectiveBank | |
| Errors | NOT_FOUND | activityId or objectiveBankId not found or
activityId not mapped to objectiveBankId | |
| NULL_ARGUMENT | activityId or objectiveBankId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignActivityToObjectiveBank | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | activityId | the Id of the Activity |
osid.id.Id | fromObjectiveBankId | the Id of the current ObjectiveBank | |
osid.id.Id | toObjectiveBankId | the Id of the destination ObjectiveBank | |
| Errors | NOT_FOUND | activityId, fromObjectiveBankId, or toObjectiveBankId
not found or activityId not mapped to
fromObjectiveBankId | |
| NULL_ARGUMENT | activityId, fromObjectiveBankId, or toObjectiveBankId
is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |