| Interface | osid.commenting.BookLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods for retrieving  This session defines views that offer differing behaviors when retrieving multiple objects. 
  | ||
| Method | canLookupBooks | ||
| 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 | useComparativeBookView | ||
| 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 | usePlenaryBookView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBook | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | bookId |  Id  of the  Book   | 
| Return | osid.commenting.Book | the book | |
| Errors | NOT_FOUND |  bookId  not found  |                 |
| NULL_ARGUMENT |  bookId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBooksByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | bookIds | the list of  Ids  to retrieve  | 
| Return | osid.commenting.BookList | the returned  Book  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  bookIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBooksByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | bookGenusType | a book genus type | 
| Return | osid.commenting.BookList | the returned  Book  list  | |
| Errors | NULL_ARGUMENT |  bookGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBooksByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | bookGenusType | a book genus type | 
| Return | osid.commenting.BookList | the returned  Book  list  | |
| Errors | NULL_ARGUMENT |  bookGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBooksByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | bookRecordType | a book record type | 
| Return | osid.commenting.BookList | the returned  Book  list  | |
| Errors | NULL_ARGUMENT |  bookRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBooksByProvider | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
| Return | osid.commenting.BookList | the returned  Book  list  | |
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBooks | ||
| Description | 
                     Gets all   | ||
| Return | osid.commenting.BookList | a list of  Books   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |