public class MailboxesService extends java.lang.Object implements IMailboxes, IInCoreMailboxes
| Modifier and Type | Class and Description |
|---|---|
static class |
MailboxesService.Helper |
| Constructor and Description |
|---|
MailboxesService(BmContext context,
Container container,
ItemValue<Domain> domain) |
| Modifier and Type | Method and Description |
|---|---|
ItemValue<Mailbox> |
byEmail(java.lang.String email) |
ItemValue<Mailbox> |
byName(java.lang.String name) |
java.util.List<java.lang.String> |
byRouting(Mailbox.Routing routing) |
java.util.List<java.lang.String> |
byType(Mailbox.Type type) |
TaskRef |
check(java.lang.String uid)
|
TaskRef |
checkAll()
|
TaskRef |
checkAndRepair(java.lang.String uid)
|
TaskRef |
checkAndRepairAll()
|
void |
checkAndRepairAllTask(IServerTaskMonitor monitor)
Deprecated.
|
void |
checkAndRepairTask(java.lang.String uid,
DiagnosticReport report,
IServerTaskMonitor monitor,
boolean repair)
Deprecated.
|
void |
checkAndRepairTask(java.lang.String uid,
IServerTaskMonitor monitor)
Deprecated.
|
void |
checkAvailabilty(Mailbox mailbox) |
void |
create(java.lang.String uid,
Mailbox value)
Creates a new
Mailbox entry. |
void |
created(java.lang.String uid,
Mailbox mailbox) |
void |
delete(java.lang.String uid)
Delete
Mailbox entry |
void |
deleted(java.lang.String uid,
Mailbox mailbox) |
void |
deleteEmailByAlias(java.lang.String alias) |
ItemValue<Mailbox> |
getComplete(java.lang.String uid)
Fetch a
Mailbox from its unique uid |
MailFilter |
getDomainFilter() |
java.util.List<AccessControlEntry> |
getMailboxAccessControlList(java.lang.String mailboxUid) |
MailboxConfig |
getMailboxConfig(java.lang.String uid) |
MailFilter |
getMailboxFilter(java.lang.String mailboxUid) |
MailboxQuota |
getMailboxQuota(java.lang.String uid) |
java.lang.Integer |
getUnreadMessagesCount()
Get the unread mail messages count of the currently logged in user
|
java.util.List<ItemValue<Mailbox>> |
list() |
java.util.List<java.lang.String> |
listUids() |
java.util.List<ItemValue<Mailbox>> |
multipleGet(java.util.List<java.lang.String> uids) |
JobExitStatus |
refreshOutOfOffice(IScheduler sched,
IScheduledJobRunId rid)
Enable/disable out of office sieve script
|
void |
sanitize(Mailbox mailbox) |
void |
setDomainFilter(MailFilter filter) |
void |
setMailboxAccessControlList(java.lang.String mailboxUid,
java.util.List<AccessControlEntry> accessControlEntries) |
void |
setMailboxFilter(java.lang.String mailboxUid,
MailFilter filter) |
void |
update(java.lang.String uid,
Mailbox value)
Modifies an existing
Mailbox entry. |
void |
updated(java.lang.String uid,
Mailbox previous,
Mailbox value) |
void |
validate(java.lang.String uid,
Mailbox mailbox) |
public void create(java.lang.String uid,
Mailbox value)
throws ServerFault
IMailboxesMailbox entry.create in interface IMailboxesuid - uid of the entryvalue - value of the entryServerFaultpublic void update(java.lang.String uid,
Mailbox value)
throws ServerFault
IMailboxesMailbox entry.update in interface IMailboxesuid - uid of the entryvalue - value of the entryServerFaultpublic ItemValue<Mailbox> getComplete(java.lang.String uid) throws ServerFault
IMailboxesMailbox from its unique uidgetComplete in interface IMailboxesItemValueServerFaultpublic void delete(java.lang.String uid)
throws ServerFault
IMailboxesMailbox entrydelete in interface IMailboxesServerFaultpublic ItemValue<Mailbox> byEmail(java.lang.String email) throws ServerFault
byEmail in interface IMailboxesServerFaultpublic java.util.List<java.lang.String> byType(Mailbox.Type type) throws ServerFault
byType in interface IMailboxesServerFaultpublic ItemValue<Mailbox> byName(java.lang.String name) throws ServerFault
byName in interface IMailboxesServerFaultpublic MailFilter getDomainFilter() throws ServerFault
getDomainFilter in interface IMailboxesServerFaultpublic void setDomainFilter(MailFilter filter) throws ServerFault
setDomainFilter in interface IMailboxesServerFaultpublic MailFilter getMailboxFilter(java.lang.String mailboxUid) throws ServerFault
getMailboxFilter in interface IMailboxesServerFaultpublic void setMailboxFilter(java.lang.String mailboxUid,
MailFilter filter)
throws ServerFault
setMailboxFilter in interface IMailboxesServerFaultpublic java.util.List<AccessControlEntry> getMailboxAccessControlList(java.lang.String mailboxUid) throws ServerFault
getMailboxAccessControlList in interface IMailboxesServerFaultpublic void setMailboxAccessControlList(java.lang.String mailboxUid,
java.util.List<AccessControlEntry> accessControlEntries)
throws ServerFault
setMailboxAccessControlList in interface IMailboxesServerFaultpublic java.lang.Integer getUnreadMessagesCount()
throws ServerFault
IMailboxesgetUnreadMessagesCount in interface IMailboxesServerFaultpublic java.util.List<ItemValue<Mailbox>> list() throws ServerFault
list in interface IMailboxesServerFaultpublic java.util.List<java.lang.String> listUids()
listUids in interface IMailboxespublic java.util.List<java.lang.String> byRouting(Mailbox.Routing routing) throws ServerFault
byRouting in interface IMailboxesServerFaultpublic TaskRef checkAndRepairAll() throws ServerFault
IMailboxesIDirEntryMaintenance.repair(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
for (String entryUid: IDirectory.search(
DirEntryQuery.filterKind(Kind.GROUP, Kind.MAILSHARE, Kind.RESOURCE, Kind.USER))
.values.stream()
.map(deiv -> deiv.uid)
.collect()Collectors.toSet()) {
IDirEntryMaintenance.repair(opsIds);
}
checkAndRepairAll in interface IMailboxesServerFaultpublic TaskRef checkAll() throws ServerFault
IMailboxesIDirEntryMaintenance.check(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
for (String entryUid: IDirectory.search(
DirEntryQuery.filterKind(Kind.GROUP, Kind.MAILSHARE, Kind.RESOURCE, Kind.USER))
.values.stream()
.map(deiv -> deiv.uid)
.collect()Collectors.toSet()) {
IDirEntryMaintenance.check(opsIds);
}
checkAll in interface IMailboxesServerFaultpublic TaskRef checkAndRepair(java.lang.String uid) throws ServerFault
IMailboxesIDirEntryMaintenance.repair(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
IDirEntryMaintenance.repair(opsIds);
checkAndRepair in interface IMailboxesServerFaultpublic TaskRef check(java.lang.String uid) throws ServerFault
IMailboxesIDirEntryMaintenance.check(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
IDirEntryMaintenance.check(opsIds);
check in interface IMailboxesServerFault@Deprecated public void checkAndRepairAllTask(IServerTaskMonitor monitor) throws ServerFault
IDirEntryMaintenance.repair(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
for (String entryUid: IDirectory.search(
DirEntryQuery.filterKind(Kind.GROUP, Kind.MAILSHARE, Kind.RESOURCE, Kind.USER))
.values.stream()
.map(deiv -> deiv.uid)
.collect()Collectors.toSet()) {
IDirEntryMaintenance.repair(opsIds);
}
checkAndRepairAllTask in interface IInCoreMailboxesServerFault@Deprecated
public void checkAndRepairTask(java.lang.String uid,
IServerTaskMonitor monitor)
throws ServerFault
IDirEntryMaintenance.repair(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
IDirEntryMaintenance.repair(opsIds);
checkAndRepairTask in interface IInCoreMailboxesServerFault@Deprecated
public void checkAndRepairTask(java.lang.String uid,
DiagnosticReport report,
IServerTaskMonitor monitor,
boolean repair)
throws ServerFault
repair, use IDirEntryMaintenance.check(Set) If
repair, use IDirEntryMaintenance.repair(Set)
Set<String> opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
if (repair) {
IDirEntryMaintenance.repair(opsIds);
} else {
IDirEntryMaintenance.check(opsIds);
}
checkAndRepairTask in interface IInCoreMailboxesServerFaultpublic void checkAvailabilty(Mailbox mailbox) throws ServerFault
checkAvailabilty in interface IInCoreMailboxesServerFaultpublic MailboxQuota getMailboxQuota(java.lang.String uid) throws ServerFault
getMailboxQuota in interface IMailboxesServerFaultpublic MailboxConfig getMailboxConfig(java.lang.String uid) throws ServerFault
getMailboxConfig in interface IMailboxesServerFaultpublic JobExitStatus refreshOutOfOffice(IScheduler sched, IScheduledJobRunId rid) throws ServerFault
IInCoreMailboxesrefreshOutOfOffice in interface IInCoreMailboxesServerFaultpublic void validate(java.lang.String uid,
Mailbox mailbox)
throws ServerFault
validate in interface IInCoreMailboxesServerFaultpublic void sanitize(Mailbox mailbox) throws ServerFault
sanitize in interface IInCoreMailboxesServerFaultpublic void created(java.lang.String uid,
Mailbox mailbox)
throws ServerFault
created in interface IInCoreMailboxesServerFaultpublic void updated(java.lang.String uid,
Mailbox previous,
Mailbox value)
throws ServerFault
updated in interface IInCoreMailboxesServerFaultpublic void deleted(java.lang.String uid,
Mailbox mailbox)
throws ServerFault
deleted in interface IInCoreMailboxesServerFaultpublic java.util.List<ItemValue<Mailbox>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
multipleGet in interface IMailboxesServerFaultpublic void deleteEmailByAlias(java.lang.String alias)
throws ServerFault
deleteEmailByAlias in interface IInCoreMailboxesServerFaultCopyright © 2022. All Rights Reserved.