Interface BlockSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing block searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockSearchRecord(Type blockSearchRecordType) Gets the block search record corresponding to the given block search recordType.voidorderBlockResults(BlockSearchOrder blockSearchOrder) Specify an ordering to the search results.voidsearchAmongBlocks(IdList blockIds) Execute this search among the given list of blocks.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
-
searchAmongBlocks
Execute this search among the given list of blocks.- Parameters:
blockIds- list of blocks- Throws:
NullArgumentException-blockIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderBlockResults
Specify an ordering to the search results.- Parameters:
blockSearchOrder- block search order- Throws:
NullArgumentException-blockSearchOrderisnullUnsupportedException-blockSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getBlockSearchRecord
BlockSearchRecord getBlockSearchRecord(Type blockSearchRecordType) throws OperationFailedException, PermissionDeniedException Gets the block search record corresponding to the given block search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
blockSearchRecordType- a block search record type- Returns:
- the block search record
- Throws:
NullArgumentException-blockSearchRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(blockSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-