OSID Logo
OSID Specifications
messaging package
Version 3.0.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.IdmessageIda message Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTmessageId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsMessageQuery() is false
ComplianceoptionalThis method must be implemented if supportsMessageQuery() is true .
MethodmatchAnyMessage
Description

Matches mailboxes with any messages.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTmailboxId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAncestorMailboxQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorMailboxQuery() is true .
MethodmatchAnyAncestorMailbox
Description

Matches mailboxes with any ancestor.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTmailboxId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDescendantMailboxQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantMailboxQuery() is true .
MethodmatchAnyDescendantMailbox
Description

Matches mailboxes with any descendant.

Parametersbooleanmatchtrue 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_ARGUMENTmailboxRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDhasRecordType(mailboxRecordType) is false
CompliancemandatoryThis method must be implemented.