OSID Logo
OSID Specifications
messaging package
Version 3.0.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.Idthe Mailbox Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetMailbox
Description

Gets the Mailbox associated with this session.

Returnosid.messaging.Mailboxthe Mailbox associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedMailboxView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableReceiptNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableReceiptNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeReceiptNotification
Description

Acknowledge a receipt notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdmessageIdthe Id of the Message to monitor
ErrorsNULL_ARGUMENTmessageId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrecipientIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENTrecipientId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdmessageIdthe Id of the Message to monitor
ErrorsNULL_ARGUMENTmessageId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrecipientIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENTrecipientId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdreceiptIdthe Id of the Receipt to monitor
ErrorsNULL_ARGUMENTreceiptId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdmessageIdthe Id of the Message to monitor
ErrorsNULL_ARGUMENTmessageId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrecipientIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENTrecipientId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdreceiptIdthe Id of the Receipt to monitor
ErrorsNULL_ARGUMENTreceiptId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.