OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.MailboxSearchSession
Implementsosid.messaging.MailboxQuerySession
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.MailboxSearchthe mailbox search
CompliancemandatoryThis 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.MailboxSearchOrderthe mailbox search order
CompliancemandatoryThis method must be implemented.
MethodgetMailboxesBySearch
Description

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

Parametersosid.messaging.MailboxQuerymailboxQuerythe mailbox query
osid.messaging.MailboxSearchmailboxSearchthe mailbox search
Returnosid.messaging.MailboxSearchResultsthe mailbox search results
ErrorsNULL_ARGUMENT mailboxQuery or mailboxSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED mailboxQuery or mailboxSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetMailboxQueryFromInspector
Description

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

Parametersosid.messaging.MailboxQueryInspectormailboxQueryInspectora mailbox query inspector
Returnosid.messaging.MailboxQuerythe mailbox query
ErrorsNULL_ARGUMENT mailboxQueryInspector is null
UNSUPPORTED mailboxQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.