public interface ItemSearchOrder extends OsidObjectSearchOrder, OsidAggregateableSearchOrder
An interface for specifying the ordering of search results.
| Modifier and Type | Method and Description |
|---|---|
ItemSearchOrderRecord |
getItemSearchOrderRecord(Type itemRecordType)
Gets the item search order record corresponding to the given item
record
Type. |
QuestionSearchOrder |
getQuestionSearchOrder()
Gets a question search order.
|
void |
orderByQuestion(SearchOrderStyle style)
Specifies a preference for ordering the result set by the question.
|
boolean |
supportsQuestionSearchOrder()
Tests if a question search order is available.
|
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticorderByIdgetRecordTypes, hasRecordTypevoid orderByQuestion(SearchOrderStyle style)
style - search order styleNullArgumentException - style is
null mandatory - This method must be implemented. boolean supportsQuestionSearchOrder()
true if a question search order is available,
false otherwisemandatory - This method must be implemented. QuestionSearchOrder getQuestionSearchOrder()
UnimplementedException -
supportsQuestionSearchOrder() is false optional - This method must be implemented if
supportsQuestionSearchOrder() is true.
ItemSearchOrderRecord getItemSearchOrderRecord(Type itemRecordType) throws OperationFailedException
Type. Multiple retrievals return the same
underlying object.itemRecordType - an item record typeNullArgumentException - itemRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(itemRecordType) is false mandatory - This method must be implemented.