OSID Logo
OSID Specifications
messaging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.messaging.MessagingManager
Implementsosid.OsidManager
osid.messaging.MessagingProfile
Description

The message manager provides access to message lookup and creation sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:

  • MessagingSession: a session to send messages
  • MessageLookupSession: a session to retrieve messages
  • MessageQuerySession: a session to query for messages
  • MessageSearchSession: a session to search for messages
  • MessageAdminSession: a session to create and delete messages
  • MessageNotificationSession: a session to receive notifications pertaining to message changes
  • MessageMailboxSession: a session to look up message to mailbox mappings
  • MessageMailboxAssignmentSession: a session to manage message to mailbox mappings
  • MessageSmartMailboxSession: a session to manage dynamic mailboxes of messages
  • ReceiptLookupSession: a session to retrieve message receipts
  • ReceiptAdminSession: a session to update message receipts
  • ReceiptNotificationSession: a session to receive notifications pertaining to changes in message receipts
  • MailboxLookupSession: a session to retrieve mailboxes
  • MailboxQuerySession: a session to query mailboxes
  • MailboxSearchSession: a session to search for mailboxes
  • MailboxAdminSession: a session to create, update and delete mailboxes
  • MailboxNotificationSession: a session to receive notifications pertaining to changes in mailboxes
  • MailboxHierarchySession: a session to traverse mailbox hierarchies
  • MailboxHierarchyDesignSession: a session to manage mailbox hierarchies
MethodgetMessagingSession
Description

Gets the OsidSession associated with the message sending.

Returnosid.messaging.MessagingSession a MessagingSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessaging() is false
ComplianceoptionalThis method must be implemented if supportsMessaging() is true.
MethodgetMessageLookupSession
Description

Gets the OsidSession associated with the message lookup service.

Returnosid.messaging.MessageLookupSession a MessageLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageLookup() is false
ComplianceoptionalThis method must be implemented if supportsMessageLookup() is true.
MethodgetMessageLookupSessionForMailbox
Description

Gets the OsidSession associated with the message lookup service for the given mailbox.

Parametersosid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.MessageLookupSession a MessageLookupSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMessageLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMessageLookup() and supportsVisibleFederation() are true.
MethodgetMessageQuerySession
Description

Gets the OsidSession associated with the message query service.

Returnosid.messaging.MessageQuerySessiona MessageQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageQuery() is false
ComplianceoptionalThis method must be implemented if supportsMessageQuery() is true.
MethodgetMessageQuerySessionForMailbox
Description

Gets the OsidSession associated with the message query service for the given mailbox.

Parametersosid.id.IdmailboxIdthe Id of the Mailbox
Returnosid.messaging.MessageQuerySessiona MessageQuerySession
ErrorsNOT_FOUNDno mailbox found by the given Id
NULL_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageQuery() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMessageQuery() and supportsVisibleFederation() are true
MethodgetMessageSearchSession
Description

Gets a message search session.

Returnosid.messaging.MessageSearchSession a MessageSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageSearch() is false
ComplianceoptionalThis method must be implemented if supportsMessageSearch() is true.
MethodgetMessageSearchSessionForMailbox
Description

Gets a message search session for the given mailbox.

Parametersosid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.MessageSearchSession a MessageSearchSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMessageSearch() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMessageSearch() and supportsVisibleFederation() are true.
MethodgetMessageAdminSession
Description

Gets a message administration session for creating, updating and deleting messages.

Returnosid.messaging.MessageAdminSession a MessageAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageAdmin() is false
ComplianceoptionalThis method must be implemented if supportsMessageAdmin() is true.
MethodgetMessageAdminSessionForMailbox
Description

Gets a message administration session for the given mailbox.

Parametersosid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.MessageAdminSession a MessageAdminSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageAdmin() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMessageAdmin() and supportsVisibleFederation() are true.
MethodgetMessageNotificationSession
Description

Gets the notification session for notifications pertaining to message changes.

Parametersosid.messaging.MessageReceivermessageReceiverthe notification callback
Returnosid.messaging.MessageNotificationSession a MessageNotificationSession
ErrorsNULL_ARGUMENT messageReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageNotification() is false
ComplianceoptionalThis method must be implemented if supportsMessageNotification() is true.
MethodgetMessageNotificationSessionForMailbox
Description

Gets the message notification session for the given mailbox.

Parametersosid.messaging.MessageReceivermessageReceiverthe notification callback
osid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.MessageNotificationSession a MessageNotificationSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT messageReceiver or mailboxId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsMessageNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsMessageNotfication() and supportsVisibleFederation() are true.
MethodgetMessageMailboxSession
Description

Gets the session for retrieving message to mailbox mappings.

Returnosid.messaging.MessageMailboxSessiona MessageMailboxSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageMailbox() is false
ComplianceoptionalThis method must be implemented if supportsMessageMailbox() is true.
MethodgetMessageMailboxAssignmentSession
Description

Gets the session for assigning message to mailbox mappings.

