Interface MessageSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing message searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageSearchRecord(Type messageSearchRecordType) Gets the message search record corresponding to the given message search recordType.voidorderMessageResults(MessageSearchOrder messageSearchOrder) Specify an ordering to the search results.voidsearchAmongMessages(IdList messageIds) Execute this search among the given list of messages.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 OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongMessages
Execute this search among the given list of messages.- Parameters:
messageIds- list of messageIds- Throws:
NullArgumentException-messageIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderMessageResults
Specify an ordering to the search results.- Parameters:
messageSearchOrder- message search order- Throws:
NullArgumentException-messageSearchOrderisnullUnsupportedException-messageSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getMessageSearchRecord
MessageSearchRecord getMessageSearchRecord(Type messageSearchRecordType) throws OperationFailedException Gets the message search record corresponding to the given message search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
messageSearchRecordType- a message search record type- Returns:
- the message search record
- Throws:
NullArgumentException-messageSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordTypeType(messageSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-