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

This session provides methods for searching among Receipt objects. The search query is constructed using the ReceiptQuery.

This session defines views that offer differing behaviors for searching.

  • federated mailbox view: searches include receipts in mailboxes of which this mailbox is a ancestor in the mailbox hierarchy
  • isolated mailbox view: searches are restricted to receipts in this mailbox

Receipts may have a query record indicated by their respective record types. The query record is accessed via the ReceiptQuery.

Like all OsidSessions, ReceiptQuerySessions 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.
MethodcanSearchReceipts
Description

Tests if this user can perform Receipt searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedMailboxView
Description

Federates the view for methods in this session. A federated view will include receipts in mailboxes which are children of this mailbox in the mailbox hierarchy.

Compliancemandatory This method must be implemented.
MethoduseIsolatedMailboxView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this mailbox only.

Compliancemandatory This method must be implemented.
MethodgetReceiptQuery
Description

Gets a receipt query. The returned query will not have an extension query.

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

Gets a list of Receipts matching the given receipt query.

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