OSID Logo
OSID Specifications
messaging package
Version 3.1.0
Interfaceosid.messaging.ReceiptSearchSession
Implementsosid.messaging.ReceiptQuerySession
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.

getReceiptsByQuery() is the basic search method and returns a list of Receipts. A more advanced search may be performed with getReceiptsBySearch().It accepts an ReceiptSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getReceiptsBySearch() returns an ReceiptSearchResults that can be used to access the resulting ReceiptList or be used to perform a search within the result set through ReceiptList.

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, ReceiptSearchSessions are dedicated to single processing threads and a single authenticated user.

MethodgetReceiptSearch
Description

Gets a receipt search.

Returnosid.messaging.ReceiptSearch the receipt search
Compliancemandatory This method must be implemented.
MethodgetReceiptSearchOrder
Description

Gets a receipt search order. The ReceiptSearchOrder is supplied to a ReceiptSearch to specify the ordering of results.

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

Gets the search results matching the given search query using the given search.

Parametersosid.messaging.ReceiptQuerymessageQuery the receipt query
osid.messaging.ReceiptSearchmessageSearch the receipt search
Returnosid.messaging.ReceiptSearchResults the returned search results
ErrorsNULL_ARGUMENT messageQuery or messageSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED messageQuery or messageSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetReceiptQueryFromInspector
Description

Gets a receipt query from an inspector. The inspector is available from a ReceiptSearchResults.

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.