Class BlueMindMailboxSharingClient

java.lang.Object
org.exoplatform.bluemind.client.BlueMindMailboxSharingClient

public class BlueMindMailboxSharingClient extends Object
The calls mailbox sharing rests on, over BlueMind's core REST API, each answering 200 live on BlueMind 5.6.4 on an ordinary user's session (2026-09-30) -- their failure shapes are inferred, not observed: the access-control list of the session's own mailbox (IMailboxes _acls, read and replaced), the directory lookups by address and by uid (IDirectory _byEmail and entry-uid), and the session user's own subscription to another user's mailbox (IUserSubscription _subscribe / _unsubscribe). A folder is shared through its own list, the one of its records container mbox_records_<folder uid> (IContainerManagement _acl, read and replaced), and one call lists every shared folder of the session's user (IContainers _shared); all three answered 200 live on an ordinary user's session (2026-10-01). The login, the key header, the bounds and the redirect refusal are the session's (BlueMindRestClient.call(org.exoplatform.bluemind.client.BlueMindAccountSource, java.util.function.Function<org.exoplatform.bluemind.client.BlueMindSession, T>)).

The session's own mailbox and subscriptions, and nobody else's. The ACL read and written is the one of the mailbox the login answered, and the subscriptions edited are the login's own: every such path is built from the two uids of the login answer, never from a value a caller supplies. The other user a subscription names is a uid the caller resolved; it is checked against a conservative uid shape before it is written into a container uid.

A folder's list is addressed by the folder's uid, which the caller read from the session's own folder listing; this client checks only its shape. The list's container is the session user's own by construction of that uid, and BlueMind checks the session may manage it.

The ACL write is a full replace, with no version to compare. POST _acls, and PUT _acl on a folder, replace the whole list, and BlueMind offers no ETag: the caller reads the list, changes its own rows, writes the whole list back and reads it again. This client does neither the merge nor the comparison; it reads and writes exactly the rows it is given, and refuses a list it cannot read row by row rather than dropping a row it did not understand.

Failures are read by kind as BlueMindAnswers says; a lookup that finds nothing answers null, never a guessed entry.