Interface WorkSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing work searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetWorkSearchRecord(Type workSearchRecordType) Gets the work search record corresponding to the given work search recordType.voidorderWorkResults(WorkSearchOrder workSearchOrder) Specify an ordering to the search results.voidsearchAmongWorks(IdList workIds) Execute this search among the given list of works.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
-
searchAmongWorks
Execute this search among the given list of works.- Parameters:
workIds- list of works- Throws:
NullArgumentException-workIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderWorkResults
Specify an ordering to the search results.- Parameters:
workSearchOrder- work search order- Throws:
NullArgumentException-workSearchOrderisnullUnsupportedException-workSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getWorkSearchRecord
Gets the work search record corresponding to the given work search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
workSearchRecordType- a work search record type- Returns:
- the work search record
- Throws:
NullArgumentException-workSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(workSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-