Interface MessagingProxyManager
- All Superinterfaces:
AutoCloseable, Closeable, MessagingProfile, OsidProfile, OsidProxyManager, OsidProxyManager, Sourceable
The message manager provides access to message lookup and creation
session and provides interoperability tests for various aspects of this
service. Methods in this manager support the passing of a Proxy
for the purposes of passing information from a server environment. 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 TypeMethodDescriptiongetMailboxAdminSession(Proxy proxy) Gets the mailbox administrative session for creating, updating and deleteing mailboxes.Gets the mailbox hierarchy design session.getMailboxHierarchySession(Proxy proxy) Gets the mailbox hierarchy traversal session.getMailboxLookupSession(Proxy proxy) Gets the mailbox lookup session.getMailboxNotificationSession(MailboxReceiver mailboxReceiver, Proxy proxy) Gets the notification session for subscribing to changes to a mailbox.getMailboxQuerySession(Proxy proxy) Gets the mailbox query session.getMailboxSearchSession(Proxy proxy) Gets the mailbox search session.getMessageAdminSession(Proxy proxy) Gets a message administration session for creating, updating and deleting messages.getMessageAdminSessionForMailbox(Id mailboxId, Proxy proxy) Gets a message administration session for the given mailbox.getMessageLookupSession(Proxy proxy) Gets theOsidSessionassociated with the message lookup service.getMessageLookupSessionForMailbox(Id mailboxId, Proxy proxy) Gets theOsidSessionassociated with the message lookup service for the given mailbox.Gets the session for assigning message to mailbox mappings.getMessageMailboxSession(Proxy proxy) Gets the session for retrieving message to mailbox mappings.getMessageNotificationSession(MessageReceiver messageReceiver, Proxy proxy) Gets the message notification session for the given mailbox.getMessageNotificationSessionForMailbox(MessageReceiver messageReceiver, Id mailboxId, Proxy proxy) Gets the message notification session for the given mailbox.getMessageQuerySession(Proxy proxy) Gets theOsidSessionassociated with the message query service.getMessageQuerySessionForMailbox(Id mailboxId, Proxy proxy) Gets theOsidSessionassociated with the message query service for the given mailbox.getMessageSearchSession(Proxy proxy) Gets a message search session.getMessageSearchSessionForMailbox(Id mailboxId, Proxy proxy) Gets a message search session for the given mailbox.getMessageSmartMailboxSession(Id mailboxId, Proxy proxy) Gets theOsidSessionto manage message smart mailboxes.Gets aMessagingBatchProxyManager.getMessagingSession(Proxy proxy) Gets theOsidSessionassociated with the message sending service.getReceiptAdminSession(Proxy proxy) Gets theOsidSessionassociated with the receipt administrative service.getReceiptAdminSessionForMailbox(Id mailboxId, Proxy proxy) Gets theOsidSessionassociated with the receipt administrative service for the given mailbox.getReceiptLookupSession(Proxy proxy) Gets theOsidSessionassociated with the receipt lookup service.getReceiptLookupSessionForMailbox(Id mailboxId, Proxy proxy) Gets theOsidSessionassociated with the receipt lookup service for the given mailbox.getReceiptNotificationSession(ReceiptReceiver receiptReceiver, Proxy proxy) Gets the notification session for notifications pertaining to receipt changes.getReceiptNotificationSessionForMailbox(ReceiptReceiver receiptReceiver, Id mailboxId, Proxy proxy) 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 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 OsidProxyManager
closeMethods inherited from interface OsidProxyManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId, Proxy proxy) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime, Proxy proxy) Rolls back this service to a point in time.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 service.- Parameters:
proxy- a proxy- Returns:
a MessagingSession- Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
a MessageLookupSession- Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageLookup()} is {@code true} .
-
getMessageLookupSessionForMailbox
MessageLookupSession getMessageLookupSessionForMailbox(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the message lookup service for the given mailbox.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
a MessageLookupSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdorproxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
- a
MessageQuerySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageQuery()} is {@code true} .
-
getMessageQuerySessionForMailbox
MessageQuerySession getMessageQuerySessionForMailbox(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the message query service for the given mailbox.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
- a
MessageQuerySession - Throws:
NotFoundException- noMailboxfound by the givenIdNullArgumentException-mailboxIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
a MessageSearchSession- Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageSearch()} is {@code true} .
-
getMessageSearchSessionForMailbox
MessageSearchSession getMessageSearchSessionForMailbox(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets a message search session for the given mailbox.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
a MessageSearchSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdorproxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
a MessageAdminSession- Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageAdmin()} is {@code true} .
-
getMessageAdminSessionForMailbox
MessageAdminSession getMessageAdminSessionForMailbox(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets a message administration session for the given mailbox.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
a MessageAdminSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdorproxyisnullOperationFailedException- 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, Proxy proxy) throws OperationFailedException Gets the message notification session for the given mailbox.- Parameters:
messageReceiver- notification callbackproxy- a proxy- Returns:
a MessageNotificationSession- Throws:
NullArgumentException-messageReceiverorproxyisnullOperationFailedException- 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, Proxy proxy) throws NotFoundException, OperationFailedException Gets the message notification session for the given mailbox.- Parameters:
messageReceiver- notification callbackmailboxId- theIdof the mailboxproxy- a proxy- Returns:
a MessageNotificationSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-messageReceiver, mailboxIdorproxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
- a
MessageMailboxSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageMailbox()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageMailbox()} is {@code true} .
-
getMessageMailboxAssignmentSession
MessageMailboxAssignmentSession getMessageMailboxAssignmentSession(Proxy proxy) throws OperationFailedException Gets the session for assigning message to mailbox mappings.- Parameters:
proxy- a proxy- Returns:
- a
MessageMailboxAssignmentSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMessageMailboxAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessageMailboxAssignment()} is {@code true} .
-
getMessageSmartMailboxSession
MessageSmartMailboxSession getMessageSmartMailboxSession(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionto manage message smart mailboxes.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
- a
MessageSmartMailboxesession - Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
a ReceiptLookupSession- Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsReceiptLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptLookup()} is {@code true} .
-
getReceiptLookupSessionForMailbox
ReceiptLookupSession getReceiptLookupSessionForMailbox(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the receipt lookup service for the given mailbox.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
a ReceiptLookupSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdorproxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
a ReceiptAdminSession- Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsReceiptAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsReceiptAdmin()} is {@code true} .
-
getReceiptAdminSessionForMailbox
ReceiptAdminSession getReceiptAdminSessionForMailbox(Id mailboxId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the receipt administrative service for the given mailbox.- Parameters:
mailboxId- theIdof the mailboxproxy- a proxy- Returns:
a ReceiptAdminSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-mailboxIdorproxyisnullOperationFailedException-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, Proxy proxy) throws OperationFailedException Gets the notification session for notifications pertaining to receipt changes.- Parameters:
receiptReceiver- the notification callbackproxy- a proxy- Returns:
a ReceiptNotificationSession- Throws:
NullArgumentException-receiptReceiverorproxyisnullOperationFailedException- 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, Proxy proxy) throws NotFoundException, OperationFailedException Gets the receipt notification session for the given mailbox.- Parameters:
receiptReceiver- the notification callbackmailboxId- theIdof the mailboxproxy- a proxy- Returns:
a ReceiptNotificationSession- Throws:
NotFoundException-mailboxIdnot foundNullArgumentException-receiptReceiver, mailboxIdorproxyisnullOperationFailedException-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.- Parameters:
proxy- a proxy- Returns:
- a
MailboxLookupSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
- a
MailboxQuerySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
- a
MailboxSearchSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
- a
MailboxAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMailboxAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxAdmin()} is {@code true} .
-
getMailboxNotificationSession
MailboxNotificationSession getMailboxNotificationSession(MailboxReceiver mailboxReceiver, Proxy proxy) throws OperationFailedException Gets the notification session for subscribing to changes to a mailbox.- Parameters:
mailboxReceiver- notification callbackproxy- a proxy- Returns:
- a
MailboxNotificationSession - Throws:
NullArgumentException-mailboxReceiverorproxyisnullOperationFailedException- 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.- Parameters:
proxy- a proxy- Returns:
a MailboxHierarchySession- Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMailboxHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxHierarchy()} is {@code true} .
-
getMailboxHierarchyDesignSession
MailboxHierarchyDesignSession getMailboxHierarchyDesignSession(Proxy proxy) throws OperationFailedException Gets the mailbox hierarchy design session.- Parameters:
proxy- a proxy- Returns:
- a
MailboxHierarchyDesignSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsMailboxHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMailboxHierarchyDesign()} is {@code true} .
-
getMessagingBatchProxyManager
Gets aMessagingBatchProxyManager.- Returns:
- a
MessagingBatchProxyManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsMessagingBatch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMessagingBatch()} is {@code true} .
-