public interface ResultSearchOrder extends OsidObjectSearchOrder, OsidTemporalSearchOrder, OsidSubjugateableSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
GradeSearchOrder |
getGradeSearchOrder()
Gets the grade search order.
|
ParticipantSearchOrder |
getParticipantSearchOrder()
Gets the participant search order.
|
ResultSearchOrderRecord |
getResultSearchOrderRecord(Type resultRecordType)
Gets the result search order record corresponding to the given result
record
Type. |
void |
orderByGrade(SearchOrderStyle style)
Specifies a preference for ordering the result set by the commitment.
|
void |
orderByParticipant(SearchOrderStyle style)
Specifies a preference for ordering the result set by the participant.
|
void |
orderByValue(SearchOrderStyle style)
Specifies a preference for ordering the result set by the value.
|
boolean |
supportsGradeSearchOrder()
Tests if a grade search order is available.
|
boolean |
supportsParticipantSearchOrder()
Tests if a participant search order is available.
|
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
orderByEffective, orderByEndDate, orderByStartDate
void orderByParticipant(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsParticipantSearchOrder()
true
if a participant search order is
available, false
otherwisemandatory
- This method must be implemented. ParticipantSearchOrder getParticipantSearchOrder()
UnimplementedException
-
supportsParticipantSearchOrder()
is false
optional
- This method must be implemented if
supportsParticipantSearchOrder()
is true.
void orderByGrade(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsGradeSearchOrder()
true
if a grade search order is available,
false
otherwisemandatory
- This method must be implemented. GradeSearchOrder getGradeSearchOrder()
UnimplementedException
-
supportsGradeSearchOrder()
is false
optional
- This method must be implemented if
supportsGradeSearchOrder()
is true.
void orderByValue(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. ResultSearchOrderRecord getResultSearchOrderRecord(Type resultRecordType) throws OperationFailedException
Type.
Multiple retrievals return the same
underlying object.resultRecordType
- an result record typeNullArgumentException
- resultRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(resultRecordType)
is false
mandatory
- This method must be implemented.