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

This session manages queries and sequencing to create "smart" dynamic catalogs. A MessageQuery can be retrieved from this session and mapped to this Map to create a virtual collection of Messages. The messages may be sequenced using the MessageSearchOrder from this session.

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

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.
MethodgetMessageQuery
Description

Gets a message query.

Returnosid.messaging.MessageQuery the message query
Compliancemandatory This method must be implemented.
MethodgetMessageSearchOrder
Description

Gets a message search order.

Returnosid.messaging.MessageSearchOrder the message search order
Compliancemandatory This method must be implemented.
MethodapplyMessageQuery
Description

Applies a message query to this mailbox.

Parametersosid.messaging.MessageQuerymessageQuery the message 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.
MethodinspecMessageQuery
Description

Gets a message query inspector for this mailbox.

Returnosid.messaging.MessageQueryInspector the message query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyMessageSequencing
Description

Applies a message search order to this mailbox.

Parametersosid.messaging.MessageSearchOrdermessageSearchOrder the message 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.
MethodgetMessageQueryFromInspector
Description

Gets a message query from an inspector.

Parametersosid.messaging.MessageQueryInspectormessageQueryInspector a message query inspector
Returnosid.messaging.MessageQuery the message query
ErrorsNULL_ARGUMENT messageQueryInspector is null
UNSUPPORTED messageQueryInspector is not of this service
Compliancemandatory This method must be implemented.