public class MailIndexService extends java.lang.Object implements IMailIndexService
IMailIndexService.AppendPimper, IMailIndexService.DeletePimper, IMailIndexService.MailDoc
Constructor and Description |
---|
MailIndexService(java.util.List<IMailIndexService.AppendPimper> appendPimpers,
java.util.List<IMailIndexService.DeletePimper> deletePimpers) |
Modifier and Type | Method and Description |
---|---|
void |
append(Folder destination,
int uid,
org.apache.james.mime4j.dom.Message m,
java.util.Date deliveryDate,
int messageSize,
java.util.Set<java.lang.String> flags) |
void |
append(java.util.List<IMailIndexService.MailDoc> mails,
boolean refresh) |
IMailIndexService.MailDoc |
asMailDoc(Folder destination,
int uid,
Doc doc,
java.util.Date date,
int size,
java.util.Set<java.lang.String> flags) |
IMailIndexService.MailDoc |
asMailDoc(Folder destination,
int uid,
org.apache.james.mime4j.dom.Message m,
java.util.Date date,
int size,
java.util.Set<java.lang.String> flags) |
void |
changeFlags(java.lang.String latd,
Folder f,
IDSet set,
FlagUpdateMode mode,
java.util.Set<java.lang.String> addedFlags,
java.util.Set<java.lang.String> removedFlags) |
boolean |
checkMailbox(java.lang.String entityId) |
void |
cleanupFolder(Folder f) |
void |
cleanupFolder(Folder f,
IDSet idSet) |
void |
cleanupFolder(Folder f,
java.util.Set<java.lang.Integer> set) |
void |
cleanupParents() |
void |
cleanupParents(java.lang.String indice) |
void |
copy(java.lang.String latd,
Folder from,
IDSet source,
Folder to,
IDSet dest) |
void |
createMailbox(java.lang.String mailboxUid) |
void |
deleteBox(java.lang.String latd,
Folder toDel) |
void |
deleteMailbox(java.lang.String entityId) |
void |
expunge(java.lang.String latd,
Folder f) |
void |
expunge(java.lang.String latd,
Folder f,
IDSet set) |
java.util.List<MailSummary> |
fetchSummary(Folder source) |
java.util.List<MailSummary> |
fetchSummary(Folder source,
IDSet set) |
double |
getArchivedMailSum(java.lang.String userEntityId) |
java.util.Set<java.lang.Long> |
getFolders(java.lang.String entityId) |
java.lang.String |
getIndexAliasName(java.lang.String entityId) |
java.util.List<ShardStats> |
getStats() |
void |
moveMailbox(java.lang.String mailboxUid,
java.lang.String indexName) |
void |
purgeIndexAlias(java.lang.String entityId) |
void |
repairMailbox(java.lang.String entityId,
IServerTaskMonitor monitor)
check if alias exists, if not create it.
|
void |
syncFlags(Folder dest,
java.util.List<MailSummary> mails) |
public MailIndexService(java.util.List<IMailIndexService.AppendPimper> appendPimpers, java.util.List<IMailIndexService.DeletePimper> deletePimpers)
public java.lang.String getIndexAliasName(java.lang.String entityId)
public void append(java.util.List<IMailIndexService.MailDoc> mails, boolean refresh)
append
in interface IMailIndexService
public void append(Folder destination, int uid, org.apache.james.mime4j.dom.Message m, java.util.Date deliveryDate, int messageSize, java.util.Set<java.lang.String> flags)
append
in interface IMailIndexService
public void copy(java.lang.String latd, Folder from, IDSet source, Folder to, IDSet dest)
copy
in interface IMailIndexService
public void deleteBox(java.lang.String latd, Folder toDel)
deleteBox
in interface IMailIndexService
public void expunge(java.lang.String latd, Folder f)
expunge
in interface IMailIndexService
public void expunge(java.lang.String latd, Folder f, IDSet set)
expunge
in interface IMailIndexService
public void cleanupFolder(Folder f, java.util.Set<java.lang.Integer> set)
cleanupFolder
in interface IMailIndexService
public void cleanupFolder(Folder f)
cleanupFolder
in interface IMailIndexService
public void cleanupFolder(Folder f, IDSet idSet)
cleanupFolder
in interface IMailIndexService
public void changeFlags(java.lang.String latd, Folder f, IDSet set, FlagUpdateMode mode, java.util.Set<java.lang.String> addedFlags, java.util.Set<java.lang.String> removedFlags)
changeFlags
in interface IMailIndexService
public void cleanupParents()
cleanupParents
in interface IMailIndexService
public void cleanupParents(java.lang.String indice)
public java.util.List<MailSummary> fetchSummary(Folder source)
fetchSummary
in interface IMailIndexService
public java.util.List<MailSummary> fetchSummary(Folder source, IDSet set)
fetchSummary
in interface IMailIndexService
public void syncFlags(Folder dest, 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.Long> getFolders(java.lang.String entityId)
getFolders
in interface IMailIndexService
public void deleteMailbox(java.lang.String entityId)
deleteMailbox
in interface IMailIndexService
public void purgeIndexAlias(java.lang.String entityId)
purgeIndexAlias
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 IMailIndexService.MailDoc asMailDoc(Folder destination, int uid, org.apache.james.mime4j.dom.Message m, java.util.Date date, int size, java.util.Set<java.lang.String> flags)
asMailDoc
in interface IMailIndexService
public IMailIndexService.MailDoc asMailDoc(Folder destination, int uid, Doc doc, java.util.Date date, int size, java.util.Set<java.lang.String> flags)
asMailDoc
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
Copyright © 2021. All Rights Reserved.