OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Interfaceosid.messaging.MessageQuery
Implementsosid.OsidObjectQuery
Used Byosid.messaging.MailboxQuery
osid.messaging.MessageQuerySession
osid.messaging.MessageSearchSession
osid.messaging.MessageSmartMailboxSession
osid.messaging.ReceiptQuery
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTsubject is not of stringMatchType
NULL_ARGUMENTsubject or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnySubjectLine
Description

Matches messages with any subject line.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTtext is not of stringMatchType
NULL_ARGUMENTtext or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyText
Description

Matches messages with any text.

Parametersbooleanmatchtrue 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.

Parametersbooleanmatchtrue 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
booleanmatchtrue if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTstartTime is greater than endTime
NULL_ARGUMENTstartTime 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.IdresourceIdId to match
booleanmatchtrue if for a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsSenderQuery() 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.IdagentIdId to match
booleanmatchtrue if for a positive match, false for a negative match
ErrorsNULL_ARGUMENTagentId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsSendingAgentQuery() 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
booleanmatchtrue if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTstartTime is greater than endTime
NULL_ARGUMENTstartTime 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
booleanmatchtrue if for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTstart is greater than end
NULL_ARGUMENTstart 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.IdresourceIdId to match
booleanmatchtrue if for a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsRecipientQuery() 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.IdreceiptIdId to match
booleanmatchtrue if for a positive match, false for a negative match
ErrorsNULL_ARGUMENTreceiptId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsReceiptQuery() is false
ComplianceoptionalThis method must be implemented if supportsReceiptQuery() is true .
MethodmatchAnyReceipt
Description

Matches any received messages.

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

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsMailboxQuery() 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_ARGUMENTmessageRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(messageRecordType) is false
CompliancemandatoryThis method must be implemented.