public class CyrusMailboxesStorage extends java.lang.Object implements IMailboxesStorage
IMailboxesStorage.CheckAndRepairStatus, IMailboxesStorage.MailFolder
Constructor and Description |
---|
CyrusMailboxesStorage() |
Modifier and Type | Method and Description |
---|---|
void |
changeDomainFilter(BmContext context,
java.lang.String domainUid,
MailFilter filter) |
void |
changeFilter(BmContext context,
ItemValue<Domain> domain,
ItemValue<Mailbox> mailboxItem,
MailFilter filter) |
java.util.List<IMailboxesStorage.MailFolder> |
checkAndRepairAcl(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox,
java.util.List<AccessControlEntry> acls,
boolean repair)
Sync acl with db acl
|
DefaultFolder.Status |
checkAndRepairDefaultFolders(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox,
boolean repair)
Fix mailbox default folders
|
void |
checkAndRepairFilesystem(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox)
Fix mailbox filesystem
|
java.util.List<IMailboxesStorage.MailFolder> |
checkAndRepairHierarchy(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox,
boolean repair)
Fill gaps between folders
|
void |
checkAndRepairQuota(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox)
Fix mailbox quota
|
IMailboxesStorage.CheckAndRepairStatus |
checkAndRepairSharedSeen(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox,
boolean repair) |
void |
create(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mbox) |
void |
createDomainPartition(BmContext context,
ItemValue<Domain> value,
ItemValue<Server> server) |
void |
delete(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> value) |
void |
deleteDomainPartition(BmContext context,
ItemValue<Domain> value,
ItemValue<Server> server) |
void |
foldersCreated(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mbox,
java.util.List<java.lang.String> createdFolders) |
MailboxQuota |
getQuota(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> value) |
java.lang.Integer |
getUnreadMessagesCount(java.lang.String domainUid,
ItemValue<User> user) |
void |
initialize(BmContext context,
ItemValue<Server> server) |
java.util.List<IMailboxesStorage.MailFolder> |
listFolders(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> mailbox) |
boolean |
mailboxExist(BmContext context,
java.lang.String domainUid,
Mailbox cur) |
void |
move(java.lang.String domainUid,
ItemValue<Mailbox> mailbox,
ItemValue<Server> sourceServer,
ItemValue<Server> dstServer) |
void |
rewriteCyrusConfiguration(java.lang.String serverUid) |
void |
update(BmContext context,
java.lang.String domainUid,
ItemValue<Mailbox> previousValue,
ItemValue<Mailbox> value) |
public void create(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mbox) throws ServerFault
create
in interface IMailboxesStorage
ServerFault
public void update(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> previousValue, ItemValue<Mailbox> value) throws ServerFault
update
in interface IMailboxesStorage
ServerFault
public boolean mailboxExist(BmContext context, java.lang.String domainUid, Mailbox cur) throws ServerFault
mailboxExist
in interface IMailboxesStorage
ServerFault
public void delete(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> value) throws ServerFault
delete
in interface IMailboxesStorage
ServerFault
public void changeFilter(BmContext context, ItemValue<Domain> domain, ItemValue<Mailbox> mailboxItem, MailFilter filter) throws ServerFault
changeFilter
in interface IMailboxesStorage
ServerFault
public void changeDomainFilter(BmContext context, java.lang.String domainUid, MailFilter filter) throws ServerFault
changeDomainFilter
in interface IMailboxesStorage
ServerFault
public void createDomainPartition(BmContext context, ItemValue<Domain> value, ItemValue<Server> server) throws ServerFault
createDomainPartition
in interface IMailboxesStorage
ServerFault
public void deleteDomainPartition(BmContext context, ItemValue<Domain> value, ItemValue<Server> server) throws ServerFault
deleteDomainPartition
in interface IMailboxesStorage
ServerFault
public void initialize(BmContext context, ItemValue<Server> server) throws ServerFault
initialize
in interface IMailboxesStorage
ServerFault
public java.lang.Integer getUnreadMessagesCount(java.lang.String domainUid, ItemValue<User> user) throws ServerFault
getUnreadMessagesCount
in interface IMailboxesStorage
ServerFault
public void foldersCreated(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mbox, java.util.List<java.lang.String> createdFolders) throws ServerFault
context
- boxName
- createdFolders
- ServerFault
public java.util.List<IMailboxesStorage.MailFolder> listFolders(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox) throws ServerFault
listFolders
in interface IMailboxesStorage
ServerFault
public java.util.List<IMailboxesStorage.MailFolder> checkAndRepairHierarchy(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox, boolean repair) throws ServerFault
IMailboxesStorage
checkAndRepairHierarchy
in interface IMailboxesStorage
ServerFault
public IMailboxesStorage.CheckAndRepairStatus checkAndRepairSharedSeen(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox, boolean repair)
checkAndRepairSharedSeen
in interface IMailboxesStorage
public void checkAndRepairQuota(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox)
IMailboxesStorage
checkAndRepairQuota
in interface IMailboxesStorage
public void checkAndRepairFilesystem(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox)
IMailboxesStorage
checkAndRepairFilesystem
in interface IMailboxesStorage
public DefaultFolder.Status checkAndRepairDefaultFolders(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox, boolean repair) throws ServerFault
IMailboxesStorage
checkAndRepairDefaultFolders
in interface IMailboxesStorage
ServerFault
public java.util.List<IMailboxesStorage.MailFolder> checkAndRepairAcl(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> mailbox, java.util.List<AccessControlEntry> acls, boolean repair) throws ServerFault
IMailboxesStorage
checkAndRepairAcl
in interface IMailboxesStorage
ServerFault
public MailboxQuota getQuota(BmContext context, java.lang.String domainUid, ItemValue<Mailbox> value) throws ServerFault
getQuota
in interface IMailboxesStorage
ServerFault
public void move(java.lang.String domainUid, ItemValue<Mailbox> mailbox, ItemValue<Server> sourceServer, ItemValue<Server> dstServer)
move
in interface IMailboxesStorage
public void rewriteCyrusConfiguration(java.lang.String serverUid)
rewriteCyrusConfiguration
in interface IMailboxesStorage
Copyright © 2021. All Rights Reserved.