OSID Logo
OSID Specifications
commenting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.commenting.BookSearchSession
Implementsosid.commenting.BookQuerySession
Description

This session provides methods for searching Book objects. The search query is constructed using the BookQuery. The book record Type also specifies the record for the book query.

getBooksByQuery() is the basic search method and returns a list of Book elements. A more advanced search may be performed with getBooksBySearch(). It accepts a BookSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getBooksBySearch() returns a BookSearchResults that can be used to access the resulting BookList or be used to perform a search within the result set through BookSearch.

Books may have a query record indicated by their respective record types. The query record is accessed via the BookQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetBookSearch
Description

Gets a book search.

Returnosid.commenting.BookSearchthe book search
CompliancemandatoryThis method must be implemented.
MethodgetBookSearchOrder
Description

Gets a book search order. The BookSearchOrder is supplied to a BookSearch to specify the ordering of results.

Returnosid.commenting.BookSearchOrderthe book search order
CompliancemandatoryThis method must be implemented.
MethodgetBooksBySearch
Description

Gets the search results matching the given search.

Parametersosid.commenting.BookQuerybookQuerythe book query
osid.commenting.BookSearchbookSearchthe book search
Returnosid.commenting.BookSearchResultsthe search results
ErrorsNULL_ARGUMENT bookQuery or bookSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED bookQuery or bookSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetBookQueryFromInspector
Description

Gets an entry query from an inspector. The inspector is available from an BookSearchResults.

Parametersosid.commenting.BookQueryInspectorbookQueryInspectora book query inspector
Returnosid.commenting.BookQuerythe book query
ErrorsNULL_ARGUMENT bookQueryInspector is null
UNSUPPORTED bookQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.