OSID Logo
OSID Specifications
messaging package
Version 3.1.0
Interfaceosid.messaging.MailboxQuery
Implementsosid.OsidCatalogQuery
Used Byosid.messaging.MailboxQuery
osid.messaging.MailboxQuerySession
osid.messaging.MailboxSearchSession
osid.messaging.MessageQuery
osid.messaging.ReceiptQuery
Description

This is the query for searching mailboxes. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchMessageId
Description

Sets the message Id for this query.

Parametersosid.id.IdmessageId a message Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT messageId is null
Compliancemandatory This method must be implemented.
MethodclearMessageIdTerms
Description

Clears the message Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsMessageQuery
Description

Tests if a MessageQuery is available.

Returnboolean true if a message query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetMessageQuery
Description

Gets the query for a message. Multiple retrievals produce a nested OR term.

Returnosid.messaging.MessageQuery the message query
ErrorsUNIMPLEMENTED supportsMessageQuery() is false
Complianceoptional This method must be implemented if supportsMessageQuery() is true.
MethodmatchAnyMessage
Description

Matches mailboxes with any messages.

Parametersbooleanmatch true to match mailboxes with any messages, false to match mailboxes with no messages
Compliancemandatory This method must be implemented.
MethodclearMessageTerms
Description

Clears the message terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorMailboxId
Description

Sets the mailbox Id for this query to match mailboxes that have the specified mailbox as an ancestor.

Parametersosid.id.IdmailboxId a mailbox Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mailboxId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorMailboxIdTerms
Description

Clears the ancestor mailbox Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorMailboxQuery
Description

Tests if a MailboxQuery is available.

Returnboolean true if a mailbox query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorMailboxQuery
Description

Gets the query for a mailbox. Multiple retrievals produce a nested OR term.

Returnosid.messaging.MailboxQuery the mailbox query
ErrorsUNIMPLEMENTED supportsAncestorMailboxQuery() is false
Complianceoptional This method must be implemented if supportsAncestorMailboxQuery() is true.
MethodmatchAnyAncestorMailbox
Description

Matches mailboxes with any ancestor.

Parametersbooleanmatch true to match mailboxes with any ancestor, false to match root mailboxes
Compliancemandatory This method must be implemented.
MethodclearAncestorMailboxTerms
Description

Clears the ancestor mailbox terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantMailboxId
Description

Sets the mailbox Id for this query to match mailboxes that have the specified mailbox as a descendant.

Parametersosid.id.IdmailboxId a mailbox Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mailboxId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantMailboxIdTerms
Description

Clears the descendant mailbox Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantMailboxQuery
Description

Tests if a MailboxQuery is available.

Returnboolean true if a mailbox query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantMailboxQuery
Description

Gets the query for a mailbox. Multiple retrievals produce a nested OR term.

Returnosid.messaging.MailboxQuery the mailbox query
ErrorsUNIMPLEMENTED supportsDescendantMailboxQuery() is false
Complianceoptional This method must be implemented if supportsDescendantMailboxQuery() is true.
MethodmatchAnyDescendantMailbox
Description

Matches mailboxes with any descendant.

Parametersbooleanmatch true to match mailboxes with any descendant, false to match leaf mailboxes
Compliancemandatory This method must be implemented.
MethodclearDescendantMailboxTerms
Description

Clears the descendant mailbox terms.

Compliancemandatory This method must be implemented.
MethodgetMailboxQueryRecord
Description

Gets the mailbox query record corresponding to the given Mailbox record Type .Multiple retrievals produce a nested OR term.

Parametersosid.type.TypemailboxRecordType a mailbox record type
Returnosid.messaging.records.MailboxQueryRecord the mailbox query record
ErrorsNULL_ARGUMENT mailboxRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(mailboxRecordType) is false
Compliancemandatory This method must be implemented.