| Interface | osid.mapping.path.ObstacleAdminSession | ||
|---|---|---|---|
| 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 | getMapId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Map Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getMap | ||
| Description |
Gets the | ||
| Return | osid.mapping.Map | the map | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateObstacles | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Obstacle creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateObstacleWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | obstacleRecordTypes | array of obstacle record types |
| Return | boolean | true if Obstacle creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | obstacleRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getObstacleFormForCreate | ||
| Description |
Gets the obstable form for creating new obstables. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | pathId | the Id of the path |
osid.type.Type[] | obstacleRecordTypes | array of obstacle record types | |
| Return | osid.mapping.path.ObstacleForm | the obstable form | |
| Errors | NOT_FOUND | pathId is not found | |
| NULL_ARGUMENT | pathId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with given record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createObstacle | ||
| Description |
Creates a new | ||
| Parameters | osid.mapping.path.ObstacleForm | obstacleForm | the form for this Obstacle |
| Return | osid.mapping.path.Obstacle | the new Obstacle | |
| Errors | ILLEGAL_STATE | obstacleForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | pathId or obstacleForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | obstacleForm did not originate from
getObstacleFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateObstacles | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Obstacle modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getObstacleFormForUpdate | ||
| Description |
Gets the obstable form for updating an existing obstable. A new obstable form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | obstacleId | the Id of the Obstacle |
| Return | osid.mapping.path.ObstacleForm | the obstable form | |
| Errors | NOT_FOUND | obstacleId is not found | |
| NULL_ARGUMENT | obstacleId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateObstacle | ||
| Description |
Updates an existing obstable. | ||
| Parameters | osid.mapping.path.ObstacleForm | obstacleForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | obstacleForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | obstacleId or obstableForm is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | obstacleForm did not originate from
getObstacleFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteObstacles | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Obstacle deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteObstacle | ||
| Description |
Deletes an | ||
| Parameters | osid.id.Id | obstacleId | the Id of the Obstacle to remove |
| Errors | NOT_FOUND | obstacleId not found | |
| NULL_ARGUMENT | obstacleId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageObstacleAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Obstacle aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasObstacle | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | obstacleId | the Id of an Obstacle |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | obstacleId not found | ||
| NULL_ARGUMENT | obstacleId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |