Interface PostSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptionGets the poster order interface.Gets the posting agent search order interface.getPostSearchOrderRecord(Type postRecordType) Gets the post search record order corresponding to the given post record Type.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 resource order interface is available.booleanTests if a posting agent 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 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 resource order interface is available.- Returns:
trueif a poster order interface is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPosterSearchOrder
ResourceSearchOrder getPosterSearchOrder()Gets the poster order interface.- Returns:
- the poster 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 order interface is available.- Returns:
trueif a posting agent order interface is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPostingAgentSearchOrder
AgentSearchOrder getPostingAgentSearchOrder()Gets the posting agent search order interface.- Returns:
- the posting 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.
-
getPostSearchOrderRecord
Gets the post search record order corresponding to the given post record Type. Multiple retrievals return the same underlying object.- Parameters:
postRecordType- a post record type- Returns:
- the post search order record
- Throws:
NullArgumentException-postRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(postRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-