Interface BookSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing book searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetBookSearchRecord(Type bookSearchRecordType) Gets the book search record corresponding to the given book search recordType.voidorderBookResults(BookSearchOrder bookSearchOrder) Specify an ordering to the search results.voidsearchAmongBooks(IdList bookIds) Execute this search among the given list of books.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongBooks
Execute this search among the given list of books.- Parameters:
bookIds- list of books- Throws:
NullArgumentException-bookIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderBookResults
Specify an ordering to the search results.- Parameters:
bookSearchOrder- book search order- Throws:
NullArgumentException-bookSearchOrderisnullUnsupportedException-bookSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getBookSearchRecord
Gets the book search record corresponding to the given book search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
bookSearchRecordType- a book search record type- Returns:
- the book search record
- Throws:
NullArgumentException-bookSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(bookSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-