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

This session defines methods to receive notifications on adds/changes to Message objects in this Mailbox. This also includes existing messages that may appear or disappear due to changes in the Mailbox hierarchy, This session is intended for consumers needing to synchronize their message 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 MessageLookupSession.

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

Tests if this user can register for Message 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 messages 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.
MethodreliableMessageNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableMessageNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeMessageNotification
Description

Acknowledge a message 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.
MethodregisterForNewMessages
Description

Register for notifications of new messages. MessageReceiver.newMessages() is invoked when a new Message is appears in this mailbox.

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

Register for notifications of new messages from sender. MessageReceiver.newMessages() is invoked when a new Message is appears in this mailbox.

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

Register for notifications of new messages for a recipient. MessageReceiver.newMessages() is invoked when a new Message is appears in this mailbox.

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

Registers for notification of updated messages. MessageReceiver.changedMessages() is invoked when a message in this mailbox is changed.

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

Register for notifications of updated messages from sender. MessageReceiver.updatedMessages() is invoked when a Message in this mailbox is changed.

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

Register for notifications of updated messages for a recipient. MessageReceiver.updatedMessages() is invoked when a Message in this mailbox is changed.

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

Registers for notification of an updated message. MessageReceiver.changedMessage() is invoked when the specified message 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.
MethodregisterForDeletedMessages
Description

Registers for notification of deleted messages. MessageReceiver.deletedMessages() is invoked when a message is deleted or removed from this mailbox.

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

Register for notifications of deleted messages from sender. MessageReceiver.deletedMessages() is invoked when a Message is deleted or removed from this mailbox.

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

Register for notifications of deleted messages for a recipient. MessageReceiver.deletedMessages() is invoked when a Message is deleted or removed from this mailbox.

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

Registers for notification of a deleted message. MessageReceiver.deletedMessages() is invoked when the specified message is deleted or removed from 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.