| Interface | osid.hold.BlockLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session provides methods for retrieving  This session defines views that offer differing behaviors when retrieving multiple objects. 
  Generally, the comparative view should be used for most 
                applications as it permits operation even if there is data 
                that cannot be accessed. The methods  | ||
| 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 | canLookupBlocks | ||
| Description | Tests if this user can perform  | ||
| Return | boolean |  false if lookup methods are not authorized, true 
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeBlockView | ||
| Description | The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryBlockView | ||
| Description | A complete view of the  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedOublietteView | ||
| Description | Federates the view for methods in this session. A federated view will include blocks in oubliettes which are children of this oubliette in the oubliette hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedOublietteView | ||
| Description | Isolates the view for methods in this session. An isolated view restricts lookups to this oubliette only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBlock | ||
| Description | Gets the  | ||
| Parameters | osid.id.Id | blockId |  Id of the Block  | 
| Return | osid.hold.Block | the block | |
| 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 is must be implemented. | |
| Method | getBlocksByIds | ||
| Description | Gets a  | ||
| Parameters | osid.id.IdList | blockIds | the list of  Ids to retrieve | 
| Return | osid.hold.BlockList | the returned  Block list | |
| Errors | NOT_FOUND | an  Id was not found | |
| NULL_ARGUMENT |  blockIds is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlocksByGenusType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | blockGenusType | a block genus type | 
| Return | osid.hold.BlockList | the returned  Block list | |
| Errors | NULL_ARGUMENT |  blockGenusType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlocksByParentGenusType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | blockGenusType | a block genus type | 
| Return | osid.hold.BlockList | the returned  Block list | |
| Errors | NULL_ARGUMENT |  blockGenusType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlocksByRecordType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | blockRecordType | a block record type | 
| Return | osid.hold.BlockList | the returned  Block list | |
| Errors | NULL_ARGUMENT |  blockRecordType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlocksForIssue | ||
| Description | Gets a  | ||
| Parameters | osid.id.Id | issueId | an issue  Id  | 
| Return | osid.hold.BlockList | the returned  Block list | |
| Errors | NULL_ARGUMENT |  issueId is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBlocks | ||
| Description | Gets all  | ||
| Return | osid.hold.BlockList | a list of  Blocks  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |