OSID Logo
OSID Specifications
commenting package
Version 3.1.0
Interfaceosid.commenting.BookSearchSession
Implementsosid.commenting.BookQuerySession
Used Byosid.commenting.CommentingManager
osid.commenting.CommentingProxyManager
Description

This session provides methods for searching Books. 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.BookSearch the book search
Compliancemandatory This 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.BookSearchOrder the book search order
Compliancemandatory This method must be implemented.
MethodgetBooksBySearch
Description

Gets the search results matching the given search.

Parametersosid.commenting.BookQuerybookQuery the book query
osid.commenting.BookSearchbookSearch the book search
Returnosid.commenting.BookSearchResults the search results
ErrorsNULL_ARGUMENT bookQuery or bookSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED bookQuery or bookSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetBookQueryFromInspector
Description

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

Parametersosid.commenting.BookQueryInspectorbookQueryInspector a book query inspector
Returnosid.commenting.BookQuery the book query
ErrorsNULL_ARGUMENT bookQueryInspector is null
UNSUPPORTED bookQueryInspector is not of this service
Compliancemandatory This method must be implemented.