Package net.bluemind.backend.mail.api
Interface IMailboxFolders
- All Superinterfaces:
IBaseMailboxFolders
,IChangelogSupport
,IReadByIdSupport<MailboxFolder>
- All Known Subinterfaces:
IMailboxFoldersByContainer
@Path("/mail_folders/{partition}/{mailboxRoot}")
public interface IMailboxFolders
extends IBaseMailboxFolders, IReadByIdSupport<MailboxFolder>
API to access the hierarchy of a user or shared mailbox.
partition
: vagrant_vmw (domain name with dots replaced by '_')
mailbox_root
: user.log^in (for a user with the login log.in) or
shar^ed (for a mailshare with the name shar.ed).
The uid of items returned by this API are sometime called the uniqueid of the
mailbox folders. You can pass those uid(s) to
MailEventAddresses.mailboxContentChanged(String)
to obtain the vertx
eventbus address that will receive notifications when the content of a folder
changes.
This API is tied to a container of MailboxFolder
with a changelog.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBasic
(MailboxFolder value) createForHierarchy
(long hierId, MailboxFolder value) void
deepDelete
(long id) Also delete all known child folders.void
deleteById
(long id) void
emptyFolder
(long id) Empty an email folder including child folders.importItems
(long folderDestinationId, ImportMailboxItemSet mailboxItems) Import MailboxItems from a source folder describeImportMailboxItemSet.mailboxFolderId
Source and destination folders must be in the same subtreevoid
markFolderAsRead
(long id) Mark folder as read (does not include sub-folders).void
removeMessages
(long id) Empty an email folder keeping child folders.updateById
(long id, MailboxFolder value) Methods inherited from interface net.bluemind.backend.mail.api.IBaseMailboxFolders
all, byName, childrensOf, getComplete, root, searchItems, trash
Methods inherited from interface net.bluemind.core.container.api.IChangelogSupport
allIds, changeset, changesetById, filteredChangesetById, getVersion, itemChangelog
Methods inherited from interface net.bluemind.core.container.api.IReadByIdSupport
getCompleteById, multipleGetById
-
Method Details
-
updateById
-
createForHierarchy
@PUT @Path("id/{hierarchyId}") ItemIdentifier createForHierarchy(@PathParam("hierarchyId") long hierId, MailboxFolder value) - Parameters:
hierId
- the numerical id we want to end up with inIContainersFlatHierarchy
value
- the folder to create- Returns:
- the identifier allocated in the subtree container
-
createBasic
- Parameters:
value
- the folder to create- Returns:
- the identifier allocated in the subtree container
-
deleteById
@DELETE @Path("id/{id}") void deleteById(@PathParam("id") long id) -
deepDelete
@DELETE @Path("deep/{id}") void deepDelete(@PathParam("id") long id) Also delete all known child folders.- Parameters:
id
- the folder identifier
-
emptyFolder
@DELETE @Path("empty/{id}") void emptyFolder(@PathParam("id") long id) Empty an email folder including child folders.- Parameters:
id
- the folder identifier
-
removeMessages
@DELETE @Path("removeMessages/{id}") void removeMessages(@PathParam("id") long id) Empty an email folder keeping child folders.- Parameters:
id
- the folder identifier
-
markFolderAsRead
@PUT @Path("markAsRead/{id}") void markFolderAsRead(@PathParam("id") long id) Mark folder as read (does not include sub-folders).- Parameters:
id
- the folder identifier
-
importItems
@PUT @Path("importItems/{folderDestinationId}") ImportMailboxItemsStatus importItems(@PathParam("folderDestinationId") long folderDestinationId, ImportMailboxItemSet mailboxItems) throws ServerFault Import MailboxItems from a source folder describeImportMailboxItemSet.mailboxFolderId
Source and destination folders must be in the same subtree- Parameters:
folderDestinationId
-mailboxItems
-- Returns:
- Throws:
ServerFault
-