OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.MessageQuery
Implementsosid.OsidObjectQuery
Description

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

MethodmatchSubjectLine
Description

Adds a subject line to match. Multiple subject line matches can be added to perform a boolean OR among them.

Parametersstringsubjectsubject to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT subject is not of stringMatchType
NULL_ARGUMENT subject or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySubjectLine
Description

Matches messages with any subject line.

Parametersbooleanmatch true to match messages with any subject line, false to match messages with no subject line
CompliancemandatoryThis method must be implemented.
MethodclearSubjectLineTerms
Description

Clears the subject line terms.

CompliancemandatoryThis method must be implemented.
MethodmatchText
Description

Adds text to match. Multiple subject line matches can be added to perform a boolean OR among them.

Parametersstringtextdtext to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT text is not of stringMatchType
NULL_ARGUMENT text or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyText
Description

Matches messages with any text.

Parametersbooleanmatch true to match messages with any text, false to match messages with no text
CompliancemandatoryThis method must be implemented.
MethodclearTextTerms
Description

Clears the text terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSent
Description

Matches messages that have been sent.

Parametersbooleanmatch true to match sent messages, false to match unsent messages
CompliancemandatoryThis method must be implemented.
MethodclearSentTerms
Description

Clears the sent terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSentTime
Description

Matches messages whose sent time is between the supplied range inclusive.

Parametersosid.calendaring.DateTimestartTimestart time
osid.calendaring.DateTimeendTimeend time
booleanmatch true if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT startTime is greater than endTime
NULL_ARGUMENT startTime or endTime is null
CompliancemandatoryThis method must be implemented.
MethodclearSentTimeTerms
Description

Clears the sent time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSenderId
Description

Matches the sender of the message.

Parametersosid.id.IdresourceId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearSenderIdTerms
Description

Clears the sender Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSenderQuery
Description

Tests if a ResourceQuery is available for querying senders.

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

Gets the query for a resource.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsSenderQuery() is false
ComplianceoptionalThis method must be implemented if supportsSenderQuery() is true.
MethodclearSenderTerms
Description

Clears the sender terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSendingAgentId
Description

Matches the sending agent of the message.

Parametersosid.id.IdagentId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT agentId is null
CompliancemandatoryThis method must be implemented.
MethodclearSendingAgentIdTerms
Description

Clears the sending agent Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSendingAgentQuery
Description

Tests if an AgentQuery is available for querying senders.

Returnboolean true if an agent query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSendingAgentQuery
Description

Gets the query for an agent.

Returnosid.authentication.AgentQuerythe agent query
ErrorsUNIMPLEMENTED supportsSendingAgentQuery() is false
ComplianceoptionalThis method must be implemented if supportsSendingAgentQuery() is true.
MethodclearSendingAgentTerms
Description

Clears the sending agent terms.

CompliancemandatoryThis method must be implemented.
MethodmatchReceivedTime
Description

Matches messages whose received time is between the supplied range inclusive.

Parametersosid.calendaring.DateTimestartTimestart time
osid.calendaring.DateTimeendTimeend time
booleanmatch true if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT startTime is greater than endTime
NULL_ARGUMENT startTime or endTime is null
CompliancemandatoryThis method must be implemented.
MethodclearReceivedTimeTerms
Description

Clears the received time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDeliveryTime
Description

Matches messages whose delivery duration is between the supplied range inclusive.

Parametersosid.calendaring.Durationstartstart time
osid.calendaring.Durationendend time
booleanmatch true if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodclearDeliveryTimeTerms
Description

Clears the delivery time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRecipientId
Description

Matches any recipient of the message.

Parametersosid.id.IdresourceId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearRecipientIdTerms
Description

Clears the recipient Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRecipientQuery
Description

Tests if a ResourceQuery is available for querying recipients.

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

Gets the query for a recipient resource.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsRecipientQuery() is false
ComplianceoptionalThis method must be implemented if supportsRecipientQuery() is true.
MethodclearRecipientTerms
Description

Clears the recipient terms.

CompliancemandatoryThis method must be implemented.
MethodmatchReceiptId
Description

Matches the receipt of the message.

Parametersosid.id.IdreceiptId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT receiptId is null
CompliancemandatoryThis method must be implemented.
MethodclearReceiptIdTerms
Description

Clears the receipt Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsReceiptQuery
Description

Tests if a ReceiptQuery is available for querying receipts.

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

Gets the query for the receipt.

Returnosid.messaging.ReceiptQuerythe receipt query
ErrorsUNIMPLEMENTED supportsReceiptQuery() is false
ComplianceoptionalThis method must be implemented if supportsReceiptQuery() is true.
MethodmatchAnyReceipt
Description

Matches any received messages.

Parametersbooleanmatch true to match any received messages, false otherwise
CompliancemandatoryThis method must be implemented.
MethodclearReceiptTerms
Description

Clears the receipt terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMailboxId
Description

Sets the mailbox Id for this query.

Parametersosid.id.IdmailboxIdthe mailbox Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mailboxId is null
CompliancemandatoryThis method must be implemented.
MethodclearMailboxIdTerms
Description

Clears the mailbox Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsMailboxQuery
Description

Tests if a MailboxQuery is available.

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

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

Returnosid.messaging.MailboxQuerythe mailbox query
ErrorsUNIMPLEMENTED supportsMailboxQuery() is false
ComplianceoptionalThis method must be implemented if supportsMailboxQuery() is true.
MethodclearMailboxTerms
Description

Clears the mailbox terms.

CompliancemandatoryThis method must be implemented.
MethodgetMessageQueryRecord
Description

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

Parametersosid.type.TypemessageRecordTypea message record type
Returnosid.messaging.records.MessageQueryRecordthe message query record
ErrorsNULL_ARGUMENT messageRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(messageRecordType) is false
CompliancemandatoryThis method must be implemented.