public interface CommentSearchOrder extends OsidRelationshipSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
AgentSearchOrder |
getCommentingAgentSearchOrder()
Gets the agent order interface.
|
ResourceQuery |
getCommentorSearchOrder()
Gets the resource order interface.
|
CommentSearchOrderRecord |
getCommentSearchOrderRecord(Type commentRecordType)
Gets the comment search order record corresponding to the given
comment record
Type. |
GradeSearchOrder |
getRatingSearchOrder()
Gets the rating order interface.
|
void |
orderByCommentingAgent(SearchOrderStyle style)
Specifies a preference for ordering the result set by the agent.
|
void |
orderByCommentor(SearchOrderStyle style)
Specifies a preference for ordering the result set by the resource.
|
void |
orderByRating(SearchOrderStyle style)
Specifies a preference for ordering the result set by the rating.
|
void |
orderByReference(SearchOrderStyle style)
Specifies a preference for ordering the result set by the reference.
|
void |
orderByText(SearchOrderStyle style)
Specifies a preference for ordering the result set by the text.
|
boolean |
supportsCommentingAgentSearchOrder()
Tests if an agent order interface is available.
|
boolean |
supportsCommentorSearchOrder()
Tests if a resource order interface is available.
|
boolean |
supportsRatingSearchOrder()
Tests if a rating order interface is available.
|
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
orderByEffective, orderByEndDate, orderByStartDate
void orderByReference(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByCommentor(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsCommentorSearchOrder()
true
if a resource order interface is
available, false
otherwisemandatory
- This method must be implemented. ResourceQuery getCommentorSearchOrder()
UnimplementedException
-
supportsCommentorSearchOrder()
is false
optional
- This method must be implemented if
supportsCommentorSearchOrder()
is true.
void orderByCommentingAgent(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsCommentingAgentSearchOrder()
true
if an agent order interface is available,
false
otherwisemandatory
- This method must be implemented. AgentSearchOrder getCommentingAgentSearchOrder()
UnimplementedException
-
supportsCommentingAgentSearchOrder()
is false
optional
- This method must be implemented if
supportsCommentingAgentSearchOrder()
is
true.
void orderByText(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByRating(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsRatingSearchOrder()
true
if a rating order interface is available,
false
otherwisemandatory
- This method must be implemented. GradeSearchOrder getRatingSearchOrder()
UnimplementedException
-
supportsRatingSearchOrder()
is false
optional
- This method must be implemented if
supportsRatingSearchOrder()
is true.
CommentSearchOrderRecord getCommentSearchOrderRecord(Type commentRecordType) throws OperationFailedException
Type.
Multiple retrievals return the
same underlying object.commentRecordType
- a comment record typeNullArgumentException
- commentRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(commentRecordType)
is false
mandatory
- This method must be implemented.