Interface IMapiMailbox
@Path("/mapi/{domainUid}/{mailboxUid}")
public interface IMapiMailbox
-
Method Summary
Modifier and TypeMethodDescriptioncheck()Checks what the mailbox needs besides its replica, and repairs it.voidcreate(MapiReplica mailbox) voiddelete()get()getAcls()Reads in one call the access control lists of the default folders of the mailbox, and the directory entry of their subjects.getFolderStats(List<MapiFolderStatsQuery> folders) Reads in one call the version and the message counts of several folders.Reads in one call what a user is allowed to do on several containers.Finds in one call the owners who let the caller write in their mailbox and in at least one of their calendars, of their address books and of their todo lists.locate(long itemId) Finds an item's uid & container with its item_id.
-
Method Details
-
create
- Throws:
net.bluemind.core.api.fault.ServerFault
-
check
Checks what the mailbox needs besides its replica, and repairs it.- Returns:
- the replica of the mailbox, null when it has none yet
-
get
- Throws:
net.bluemind.core.api.fault.ServerFault
-
delete
@DELETE void delete() throws net.bluemind.core.api.fault.ServerFault- Throws:
net.bluemind.core.api.fault.ServerFault
-
locate
Finds an item's uid & container with its item_id.- Parameters:
itemId-- Returns:
-
getAcls
Reads in one call the access control lists of the default folders of the mailbox, and the directory entry of their subjects. Each list is read with the rights of the caller.- Returns:
- the lists and the directory entries of their subjects
- Throws:
net.bluemind.core.api.fault.ServerFault- when the caller is not allowed to manage one of the folders
-
getWriteGrantors
@GET @Path("_writeGrantors") List<String> getWriteGrantors() throws net.bluemind.core.api.fault.ServerFaultFinds in one call the owners who let the caller write in their mailbox and in at least one of their calendars, of their address books and of their todo lists.- Returns:
- the uid of these owners, without the owner of this mailbox
- Throws:
net.bluemind.core.api.fault.ServerFault
-
getFolderStats
@POST @Path("_folderStats") List<MapiFolderStats> getFolderStats(List<MapiFolderStatsQuery> folders) throws net.bluemind.core.api.fault.ServerFault Reads in one call the version and the message counts of several folders. Each folder is read with the rights of the caller.- Parameters:
folders- the folders to read, with the filter of each wanted count- Returns:
- what was read, in the order of the request; a folder that the caller cannot read, or whose type is not known, is left out
- Throws:
net.bluemind.core.api.fault.ServerFault
-
getVerbs
@POST @Path("_verbs/{userUid}") List<MapiContainerVerbs> getVerbs(@PathParam("userUid") String userUid, List<String> containerUids) throws net.bluemind.core.api.fault.ServerFault Reads in one call what a user is allowed to do on several containers.- Parameters:
userUid- the user whose rights are wantedcontainerUids- the containers- Returns:
- the verbs of the user on each container, in the order of the request; a container that cannot be read is left out
- Throws:
net.bluemind.core.api.fault.ServerFault
-