Returnosid.messaging.MessageMailboxAssignmentSessiona MessageMailboxAssignmentSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageMailboxAssignment() is false
ComplianceoptionalThis method must be implemented if supportsMessageMailboxAssignment() is true.
MethodgetMessageSmartMailboxSession
Description

Gets the OsidSession to manage locatin smart mailboxes.

Parametersosid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.MessageSmartMailboxSessiona MessageSmartMailboxSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessageSmartMailbox() is false
ComplianceoptionalThis method must be implemented if supportsMessageSmartMailbox() is true.
MethodgetReceiptLookupSession
Description

Gets the OsidSession associated with the receipt lookup service.

Returnosid.messaging.ReceiptLookupSession a ReceiptLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsReceiptLookup() is false
ComplianceoptionalThis method must be implemented if supportsReceiptLookup() is true.
MethodgetReceiptLookupSessionForMailbox
Description

Gets the OsidSession associated with the receipt lookup service for the given mailbox.

Parametersosid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.ReceiptLookupSession a ReceiptLookupSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsReceiptLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsReceiptLookup() and supportsVisibleFederation() are true.
MethodgetReceiptAdminSession
Description

Gets the OsidSession associated with the receipt administrative service.

Returnosid.messaging.ReceiptAdminSession a ReceiptAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsReceiptAdmin() is false
ComplianceoptionalThis method must be implemented if supportsReceiptAdmin() is true.
MethodgetReceiptAdminSessionForMailbox
Description

Gets the OsidSession associated with the receipt administrative service for the given mailbox.

Parametersosid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.ReceiptAdminSession a ReceiptAdminSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT mailboxId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsReceiptAdmin() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsReceiptAdmin() and supportsVisibleFederation() are true.
MethodgetReceiptNotificationSession
Description

Gets the notification session for notifications pertaining to receipt changes.

Parametersosid.messaging.ReceiptReceiverreceiptReceiverthe notification callback
Returnosid.messaging.ReceiptNotificationSession a ReceiptNotificationSession
ErrorsNULL_ARGUMENT receiptReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsReceiptNotification() is false
ComplianceoptionalThis method must be implemented if supportsreceiptNotification() is true.
MethodgetReceiptNotificationSessionForMailbox
Description

Gets the receipt notification session for the given mailbox.

Parametersosid.messaging.ReceiptReceiverreceiptReceiverthe notification callback
osid.id.IdmailboxIdthe Id of the mailbox
Returnosid.messaging.ReceiptNotificationSession a ReceiptNotificationSession
ErrorsNOT_FOUND mailboxId not found
NULL_ARGUMENT receiptReceiver or mailboxId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsReceiptNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsReceiptNotfication() and supportsVisibleFederation() are true.
MethodgetMailboxLookupSession
Description

Gets the mailbox lookup session.

Returnosid.messaging.MailboxLookupSessiona MailboxLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxLookup() is false
ComplianceoptionalThis method must be implemented if supportsMailboxLookup() is true.
MethodgetMailboxQuerySession
Description

Gets the mailbox query session.

Returnosid.messaging.MessageQuerySessiona MailboxQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxQuery() is false
ComplianceoptionalThis method must be implemented if supportsMailboxQuery() is true.
MethodgetMailboxSearchSession
Description

Gets the mailbox search session.

Returnosid.messaging.MailboxSearchSessiona MailboxSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxSearch() is false
ComplianceoptionalThis method must be implemented if supportsMailboxSearch() is true.
MethodgetMailboxAdminSession
Description

Gets the mailbox administrative session for creating, updating and deleteing mailboxes.

Returnosid.messaging.MailboxAdminSessiona MailboxAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxAdmin() is false
ComplianceoptionalThis method must be implemented if supportsMailboxAdmin() is true.
MethodgetMailboxNotificationSession
Description

Gets the notification session for subscribing to changes to a mailbox.

Parametersosid.messaging.MailboxReceivermailboxReceiverthe notification callback
Returnosid.messaging.MailboxNotificationSessiona MailboxNotificationSession
ErrorsNULL_ARGUMENT mailboxReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxNotification() is false
ComplianceoptionalThis method must be implemented if supportsMailboxNotification() is true.
MethodgetMailboxHierarchySession
Description

Gets the mailbox hierarchy traversal session.

Returnosid.messaging.MailboxHierarchySession a MailboxHierarchySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxHierarchy() is false
ComplianceoptionalThis method must be implemented if supportsMailboxHierarchy() is true.
MethodgetMailboxHierarchyDesignSession
Description

Gets the mailbox hierarchy design session.

Returnosid.messaging.MailboxHierarchyDesignSessiona MailboxHierarchyDesignSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMailboxHierarchyDesign() is false
ComplianceoptionalThis method must be implemented if supportsMailboxHierarchyDesign() is true.
MethodgetMessagingBatchManager
Description

Gets a MessagingBatchManager.

Returnosid.messaging.batch.MessagingBatchManagera MessagingBatchManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsMessagingBatch() is false
ComplianceoptionalThis method must be implemented if supportsMessagingBatch() is true.