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

This session provides methods to retrieve Receipt to Mailbox mappings. A Receipt may appear in multiple Mailboxes. Each Mailbox may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition

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

MethodcanLookupReceiptMailboxMappings
Description

Tests if this user can perform lookups of receipt/mailbox mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeMailboxView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method must be implemented.
MethodusePlenaryMailboxView
Description

A complete view of the Receipt and Mailbox returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method must be implemented.
MethodgetReceiptIdsByMailbox
Description

Gets the list of Receipt Ids associated with a Mailbox.

Parametersosid.id.IdmailboxId Id of a Mailbox
Returnosid.id.IdList list of related receipt Ids
ErrorsNOT_FOUND mailboxId is not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetReceiptsByMailbox
Description

Gets the list of Receipts associated with a Mailbox.

Parametersosid.id.IdmailboxId Id of a Mailbox
Returnosid.messaging.ReceiptList list of related receipts
ErrorsNOT_FOUND mailboxId is not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetReceiptIdsByMailboxes
Description

Gets the list of Receipt Ids corresponding to a list of Mailbox objects.

Parametersosid.id.IdListmailboxIds list of mailbox Ids
Returnosid.id.IdList list of receipt Ids
ErrorsNULL_ARGUMENT mailboxIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetReceiptsByMailboxes
Description

Gets the list of Receipts corresponding to a list of Mailboxes.

Parametersosid.id.IdListmailboxIds list of mailbox Ids
Returnosid.messaging.ReceiptList list of receipts
ErrorsNULL_ARGUMENT mailboxIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetMailboxIdsByReceipt
Description

Gets the list of Mailbox Ids mapped to a Receipt.

Parametersosid.id.IdmessageId Id of a Receipt
Returnosid.id.IdList list of mailbox Ids
ErrorsNOT_FOUND messageId is not found
NULL_ARGUMENT messageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetMailboxesByReceipt
Description

Gets the list of Mailbox objects mapped to a Receipt.

Parametersosid.id.IdmessageId Id of a Receipt
Returnosid.messaging.MailboxList list of mailboxes
ErrorsNOT_FOUND messageId is not found
NULL_ARGUMENT messageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.