| Interface | osid.hold.BlockAdminSession | ||
|---|---|---|---|
| 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 | getOublietteId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Oubliette Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOubliette | ||
| Description |
Gets the | ||
| Return | osid.hold.Oubliette | the oubliette | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBlocks | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Block creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBlockWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | blockRecordTypes | array of block record types |
| Return | boolean | true if Block creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | blockRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlockFormForCreate | ||
| Description |
Gets the block form for creating new blocks. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | blockRecordTypes | array of block record types |
| Return | osid.hold.BlockForm | the block form | |
| Errors | NULL_ARGUMENT | blockRecordTypes 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 | createBlock | ||
| Description |
Creates a new | ||
| Parameters | osid.hold.BlockForm | blockForm | the form for this Block |
| Return | osid.hold.Block | the new Block | |
| Errors | ILLEGAL_STATE | blockForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | blockForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | blockForm did not originate from
getBlockFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBlocks | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Block modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlockFormForUpdate | ||
| Description |
Gets the block form for updating an existing block. A new block form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | blockId | the Id of the Block |
| Return | osid.hold.BlockForm | the block form | |
| Errors | NOT_FOUND | blockId is not found | |
| NULL_ARGUMENT | blockId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBlock | ||
| Description |
Updates an existing block. | ||
| Parameters | osid.hold.BlockForm | blockForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | blockForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | blockId or blockForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | blockForm did not originate from
getBlockFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBlocks | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Block deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBlock | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | blockId | the Id of the Block to remove |
| Errors | NOT_FOUND | blockId not found | |
| NULL_ARGUMENT | blockId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBlockAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Block aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBlock | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | blockId | the Id of a Block |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | blockId not found | ||
| NULL_ARGUMENT | blockId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |