OSID Logo
OSID Specifications
messaging package
Version 3.1.0
Interfaceosid.messaging.ReceiptSmartMailboxSession
Implementsosid.OsidSession
Used Byosid.messaging.MessagingManager
osid.messaging.MessagingProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A ReceiptQuery can be retrieved from this session and mapped to this Map to create a virtual collection of Receipts. The receipts may be sequenced using the ReceiptSearchOrder from this session.

This Mailbox has a default query that matches any receipt and a default search order that specifies no sequencing. The queries may be examined using a ReceiptQueryInspector. The query may be modified by converting the inspector back to a ReceiptQuery.

Like all OsidSessions, ReceiptSmartMailboxSessions are dedicated to single processing threads and a single authenticated user.

MethodgetMailboxId
Description

Gets the Mailbox Id associated with this session.

Returnosid.id.Id the Mailbox Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetMailbox
Description

Gets the Mailbox associated with this session.

Returnosid.messaging.Mailbox the Mailbox associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartMailboxes
Description

Tests if this user can manage smart mailboxes. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart mailbox management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetReceiptQuery
Description

Gets a receipt query.

Returnosid.messaging.ReceiptQuery the receipt query
Compliancemandatory This method must be implemented.
MethodgetReceiptSearchOrder
Description

Gets a receipt search order.

Returnosid.messaging.ReceiptSearchOrder the receipt search order
Compliancemandatory This method must be implemented.
MethodapplyReceiptQuery
Description

Applies a receipt query to this mailbox.

Parametersosid.messaging.ReceiptQuerymessageQuery the receipt query
ErrorsNULL_ARGUMENT messageQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED messageQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectReceiptQuery
Description

Gets a receipt query inspector for this mailbox.

Returnosid.messaging.ReceiptQueryInspector the receipt query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyReceiptSequencing
Description

Applies a receipt search order to this mailbox.

Parametersosid.messaging.ReceiptSearchOrdermessageSearchOrder the receipt search order
ErrorsNULL_ARGUMENT messageSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED messageSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetReceiptQueryFromInspector
Description

Gets a receipt query from an inspector.

Parametersosid.messaging.ReceiptQueryInspectormessageQueryInspector a receipt query inspector
Returnosid.messaging.ReceiptQuery the receipt query
ErrorsNULL_ARGUMENT messageQueryInspector is null
UNSUPPORTED messageQueryInspector is not of this service
Compliancemandatory This method must be implemented.