OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.MailboxQuery
Implementsosid.OsidCatalogQuery
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.IdmessageIda message Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT messageId is null
CompliancemandatoryThis method must be implemented.
MethodclearMessageIdTerms
Description

Clears the message Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsMessageQuery
Description

Tests if a MessageQuery is available.

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

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

Returnosid.messaging.MessageQuerythe message query
ErrorsUNIMPLEMENTED supportsMessageQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearMessageTerms
Description

Clears the message terms.

CompliancemandatoryThis 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.IdmailboxIda mailbox Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mailboxId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorMailboxIdTerms
Description

Clears the ancestor mailbox Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorMailboxQuery
Description

Tests if a MailboxQuery is available.

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

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

Returnosid.messaging.MailboxQuerythe mailbox query
ErrorsUNIMPLEMENTED supportsAncestorMailboxQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearAncestorMailboxTerms
Description

Clears the ancestor mailbox terms.

CompliancemandatoryThis 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.IdmailboxIda mailbox Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mailboxId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantMailboxIdTerms
Description

Clears the descendant mailbox Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantMailboxQuery
Description

Tests if a MailboxQuery is available.

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

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

Returnosid.messaging.MailboxQuerythe mailbox query
ErrorsUNIMPLEMENTED supportsDescendantMailboxQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearDescendantMailboxTerms
Description

Clears the descendant mailbox terms.

CompliancemandatoryThis 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.TypemailboxRecordTypea mailbox record type
Returnosid.messaging.records.MailboxQueryRecordthe mailbox query record
ErrorsNULL_ARGUMENT mailboxRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED hasRecordType(mailboxRecordType) is false
CompliancemandatoryThis method must be implemented.