Package net.bluemind.mailbox.api
Interface IMailboxes
@Path("/mailboxes/{domainUid}")
public interface IMailboxes
-
Method Summary
Modifier and TypeMethodDescriptionaddDomainRule
(MailFilterRule rule) addMailboxRule
(String mailboxUid, MailFilterRule rule) addMailboxRuleRelative
(String mailboxUid, RuleMoveRelativePosition position, long anchorId, MailFilterRule rule) byRouting
(Mailbox.Routing routing) byType
(Mailbox.Type type) void
Creates a newMailbox
entry.void
DeleteMailbox
entryvoid
deleteDomainRule
(long id) void
deleteMailboxRule
(String mailboxUid, long id) getComplete
(String uid) Fetch aMailbox
from its unique uidgetDomainRule
(long id) getMailboxAccessControlList
(String mailboxUid) getMailboxConfig
(String uid) getMailboxDelegationRule
(String mailboxUid) getMailboxFilter
(String mailboxUid) getMailboxForwarding
(String mailboxUid) getMailboxQuota
(String uid) getMailboxRule
(String mailboxUid, long id) getMailboxRules
(String mailboxUid) getMailboxRulesByClient
(String mailboxUid, String client) getMailboxVacation
(String mailboxUid) Get the unread mail messages count of the currently logged in userlist()
listUids()
void
moveMailboxRule
(String mailboxUid, long id, RuleMoveDirection direction) void
moveMailboxRuleRelative
(String mailboxUid, long id, RuleMoveRelativePosition position, long anchorId) multipleGet
(List<String> uids) void
setDomainFilter
(MailFilter filter) void
setMailboxAccessControlList
(String mailboxUid, List<AccessControlEntry> accessControlEntries) void
setMailboxDelegationRule
(String mailboxUid, DelegationRule delegationRule) void
setMailboxFilter
(String mailboxUid, MailFilter filter) void
setMailboxForwarding
(String mailboxUid, MailFilter.Forwarding forwarding) void
setMailboxVacation
(String mailboxUid, MailFilter.Vacation vacation) void
Modifies an existingMailbox
entry.void
updateDomainRule
(long id, MailFilterRule rule) void
updateMailboxRule
(String mailboxUid, long id, MailFilterRule rule)
-
Method Details
-
create
Creates a newMailbox
entry.- Parameters:
uid
- uid of the entrymailbox
- value of the entry- Throws:
ServerFault
-
update
Modifies an existingMailbox
entry.- Parameters:
uid
- uid of the entrymailbox
- value of the entry- Throws:
ServerFault
-
getComplete
@GET @Path("{uid}/complete") ItemValue<Mailbox> getComplete(@PathParam("uid") String uid) throws ServerFault Fetch aMailbox
from its unique uid- Parameters:
uid
-- Returns:
-
invalid reference
ItemValue<Mailshare>
- Throws:
ServerFault
-
getUnreadMessagesCount
Get the unread mail messages count of the currently logged in user- Returns:
- unread messages count
- Throws:
ServerFault
-
getMailboxQuota
@GET @Path("{uid}/_quota") MailboxQuota getMailboxQuota(@PathParam("uid") String uid) throws ServerFault - Throws:
ServerFault
-
getMailboxConfig
@GET @Path("{uid}/_config") MailboxConfig getMailboxConfig(@PathParam("uid") String uid) throws ServerFault - Throws:
ServerFault
-
delete
DeleteMailbox
entry- Parameters:
uid
-- Throws:
ServerFault
-
byEmail
@GET @Path("_byemail") ItemValue<Mailbox> byEmail(@QueryParam("email") String email) throws ServerFault - Throws:
ServerFault
-
byName
- Throws:
ServerFault
-
getDomainFilter
- Throws:
ServerFault
-
setDomainFilter
- Throws:
ServerFault
-
getDomainRules
- Throws:
ServerFault
-
getDomainRule
- Throws:
ServerFault
-
addDomainRule
- Throws:
ServerFault
-
updateDomainRule
@POST @Path("_rules/{id}") void updateDomainRule(@PathParam("id") long id, MailFilterRule rule) throws ServerFault - Throws:
ServerFault
-
deleteDomainRule
- Throws:
ServerFault
-
byType
@GET @Path("_byType") List<String> byType(@QueryParam("email") Mailbox.Type type) throws ServerFault - Throws:
ServerFault
-
getMailboxVacation
@GET @Path("{mailboxUid}/_vacation") MailFilter.Vacation getMailboxVacation(@PathParam("mailboxUid") String mailboxUid) -
setMailboxVacation
@POST @Path("{mailboxUid}/_vacation") void setMailboxVacation(@PathParam("mailboxUid") String mailboxUid, MailFilter.Vacation vacation) throws ServerFault - Throws:
ServerFault
-
getMailboxForwarding
@GET @Path("{mailboxUid}/_forwarding") MailFilter.Forwarding getMailboxForwarding(@PathParam("mailboxUid") String mailboxUid) -
setMailboxForwarding
@POST @Path("{mailboxUid}/_forwarding") void setMailboxForwarding(@PathParam("mailboxUid") String mailboxUid, MailFilter.Forwarding forwarding) throws ServerFault - Throws:
ServerFault
-
getMailboxFilter
@GET @Path("{mailboxUid}/_filter") MailFilter getMailboxFilter(@PathParam("mailboxUid") String mailboxUid) throws ServerFault - Throws:
ServerFault
-
setMailboxFilter
@POST @Path("{mailboxUid}/_filter") void setMailboxFilter(@PathParam("mailboxUid") String mailboxUid, MailFilter filter) throws ServerFault - Throws:
ServerFault
-
getMailboxRules
@GET @Path("{mailboxUid}/_rules") List<MailFilterRule> getMailboxRules(@PathParam("mailboxUid") String mailboxUid) throws ServerFault - Throws:
ServerFault
-
getMailboxRulesByClient
@GET @Path("{mailboxUid}/_rulesByClient") List<MailFilterRule> getMailboxRulesByClient(@PathParam("mailboxUid") String mailboxUid, @QueryParam("client") String client) throws ServerFault - Throws:
ServerFault
-
getMailboxRule
@GET @Path("{mailboxUid}/_rules/{id}") MailFilterRule getMailboxRule(@PathParam("mailboxUid") String mailboxUid, @PathParam("id") long id) throws ServerFault - Throws:
ServerFault
-
addMailboxRule
@PUT @Path("{mailboxUid}/_rules") Long addMailboxRule(@PathParam("mailboxUid") String mailboxUid, MailFilterRule rule) throws ServerFault - Throws:
ServerFault
-
addMailboxRuleRelative
@PUT @Path("{mailboxUid}/_rules/{position}/{anchorId}") Long addMailboxRuleRelative(@PathParam("mailboxUid") String mailboxUid, @PathParam("position") RuleMoveRelativePosition position, @PathParam("anchorId") long anchorId, MailFilterRule rule) throws ServerFault - Throws:
ServerFault
-
updateMailboxRule
@POST @Path("{mailboxUid}/_rules/{id}") void updateMailboxRule(@PathParam("mailboxUid") String mailboxUid, @PathParam("id") long id, MailFilterRule rule) throws ServerFault - Throws:
ServerFault
-
deleteMailboxRule
@DELETE @Path("{mailboxUid}/_rules/{id}") void deleteMailboxRule(@PathParam("mailboxUid") String mailboxUid, @PathParam("id") long id) throws ServerFault - Throws:
ServerFault
-
moveMailboxRule
@POST @Path("{mailboxUid}/_rules/{id}/{direction}") void moveMailboxRule(@PathParam("mailboxUid") String mailboxUid, @PathParam("id") long id, @PathParam("direction") RuleMoveDirection direction) throws ServerFault - Throws:
ServerFault
-
moveMailboxRuleRelative
@POST @Path("{mailboxUid}/_rules/{id}/{position}/{anchorId}") void moveMailboxRuleRelative(@PathParam("mailboxUid") String mailboxUid, @PathParam("id") long id, @PathParam("position") RuleMoveRelativePosition position, @PathParam("anchorId") long anchorId) throws ServerFault - Throws:
ServerFault
-
setMailboxDelegationRule
@POST @Path("{mailboxUid}/_delegationRule") void setMailboxDelegationRule(@PathParam("mailboxUid") String mailboxUid, DelegationRule delegationRule) throws ServerFault - Throws:
ServerFault
-
getMailboxDelegationRule
@GET @Path("{mailboxUid}/_delegationRule") DelegationRule getMailboxDelegationRule(@PathParam("mailboxUid") String mailboxUid) throws ServerFault - Throws:
ServerFault
-
getMailboxAccessControlList
@GET @Path("{mailboxUid}/_acls") List<AccessControlEntry> getMailboxAccessControlList(@PathParam("mailboxUid") String mailboxUid) throws ServerFault - Throws:
ServerFault
-
setMailboxAccessControlList
@POST @Path("{mailboxUid}/_acls") void setMailboxAccessControlList(@PathParam("mailboxUid") String mailboxUid, List<AccessControlEntry> accessControlEntries) throws ServerFault - Throws:
ServerFault
-
list
- Throws:
ServerFault
-
listUids
-
byRouting
@GET @Path("_byRouting") List<String> byRouting(@QueryParam("email") Mailbox.Routing routing) throws ServerFault - Throws:
ServerFault
-
multipleGet
- Throws:
ServerFault
-