Package org.exoplatform.bluemind.client
package org.exoplatform.bluemind.client
The BlueMind REST client shared by every BlueMind feature of the platform: one
session, one session cache, one login door and one exception hierarchy. Plain Java:
no Spring and no eXo type, so the add-on's services, and any host that needs it, use
one login path.
-
ClassDescriptionThe port through which the client obtains the credentials a session is opened with, and the account the session may be kept for — values only, so that the client names no host type.BlueMind's two authentication doors,
/api/auth/loginand/api/auth/_su, asBlueMindSessionStoragespends them.One overall time budget for the BlueMind calls made on one thread, set by a caller whose own time is bounded — a landing of a mail's invitation, which holds the user's click: every exchangeBlueMindRestClientsends while it is open waits the smaller of the client's request timeout and the time left, and none is sent once nothing is left.The mailbox settings automatic reply, forwarding and filter rules rest on, over BlueMind's core REST API (IMailboxes, javadoc 5.0.7563):_vacationand_forwarding, each read and written; the per-rule_rulesAPI, one rule at a time; and the folder listing a rule's move names.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_byEmailandentry-uid), and the session user's own subscription to another user's mailbox (IUserSubscription_subscribe/_unsubscribe).The one way eXo talks to BlueMind's own REST API: one transport, one login door, one sudo door, one session reuse policy: the kept-session rules (EXO-90397), the refreshed-material retry (EXO-89649), the sudo door and the whole-exchange deadline (EXO-89647).An open session, as a job ofBlueMindRestClient.call(org.exoplatform.bluemind.client.BlueMindAccountSource, java.util.function.Function<org.exoplatform.bluemind.client.BlueMindSession, T>)or the holder ofBlueMindRestClient.open(org.exoplatform.bluemind.client.BlueMindAccountSource)sees it: the REST root and the key every call carries, and who BlueMind says the session is — never the key itself.The BlueMind REST session each account currently holds, kept in this node's own memory for a few minutes so that a burst of reads costs one login rather than one login per read (EXO-90397).The BlueMind sessions the technical-account (bluemind-sudo) credentials provider spends, kept so that producing material does not cost two round-trips every time (EXO-89647).Gives the module one public type to document: the javadoc tool refuses a package with none ("No public or protected classes found to document"), which fails the release build's javadoc jar.