Interface ReplySearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidContainableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, OsidSubjugateableSearchOrder, Suppliable
public interface ReplySearchOrder
extends OsidObjectSearchOrder, OsidContainableSearchOrder, OsidSubjugateableSearchOrder
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptionGets the resource search order interface.Gets the posting agent search order interface.getReplySearchOrderRecord(Type replyRecordType) Gets the reply search order record corresponding to the given reply recordType.voidorderByPoster(SearchOrderStyle style) Specifies a preference for ordering the result set by the poster.voidSpecifies a preference for ordering the result set by the posting agent.voidSpecifies a preference for ordering the result set by the subject.voidorderByText(SearchOrderStyle style) Specifies a preference for ordering the result set by the text.voidorderByTimestamp(SearchOrderStyle style) Specifies a preference for ordering the result set by the timestamp.booleanTests if a poster resource search order interface is available.booleanTests if a posting agent search order interface is available.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 OsidContainableSearchOrder
orderBySequesteredModifier and TypeMethodDescriptionvoidSpecifies a preference for ordering the result set by the sequestered flag.Methods inherited from interface OsidIdentifiableSearchOrder
orderByIdModifier and TypeMethodDescriptionvoidorderById(SearchOrderStyle style) Specifies a preference for ordering the result set by theId.Methods inherited from interface OsidObjectSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticModifier and TypeMethodDescriptionvoidOrders by the timestamp of the first journal entry.voidorderByCumulativeRating(Id bookId, SearchOrderStyle style) Orders by the cumulative rating in a givenBook.voidSpecifies a preference for ordering the result set by the description.voidSpecifies a preference for ordering the result set by the display name.voidorderByGenusType(SearchOrderStyle style) Specifies a preference for ordering the result set by the genus type.voidOrders by the timestamp of the last journal entry.voidorderByState(Id processId, SearchOrderStyle style) Orders by the state in a givenProcess.voidorderByStatistic(Id meterId, SearchOrderStyle style) Orders by a statistic for a givenMeter.
-
Method Details
-
orderByTimestamp
Specifies a preference for ordering the result set by the timestamp.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByPoster
Specifies a preference for ordering the result set by the poster.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsPosterSearchOrder
boolean supportsPosterSearchOrder()Tests if a poster resource search order interface is available.- Returns:
trueif a resource search order interface is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPosterSearchOrder
ResourceSearchOrder getPosterSearchOrder()Gets the resource search order interface.- Returns:
- the resource search order interface
- Throws:
UnimplementedException-supportsPosterSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPosterSearchOrder()} is {@code true} .
-
orderByPostingAgent
Specifies a preference for ordering the result set by the posting agent.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsPostingAgentSearchOrder
boolean supportsPostingAgentSearchOrder()Tests if a posting agent search order interface is available.- Returns:
trueif an agent search order interface is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPostingAgentSearchOrder
AgentSearchOrder getPostingAgentSearchOrder()Gets the posting agent search order interface.- Returns:
- the agent search order interface
- Throws:
UnimplementedException-supportsPostingAgentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPostingAgentSearchOrder()} is {@code true} .
-
orderBySubjectLine
Specifies a preference for ordering the result set by the subject.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByText
Specifies a preference for ordering the result set by the text.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
getReplySearchOrderRecord
ReplySearchOrderRecord getReplySearchOrderRecord(Type replyRecordType) throws OperationFailedException Gets the reply search order record corresponding to the given reply recordType. Multiple retrievals return the same underlying object.- Parameters:
replyRecordType- a reply record type- Returns:
- the reply search order record
- Throws:
NullArgumentException-replyRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(replyRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-