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

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

getMailboxesByQuery() is the basic search method and returns a list of Mailbox objects.A more advanced search may be performed with getMailboxesBySearch().It accepts a MailboxSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getMailboxesBySearch() returns a MailboxSearchResults that can be used to access the resulting MailboxList or be used to perform a search within the result set through MailboxSearch.

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

MethodgetMailboxSearch
Description

Gets a mailbox search.

Returnosid.messaging.MailboxSearch the mailbox search
Compliancemandatory This method must be implemented.
MethodgetMailboxSearchOrder
Description

Gets a mailbox search order. The MailboxSearchOrder is supplied to a MailboxSearch to specify the ordering of results.

Returnosid.messaging.MailboxSearchOrder the mailbox search order
Compliancemandatory This method must be implemented.
MethodgetMailboxesBySearch
Description

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

Parametersosid.messaging.MailboxQuerymailboxQuery the mailbox query
osid.messaging.MailboxSearchmailboxSearch the mailbox search
Returnosid.messaging.MailboxSearchResults the mailbox search results
ErrorsNULL_ARGUMENT mailboxQuery or mailboxSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED mailboxQuery or mailboxSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetMailboxQueryFromInspector
Description

Gets a mailbox query from an inspector. The inspector is available from a MailboxSearchResults.

Parametersosid.messaging.MailboxQueryInspectormailboxQueryInspector a mailbox query inspector
Returnosid.messaging.MailboxQuery the mailbox query
ErrorsNULL_ARGUMENT mailboxQueryInspector is null
UNSUPPORTED mailboxQueryInspector is not of this service
Compliancemandatory This method must be implemented.