Interface MessagingManager
- All Superinterfaces:
AutoCloseable, Closeable, MessagingProfile, OsidManager, OsidManager, OsidProfile, Sourceable
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: asession to retrieve message receipts -
ReceiptAdminSession: a session to update message receipts -
ReceiptNotificationSession: a session to receive notifications pertaining to changes in message receipts
-
MailboxLookupSession: asession 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
-
Method Summary
Modifier and TypeMethodDescriptionGets the mailbox administrative session for creating, updating and deleteing mailboxes.Gets the mailbox hierarchy design session.Gets the mailbox hierarchy traversal session.Gets the mailbox lookup session.getMailboxNotificationSession(MailboxReceiver mailboxReceiver) Gets the notification session for subscribing to changes to a mailbox.Gets the mailbox query session.Gets the mailbox search session.Gets a message administration session for creating, updating and deleting messages.getMessageAdminSessionForMailbox(Id mailboxId) Gets a message administration session for the given mailbox.Gets theOsidSessionassociated with the message lookup service.getMessageLookupSessionForMailbox(Id mailboxId) Gets theOsidSessionassociated with the message lookup service for the given mailbox.Gets the session for assigning message to mailbox mappings.Gets the session for retrieving message to mailbox mappings.getMessageNotificationSession(MessageReceiver messageReceiver) Gets the notification session for notifications pertaining to message changes.getMessageNotificationSessionForMailbox(MessageReceiver messageReceiver, Id mailboxId) Gets the message notification session for the given mailbox.Gets theOsidSessionassociated with the message query service.getMessageQuerySessionForMailbox(Id mailboxId) Gets theOsidSessionassociated with the message query service for the given mailbox.Gets a message search session.getMessageSearchSessionForMailbox(Id mailboxId) Gets a message search session for the given mailbox.getMessageSmartMailboxSession(Id mailboxId) Gets theOsidSessionto manage locatin smart mailboxes.Gets aMessagingBatchManager.Gets theOsidSessionassociated with the message sending.Gets theOsidSessionassociated with the receipt administrative service.getReceiptAdminSessionForMailbox(Id mailboxId) Gets theOsidSessionassociated with the receipt administrative service for the given mailbox.Gets theOsidSessionassociated with the receipt lookup service.getReceiptLookupSessionForMailbox(Id mailboxId) Gets theOsidSessionassociated with the receipt lookup service for the given mailbox.getReceiptNotificationSession(ReceiptReceiver receiptReceiver) Gets the notification session for notifications pertaining to receipt changes.getReceiptNotificationSessionForMailbox(ReceiptReceiver receiptReceiver, Id mailboxId) Gets the receipt notification session for the given mailbox.Methods inherited from interface MessagingProfile
getMailboxRecordTypes, getMailboxSearchRecordTypes, getMessageRecordTypes, getMessageSearchRecordTypes, getReceiptRecordTypes, supportsMailboxAdmin, supportsMailboxHierarchy, supportsMailboxHierarchyDesign, supportsMailboxLookup, supportsMailboxNotification, supportsMailboxRecordType, supportsMailboxSearch, supportsMailboxSearchRecordType, supportsMessageAdmin, supportsMessageLookup, supportsMessageMailbox, supportsMessageMailboxAssignment, supportsMessageNotification, supportsMessageQuery, supportsMessageRecordType, supportsMessageSearch, supportsMessageSearchRecordType, supportsMessageSmartMailbox, supportsMessaging, supportsMessagingBatch, supportsReceiptAdmin, supportsReceiptLookup, supportsReceiptNotification, supportsReceiptRecordType, supportsVisibleFederationModifier and TypeMethodDescriptionGets all the mailbox record types supported.Gets all the mailbox search record types supported.Gets all the message record types supported.Gets all the message search record types supported.Gets all the receipt record types supported.booleanTests if mailbox administration is supported.booleanTests if a mailbox hierarchy traversal is supported.booleanTests if a mailbox hierarchy design is supported.booleanTests if mailbox lookup is supported.booleanTests if mailbox notification is supported.booleansupportsMailboxRecordType(Type mailboxRecordType) Tests if a given mailbox record type is supported.booleanTests if mailbox search is supported.booleansupportsMailboxSearchRecordType(Type mailboxSearchRecordType) Tests if a given mailbox search record type is supported.booleanTests if creating, updating and deleting messages is supported.booleanTests if message lookup is supported.booleanTests if retrieving mappings of message and mailboxes is supported.booleanTests if managing mappings of messages and mailboxes is supported.booleanTests if message notification is supported.booleanTests if querying messages is supported.booleansupportsMessageRecordType(Type messageRecordType) Tests if a given message record type is supported.booleanTests if message search is supported.booleansupportsMessageSearchRecordType(Type messageSearchRecordType) Tests if a given message search type is supported.booleanTests if a messaging smart mailbox service is supported.booleanTests if sending messages is supported.booleanTests if a messaging batch service is supported.booleanTests if updating receipts is supported.booleanTests if receipt lookup is supported.booleanTests if receipts notification is supported.booleansupportsReceiptRecordType(Type receiptRecordType) Tests if a given receipt record type is supported.booleanTests if federation is visible.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getMessagingSession
Gets theOsidSessionassociated with the message sending.- Returns:
a MessagingSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessaging()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessaging()} is {@code true} .
-
getMessageLookupSession
Gets theOsidSessionassociated with the message lookup service.- Returns:
a MessageLookupSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessageLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageLookup()} is {@code true} .
-
getMessageLookupSessionForMailbox
MessageLookupSession getMessageLookupSessionForMailbox(Id mailboxId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the message lookup service for the given mailbox.- Parameters:
mailboxId- theIdof the mailbox- Returns:
a MessageLookupSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsMessageLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getMessageQuerySession
Gets theOsidSessionassociated with the message query service.- Returns:
- a
MessageQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessageQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageQuery()} is {@code true} .
-
getMessageQuerySessionForMailbox
MessageQuerySession getMessageQuerySessionForMailbox(Id mailboxId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the message query service for the given mailbox.- Parameters:
mailboxId- theIdof theMailbox- Returns:
- a
MessageQuerySession - Throws:
NotFoundException- no mailbox found by the givenIdNullArgumentException-mailboxIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageQuery()} and {@code supportsVisibleFederation()} are {@code true}
-
getMessageSearchSession
Gets a message search session.- Returns:
a MessageSearchSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessageSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageSearch()} is {@code true} .
-
getMessageSearchSessionForMailbox
MessageSearchSession getMessageSearchSessionForMailbox(Id mailboxId) throws NotFoundException, OperationFailedException Gets a message search session for the given mailbox.- Parameters:
mailboxId- theIdof the mailbox- Returns:
a MessageSearchSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsMessageSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageSearch()} and {@code supportsVisibleFederation()} are {@code true} .
-
getMessageAdminSession
Gets a message administration session for creating, updating and deleting messages.- Returns:
a MessageAdminSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessageAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageAdmin()} is {@code true} .
-
getMessageAdminSessionForMailbox
MessageAdminSession getMessageAdminSessionForMailbox(Id mailboxId) throws NotFoundException, OperationFailedException Gets a message administration session for the given mailbox.- Parameters:
mailboxId- theIdof the mailbox- Returns:
a MessageAdminSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getMessageNotificationSession
MessageNotificationSession getMessageNotificationSession(MessageReceiver messageReceiver) throws OperationFailedException Gets the notification session for notifications pertaining to message changes.- Parameters:
messageReceiver- the notification callback- Returns:
a MessageNotificationSession- Throws:
NullArgumentException-messageReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageNotification()} is {@code true} .
-
getMessageNotificationSessionForMailbox
MessageNotificationSession getMessageNotificationSessionForMailbox(MessageReceiver messageReceiver, Id mailboxId) throws NotFoundException, OperationFailedException Gets the message notification session for the given mailbox.- Parameters:
messageReceiver- the notification callbackmailboxId- theIdof the mailbox- Returns:
a MessageNotificationSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-messageReceiverormailboxIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsMessageNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageNotfication()} and {@code supportsVisibleFederation()} are {@code true} .
-
getMessageMailboxSession
Gets the session for retrieving message to mailbox mappings.- Returns:
- a
MessageMailboxSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessageMailbox()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageMailbox()} is {@code true} .
-
getMessageMailboxAssignmentSession
MessageMailboxAssignmentSession getMessageMailboxAssignmentSession() throws OperationFailedExceptionGets the session for assigning message to mailbox mappings.- Returns:
- a
MessageMailboxAssignmentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessageMailboxAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageMailboxAssignment()} is {@code true} .
-
getMessageSmartMailboxSession
MessageSmartMailboxSession getMessageSmartMailboxSession(Id mailboxId) throws NotFoundException, OperationFailedException Gets theOsidSessionto manage locatin smart mailboxes.- Parameters:
mailboxId- theIdof the mailbox- Returns:
- a
MessageSmartMailboxSession - Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageSmartMailbox()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageSmartMailbox()} is {@code true} .
-
getReceiptLookupSession
Gets theOsidSessionassociated with the receipt lookup service.- Returns:
a ReceiptLookupSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsReceiptLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptLookup()} is {@code true} .
-
getReceiptLookupSessionForMailbox
ReceiptLookupSession getReceiptLookupSessionForMailbox(Id mailboxId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the receipt lookup service for the given mailbox.- Parameters:
mailboxId- theIdof the mailbox- Returns:
a ReceiptLookupSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsReceiptLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getReceiptAdminSession
Gets theOsidSessionassociated with the receipt administrative service.- Returns:
a ReceiptAdminSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsReceiptAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptAdmin()} is {@code true} .
-
getReceiptAdminSessionForMailbox
ReceiptAdminSession getReceiptAdminSessionForMailbox(Id mailboxId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the receipt administrative service for the given mailbox.- Parameters:
mailboxId- theIdof the mailbox- Returns:
a ReceiptAdminSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsReceiptAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getReceiptNotificationSession
ReceiptNotificationSession getReceiptNotificationSession(ReceiptReceiver receiptReceiver) throws OperationFailedException Gets the notification session for notifications pertaining to receipt changes.- Parameters:
receiptReceiver- the notification callback- Returns:
a ReceiptNotificationSession- Throws:
NullArgumentException-receiptReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsReceiptNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsreceiptNotification()} is {@code true} .
-
getReceiptNotificationSessionForMailbox
ReceiptNotificationSession getReceiptNotificationSessionForMailbox(ReceiptReceiver receiptReceiver, Id mailboxId) throws NotFoundException, OperationFailedException Gets the receipt notification session for the given mailbox.- Parameters:
receiptReceiver- the notification callbackmailboxId- theIdof the mailbox- Returns:
a ReceiptNotificationSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-receiptReceiverormailboxIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsReceiptNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptNotfication()} and {@code supportsVisibleFederation()} are {@code true} .
-
getMailboxLookupSession
Gets the mailbox lookup session.- Returns:
- a
MailboxLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMailboxLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxLookup()} is {@code true} .
-
getMailboxQuerySession
Gets the mailbox query session.- Returns:
- a
MailboxQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMailboxQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxQuery()} is {@code true} .
-
getMailboxSearchSession
Gets the mailbox search session.- Returns:
- a
MailboxSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMailboxSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxSearch()} is {@code true} .
-
getMailboxAdminSession
Gets the mailbox administrative session for creating, updating and deleteing mailboxes.- Returns:
- a
MailboxAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMailboxAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxAdmin()} is {@code true} .
-
getMailboxNotificationSession
MailboxNotificationSession getMailboxNotificationSession(MailboxReceiver mailboxReceiver) throws OperationFailedException Gets the notification session for subscribing to changes to a mailbox.- Parameters:
mailboxReceiver- the notification callback- Returns:
- a
MailboxNotificationSession - Throws:
NullArgumentException-mailboxReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMailboxNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxNotification()} is {@code true} .
-
getMailboxHierarchySession
Gets the mailbox hierarchy traversal session.- Returns:
a MailboxHierarchySession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMailboxHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxHierarchy()} is {@code true} .
-
getMailboxHierarchyDesignSession
Gets the mailbox hierarchy design session.- Returns:
- a
MailboxHierarchyDesignSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMailboxHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxHierarchyDesign()} is {@code true} .
-
getMessagingBatchManager
Gets aMessagingBatchManager.- Returns:
- a
MessagingBatchManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessagingBatch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessagingBatch()} is {@code true} .
-