public class ImapReplicatedMailboxesService extends BaseReplicatedMailboxesService implements IMailboxFolders, IMailboxFoldersByContainer
container, context, contStore, dataLocation, rbac, replicaStore, root, storeService
Constructor and Description |
---|
ImapReplicatedMailboxesService(MailboxReplicaRootDescriptor root,
Container cont,
BmContext context,
MailboxReplicaStore store,
ContainerStoreService<MailboxReplica> mboxReplicaStore,
ContainerStore contStore) |
Modifier and Type | Method and Description |
---|---|
ItemIdentifier |
createBasic(MailboxFolder value) |
ItemIdentifier |
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.
|
ItemValue<MailboxFolder> |
getCompleteById(long id) |
ImportMailboxItemsStatus |
importItems(long id,
ImportMailboxItemSet mailboxItems)
Import MailboxItems from a source folder describe
ImportMailboxItemSet.mailboxFolderId
Source and destination folders must be in the same subtree |
void |
markFolderAsRead(long id)
Mark folder as read (does not include sub-folders).
|
void |
removeMessages(long id)
Empty an email folder keeping child folders.
|
Ack |
updateById(long id,
MailboxFolder value) |
adapt, all, byName, byReplicaName, changeset, changesetById, containerChangelog, decodeIfUTF7, filteredChangesetById, getComplete, getCompleteReplica, getMultipleById, getVersion, itemChangelog, sanitizeNames, searchItems
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
all, byName, getComplete, getMultipleById, searchItems
allIds, changeset, changesetById, containerChangelog, filteredChangesetById, getVersion, itemChangelog
public ImapReplicatedMailboxesService(MailboxReplicaRootDescriptor root, Container cont, BmContext context, MailboxReplicaStore store, ContainerStoreService<MailboxReplica> mboxReplicaStore, ContainerStore contStore)
public ItemValue<MailboxFolder> getCompleteById(long id)
getCompleteById
in interface IMailboxFolders
public Ack updateById(long id, MailboxFolder value)
updateById
in interface IMailboxFolders
public ItemIdentifier createForHierarchy(long hierId, MailboxFolder value)
createForHierarchy
in interface IMailboxFolders
hierId
- the numerical id we want to end up with in
IContainersFlatHierarchy
value
- the folder to createpublic ItemIdentifier createBasic(MailboxFolder value)
createBasic
in interface IMailboxFolders
value
- the folder to createpublic void deleteById(long id)
deleteById
in interface IMailboxFolders
public void deepDelete(long id)
IMailboxFolders
deepDelete
in interface IMailboxFolders
id
- the folder identifierpublic void emptyFolder(long id)
IMailboxFolders
emptyFolder
in interface IMailboxFolders
id
- the folder identifierpublic void removeMessages(long id)
IMailboxFolders
removeMessages
in interface IMailboxFolders
id
- the folder identifierpublic void markFolderAsRead(long id)
IMailboxFolders
markFolderAsRead
in interface IMailboxFolders
id
- the folder identifierpublic ImportMailboxItemsStatus importItems(long id, ImportMailboxItemSet mailboxItems) throws ServerFault
IMailboxFolders
ImportMailboxItemSet.mailboxFolderId
Source and destination folders must be in the same subtreeimportItems
in interface IMailboxFolders
ServerFault
Copyright © 2021. All Rights Reserved.