Interface MessageSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageSearchOrderRecord(Type messageRecordType) Gets the message search order record corresponding to the given message recordType.Multiple retrievals return the same underlying object.Gets the receipt order.Gets the resource order.Gets the sending agent order.voidSpecifies a preference for ordering messages by the delivery time.voidorderByReceipt(SearchOrderStyle style) Specifies a preference for ordering messages by receipt.voidSpecifies a preference for ordering messages by the sent time.voidorderBySender(SearchOrderStyle style) Specifies a preference for ordering messages by sender.voidSpecifies a preference for ordering messages by sending agent.voidorderBySent(SearchOrderStyle style) Specifies a preference for ordering messages by sent.voidorderBySentTime(SearchOrderStyle style) Specifies a preference for ordering messages by the sent time.voidSpecifies a preference for ordering messages by subject line.voidorderByText(SearchOrderStyle style) Specifies a preference for ordering messages by text.booleanTests if a receipt order is available.booleanTests if a resource order is available.booleanTests if an agent order 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
-
orderBySubjectLine
Specifies a preference for ordering messages by subject line.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByText
Specifies a preference for ordering messages by text.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderBySent
Specifies a preference for ordering messages by sent.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderBySentTime
Specifies a preference for ordering messages by the sent time.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderBySender
Specifies a preference for ordering messages by sender.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsSenderSearchOrder
boolean supportsSenderSearchOrder()Tests if a resource order is available.- Returns:
trueif a resource order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSenderSearchOrder
ResourceSearchOrder getSenderSearchOrder()Gets the resource order.- Returns:
- the resource search order
- Throws:
UnimplementedException-supportsSenderSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSenderSearchOrder()} is {@code true} .
-
orderBySendingAgent
Specifies a preference for ordering messages by sending agent.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsSendingAgentSearchOrder
boolean supportsSendingAgentSearchOrder()Tests if an agent order is available.- Returns:
trueif an agent order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSendingAgentSearchOrder
AgentSearchOrder getSendingAgentSearchOrder()Gets the sending agent order.- Returns:
- the agent search order
- Throws:
UnimplementedException-supportsSendingAgentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSendingAgentSearchOrder()} is {@code true} .
-
orderByReceivedTime
Specifies a preference for ordering messages by the sent time.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByDeliveryTime
Specifies a preference for ordering messages by the delivery time.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByReceipt
Specifies a preference for ordering messages by receipt.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsReceiptSearchOrder
boolean supportsReceiptSearchOrder()Tests if a receipt order is available.- Returns:
trueif a receipt order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getReceiptSearchOrder
ReceiptSearchOrder getReceiptSearchOrder()Gets the receipt order.- Returns:
- the receipt search order
- Throws:
UnimplementedException-supportsReceiptSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceipttSearchOrder()} is {@code true} .
-
getMessageSearchOrderRecord
MessageSearchOrderRecord getMessageSearchOrderRecord(Type messageRecordType) throws OperationFailedException Gets the message search order record corresponding to the given message recordType.Multiple retrievals return the same underlying object.- Parameters:
messageRecordType- a message record type- Returns:
- the message search order record
- Throws:
NullArgumentException-messageRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(messageRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-