OSID Logo
OSID Specifications
messaging package
Version 3.1.0
Interfaceosid.messaging.MessageSearchSession
Implementsosid.messaging.MessageQuerySession
Used Byosid.messaging.MessagingManager
osid.messaging.MessagingProxyManager
Description

This session provides methods for searching among Message objects. The search query is constructed using the MessageQuery.

getMessagesByQuery() is the basic search method and returns a list of Messages. A more advanced search may be performed with getMessagesBySearch().It accepts an MessageSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getMessagesBySearch() returns an MessageSearchResults that can be used to access the resulting MessageList or be used to perform a search within the result set through MessageList.

This session defines views that offer differing behaviors for searching.

  • federated mailbox view: searches include messages in mailboxes of which this mailbox is a ancestor in the mailbox hierarchy
  • isolated mailbox view: searches are restricted to messages in this mailbox

Messages may have a query record indicated by their respective record types. The query record is accessed via the MessageQuery.

MethodgetMessageSearch
Description

Gets a message search.

Returnosid.messaging.MessageSearch the message search
Compliancemandatory This method must be implemented.
MethodgetMessageSearchOrder
Description

Gets a message search order. The MessageSearchOrder is supplied to a MessageSearch to specify the ordering of results.

Returnosid.messaging.MessageSearchOrder the message search order
Compliancemandatory This method must be implemented.
MethodgetMessagesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.messaging.MessageQuerymessageQuery the message query
osid.messaging.MessageSearchmessageSearch the message search
Returnosid.messaging.MessageSearchResults the returned search results
ErrorsNULL_ARGUMENT messageQuery or messageSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED messageQuery or messageSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetMessageQueryFromInspector
Description

Gets a message query from an inspector. The inspector is available from a MessageSearchResults.

Parametersosid.messaging.MessageQueryInspectormessageQueryInspector a message query inspector
Returnosid.messaging.MessageQuery the message query
ErrorsNULL_ARGUMENT messageQueryInspector is null
UNSUPPORTED messageQueryInspector is not of this service
Compliancemandatory This method must be implemented.