public class MailIndexService extends java.lang.Object implements IMailIndexService
IMailIndexService.BulkOperation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHILD_TYPE |
static java.lang.String |
INDEX_PENDING |
static java.lang.String |
INDEX_PENDING_ALIAS |
static java.lang.String |
JOIN_FIELD |
static java.lang.String |
PARENT_TYPE |
static int |
SIZE |
Constructor and Description |
---|
MailIndexService() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkMailbox(java.lang.String entityId) |
void |
cleanupFolder(ItemValue<Mailbox> box,
ItemValue<MailboxFolder> f,
java.util.Set<java.lang.Integer> set) |
void |
createMailbox(java.lang.String mailboxUid) |
void |
deleteBodyEntries(java.util.List<java.lang.String> bodyIds) |
void |
deleteBox(ItemValue<Mailbox> box,
java.lang.String folderUid) |
void |
deleteMailbox(java.lang.String entityId) |
void |
expunge(ItemValue<Mailbox> box,
ItemValue<MailboxFolder> f,
IDSet set) |
java.util.List<MailSummary> |
fetchSummary(ItemValue<Mailbox> box,
ItemValue<MailboxFolder> f,
IDSet set) |
double |
getArchivedMailSum(java.lang.String userEntityId) |
java.util.Set<java.lang.String> |
getFolders(java.lang.String entityId) |
java.lang.String |
getIndexAliasName(java.lang.String entityId) |
static org.elasticsearch.client.Client |
getIndexClient() |
java.util.List<ShardStats> |
getStats() |
void |
moveMailbox(java.lang.String mailboxUid,
java.lang.String indexName) |
void |
repairMailbox(java.lang.String entityId,
IServerTaskMonitor monitor)
check if alias exists, if not create it.
|
SearchResult |
searchItems(java.lang.String dirEntryUid,
MailboxFolderSearchQuery searchQuery) |
IMailIndexService.BulkOperation |
startBulk() |
java.util.Map<java.lang.String,java.lang.Object> |
storeBody(IndexedMessageBody body) |
void |
storeMessage(java.lang.String mailboxUniqueId,
ItemValue<MailboxRecord> item,
java.lang.String user,
java.util.Optional<IMailIndexService.BulkOperation> bulk) |
void |
syncFlags(ItemValue<Mailbox> box,
ItemValue<MailboxFolder> f,
java.util.List<MailSummary> mails) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
storeMessage
public static final int SIZE
public static final java.lang.String JOIN_FIELD
public static final java.lang.String PARENT_TYPE
public static final java.lang.String CHILD_TYPE
public static final java.lang.String INDEX_PENDING
public static final java.lang.String INDEX_PENDING_ALIAS
public java.lang.String getIndexAliasName(java.lang.String entityId)
public java.util.Map<java.lang.String,java.lang.Object> storeBody(IndexedMessageBody body)
storeBody
in interface IMailIndexService
public void deleteBodyEntries(java.util.List<java.lang.String> bodyIds)
deleteBodyEntries
in interface IMailIndexService
public IMailIndexService.BulkOperation startBulk()
startBulk
in interface IMailIndexService
public void storeMessage(java.lang.String mailboxUniqueId, ItemValue<MailboxRecord> item, java.lang.String user, java.util.Optional<IMailIndexService.BulkOperation> bulk)
storeMessage
in interface IMailIndexService
public void deleteBox(ItemValue<Mailbox> box, java.lang.String folderUid)
deleteBox
in interface IMailIndexService
public void expunge(ItemValue<Mailbox> box, ItemValue<MailboxFolder> f, IDSet set)
expunge
in interface IMailIndexService
public void cleanupFolder(ItemValue<Mailbox> box, ItemValue<MailboxFolder> f, java.util.Set<java.lang.Integer> set)
cleanupFolder
in interface IMailIndexService
public static org.elasticsearch.client.Client getIndexClient()
public java.util.List<MailSummary> fetchSummary(ItemValue<Mailbox> box, ItemValue<MailboxFolder> f, IDSet set)
fetchSummary
in interface IMailIndexService
public void syncFlags(ItemValue<Mailbox> box, ItemValue<MailboxFolder> f, java.util.List<MailSummary> mails)
syncFlags
in interface IMailIndexService
public double getArchivedMailSum(java.lang.String userEntityId)
getArchivedMailSum
in interface IMailIndexService
public void createMailbox(java.lang.String mailboxUid)
createMailbox
in interface IMailIndexService
public java.util.Set<java.lang.String> getFolders(java.lang.String entityId)
getFolders
in interface IMailIndexService
public void deleteMailbox(java.lang.String entityId)
deleteMailbox
in interface IMailIndexService
public void repairMailbox(java.lang.String entityId, IServerTaskMonitor monitor)
IMailIndexService
repairMailbox
in interface IMailIndexService
public boolean checkMailbox(java.lang.String entityId)
checkMailbox
in interface IMailIndexService
public void moveMailbox(java.lang.String mailboxUid, java.lang.String indexName)
moveMailbox
in interface IMailIndexService
public java.util.List<ShardStats> getStats()
getStats
in interface IMailIndexService
public SearchResult searchItems(java.lang.String dirEntryUid, MailboxFolderSearchQuery searchQuery)
searchItems
in interface IMailIndexService
Copyright © 2021. All Rights Reserved.