@Path(value="/mailboxes/{domainUid}")
public interface IMailboxes
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)
Deprecated.
|
TaskRef |
checkAll()
Deprecated.
|
TaskRef |
checkAndRepair(java.lang.String uid)
Deprecated.
|
TaskRef |
checkAndRepairAll()
Deprecated.
|
void |
create(java.lang.String uid,
Mailbox mailbox)
Creates a new
Mailbox entry. |
void |
delete(java.lang.String uid)
Delete
Mailbox entry |
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<ItemValue<Mailbox>> |
multipleGet(java.util.List<java.lang.String> uids) |
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 mailbox)
Modifies an existing
Mailbox entry. |
@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, Mailbox mailbox) throws ServerFault
Mailbox
entry.uid
- uid of the entrymailbox
- value of the entryServerFault
@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, Mailbox mailbox) throws ServerFault
Mailbox
entry.uid
- uid of the entrymailbox
- value of the entryServerFault
@GET @Path(value="{uid}/complete") ItemValue<Mailbox> getComplete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
Mailbox
from its unique uiduid
- ItemValue
ServerFault
@GET @Path(value="_unread") java.lang.Integer getUnreadMessagesCount() throws ServerFault
ServerFault
@GET @Path(value="{uid}/_quota") MailboxQuota getMailboxQuota(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
@GET @Path(value="{uid}/_config") MailboxConfig getMailboxConfig(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
Mailbox
entryuid
- ServerFault
@GET @Path(value="_byemail") ItemValue<Mailbox> byEmail(@QueryParam(value="email") java.lang.String email) throws ServerFault
ServerFault
@GET @Path(value="_byname") ItemValue<Mailbox> byName(@QueryParam(value="name") java.lang.String name) throws ServerFault
ServerFault
@GET @Path(value="_filter") MailFilter getDomainFilter() throws ServerFault
ServerFault
@POST @Path(value="_filter") void setDomainFilter(MailFilter filter) throws ServerFault
ServerFault
@GET @Path(value="_byType") java.util.List<java.lang.String> byType(@QueryParam(value="email") Mailbox.Type type) throws ServerFault
ServerFault
@GET @Path(value="{mailboxUid}/_filter") MailFilter getMailboxFilter(@PathParam(value="mailboxUid") java.lang.String mailboxUid) throws ServerFault
ServerFault
@POST @Path(value="{mailboxUid}/_filter") void setMailboxFilter(@PathParam(value="mailboxUid") java.lang.String mailboxUid, MailFilter filter) throws ServerFault
ServerFault
@GET @Path(value="{mailboxUid}/_acls") java.util.List<AccessControlEntry> getMailboxAccessControlList(@PathParam(value="mailboxUid") java.lang.String mailboxUid) throws ServerFault
ServerFault
@POST @Path(value="{mailboxUid}/_acls") void setMailboxAccessControlList(@PathParam(value="mailboxUid") java.lang.String mailboxUid, java.util.List<AccessControlEntry> accessControlEntries) throws ServerFault
ServerFault
@GET @Path(value="_list") java.util.List<ItemValue<Mailbox>> list() throws ServerFault
ServerFault
@GET @Path(value="_byRouting") java.util.List<java.lang.String> byRouting(@QueryParam(value="email") Mailbox.Routing routing) throws ServerFault
ServerFault
@Deprecated @POST @Path(value="_check-and-repair-all") TaskRef checkAndRepairAll() 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);
}
ServerFault
@Deprecated @POST @Path(value="_check-all") TaskRef checkAll() throws ServerFault
IDirEntryMaintenance.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);
}
ServerFault
@Deprecated @POST @Path(value="{uid}/_check-and-repair") TaskRef checkAndRepair(@PathParam(value="uid") java.lang.String uid) throws ServerFault
IDirEntryMaintenance.repair(Set)
Set<String>
opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
IDirEntryMaintenance.repair(opsIds);
ServerFault
@Deprecated @POST @Path(value="{uid}/_check") TaskRef check(@PathParam(value="uid") java.lang.String uid) throws ServerFault
IDirEntryMaintenance.check(Set)
Set<String>
opsIds = IDirEntryMaintenance.getAvailableOperations()
.stream().map(mo -> mo.identifier)
.collect(Collectors.toSet());
IDirEntryMaintenance.check(opsIds);
ServerFault
@POST @Path(value="_mget") java.util.List<ItemValue<Mailbox>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.