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

This session defines methods to receive notifications on new and changed Receipts in this Mailbox. This also includes existing receipts that may appear or disappear due to changes in the Mailbox hierarchy, This session is intended for consumers needing to synchronize their receipts with this service without the use of polling. Notifications are cancelled when this session is closed.

The two views defined in this session correspond to the views in the ReceiptLookupSession.

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

Tests if this user can register for Receipt notifications. 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 notification operations.

Returnboolean false if notification 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 is must be implemented.
MethoduseIsolatedMailboxView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableReceiptNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeReceiptNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableReceiptNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeReceiptNotification
Description

Acknowledge a receipt notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewReceipts
Description

Register for notifications of new receipts. ReceiptReceiver.newReceipts() is invoked when a new Receipt is appears in this mailbox.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewReceiptsForMessage
Description

Register for notifications of new receipts for the specified message. ReceiptReceiver.newReceipts() is invoked when a new Receipt is appears in this mailbox.

Parametersosid.id.IdmessageId the Id of the Message to monitor
ErrorsNULL_ARGUMENT messageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewReceiptsByRecipient
Description

Register for notifications of new receipts for the specified recipient. ReceiptReceiver.newReceipst() is invoked when a new Receipt is appears in this mailbox.

Parametersosid.id.IdrecipientId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT recipientId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedReceipts
Description

Registers for notification of updated receipts. ReceiptReceiver.changedReceipts() is invoked when a receipt in this mailbox is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedReceiptsForMessage
Description

Register for notifications of updated receipts for the specified message. ReceiptReceiver.changedReceipts() is invoked when a Receipt in this mailbox is changed.

Parametersosid.id.IdmessageId the Id of the Message to monitor
ErrorsNULL_ARGUMENT messageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedReceiptsByRecipient
Description

Register for notifications of updated receipts for the specified recipient. ReceiptReceiver.changedReceipts() is invoked when a Receipt in this mailbox is changed.

Parametersosid.id.IdrecipientId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT recipientId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedReceipt
Description

Registers for notification of an updated receipt. ReceiptReceiver.changedReceipt() is invoked when the specified receipt in this mailbox is changed.

Parametersosid.id.IdreceiptId the Id of the Receipt to monitor
ErrorsNULL_ARGUMENT receiptId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedReceipts
Description

Registers for notification of receipts whose messages have been deleted or removed from this mailbox. ReceiptReceiver.deletedReceipts() is invoked when a receipt is deleted or removed from this mailbox.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedReceiptsForMessage
Description

Register for notifications of deleted receipts for the specified message. ReceiptReceiver.deletedReceipts() is invoked when a Receipt in this mailbox is removed.

Parametersosid.id.IdmessageId the Id of the Message to monitor
ErrorsNULL_ARGUMENT messageId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedReceiptsByRecipient
Description

Register for notifications of deleted receipts for the specified recipient. ReceiptReceiver.deletedReceipts() is invoked when a Receipt in this mailbox is removed.

Parametersosid.id.IdrecipientId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT recipientId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedReceipt
Description

Registers for notification of a deleted receipt. MessageReceiver.deletedReceipts() is invoked when the specified receipt is deleted or removed from this mailbox.

Parametersosid.id.IdreceiptId the Id of the Receipt to monitor
ErrorsNULL_ARGUMENT receiptId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.