Uses of Class
org.exoplatform.bluemind.client.BlueMindSession
Packages that use BlueMindSession
Package
Description
The BlueMind REST client shared by every BlueMind feature of the platform: one
session, one session cache, one login door and one exception hierarchy.
-
Uses of BlueMindSession in org.exoplatform.bluemind.client
Methods in org.exoplatform.bluemind.client that return BlueMindSessionModifier and TypeMethodDescriptionBlueMindRestClient.open(BlueMindAccountSource source) Opens a REST session as the account, for an operation of several calls that must share it — a read, a change, the read back — instead of one session perBlueMindRestClient.call(org.exoplatform.bluemind.client.BlueMindAccountSource, java.util.function.Function<org.exoplatform.bluemind.client.BlueMindSession, T>).Methods in org.exoplatform.bluemind.client with parameters of type BlueMindSessionModifier and TypeMethodDescriptionlongBlueMindMailboxClient.addRule(BlueMindSession session, tools.jackson.databind.node.ObjectNode rule) Adds one rule to the session's own mailbox (PUT _rules): BlueMind places it after the last rule of the same client and type, else at the end, and leaves every other rule as it is.voidBlueMindMailboxClient.deleteRule(BlueMindSession session, long id) Removes one rule of the session's own mailbox (DELETE _rules/{id}).BlueMindMailboxSharingClient.findByEmail(BlueMindSession session, String email) The directory entry of an address, as the session's user may see it (GET /api/directory/{domainUid}/_byEmail/{email}).BlueMindMailboxSharingClient.findByUid(BlueMindSession session, String uid) The directory entry of a uid, as the session's user may see it (GET /api/directory/{domainUid}/entry-uid/{uid}).BlueMindMailboxSharingClient.getAcls(BlueMindSession session) ReadsGET _aclsof the session's own mailbox.BlueMindMailboxSharingClient.getFolderAcl(BlueMindSession session, String folderUid) Reads the list of one folder of the session's own mailbox (GET /api/containers/_manage/mbox_records_<folderUid>/_acl): every subject's verbs expanded, the owner's row included.BlueMindMailboxClient.getFolders(BlueMindSession session) Lists the folders of the session's own mailbox (GET /api/mail_folders/{partition}/{mailboxRoot}/_all), the deleted ones left out.BlueMindMailboxClient.getForwarding(BlueMindSession session) ReadsGET _forwardingof the session's own mailbox.List<tools.jackson.databind.node.ObjectNode> BlueMindMailboxClient.getRules(BlueMindSession session) ReadsGET _rulesof the session's own mailbox: every rule, whatever client wrote it, the automatic reply's and the forward's rows included, in the order BlueMind keeps them (by type, then by position).List<tools.jackson.databind.node.ObjectNode> BlueMindMailboxClient.getRulesByClient(BlueMindSession session, String client) ReadsGET _rulesByClient?client=of the session's own mailbox: the rules one client wrote, in BlueMind's order.BlueMindMailboxSharingClient.getSharedFolders(BlueMindSession session) Lists the session's own folders that are shared with somebody (GET /api/containers/{domainUid}/{userUid}/_shared?type=mailbox_records): each folder's records container and the rows given on it, as stored.BlueMindMailboxClient.getVacation(BlueMindSession session) ReadsGET _vacationof the session's own mailbox.BlueMindMailboxSharingClient.mailboxSubscriptions(BlueMindSession session) The session's own user's subscriptions to mailboxes (GET /api/users/{domainUid}/subscriptions/{userUid}?type=mailboxacl), the user's own mailbox included (its owner is the user).voidBlueMindMailboxSharingClient.setAcls(BlueMindSession session, List<BlueMindAclEntry> entries) Replaces the access-control list of the session's own mailbox (POST _acls) with exactly the rows given, in their order.voidBlueMindMailboxSharingClient.setFolderAcl(BlueMindSession session, String folderUid, List<BlueMindAclEntry> entries) Replaces the list of one folder of the session's own mailbox (PUT /api/containers/_manage/mbox_records_<folderUid>/_acl) with exactly the rows given, in their order.voidBlueMindMailboxClient.setForwarding(BlueMindSession session, BlueMindForwarding forwarding) WritesPOST _forwardingof the session's own mailbox, and nothing else: every member ofMailFilter.Forwarding, the addresses in the forward's own order.voidBlueMindMailboxClient.setVacation(BlueMindSession session, BlueMindVacation vacation) WritesPOST _vacationof the session's own mailbox, and nothing else: every member ofMailFilter.Vacation, a null member sent as a JSON null, dates as epoch milliseconds.voidBlueMindMailboxSharingClient.subscribeToMailbox(BlueMindSession session, String ownerUid) Subscribes the session's own user to another user's mailbox (POST /api/users/{domainUid}/subscriptions/{userUid}/_subscribewith the containermailbox:acls-<ownerUid>, synchronised offline and mounted automatically, as BlueMind's own clients hold it).voidBlueMindMailboxSharingClient.unsubscribeFromMailbox(BlueMindSession session, String ownerUid) Withdraws the session's own user's subscription to another user's mailbox (POST .../_unsubscribewith["mailbox:acls-<ownerUid>"]).voidBlueMindMailboxClient.updateRule(BlueMindSession session, long id, tools.jackson.databind.node.ObjectNode rule) Replaces one rule of the session's own mailbox in place (POST _rules/{id}): its position is kept, every other rule is left as it is.Method parameters in org.exoplatform.bluemind.client with type arguments of type BlueMindSessionModifier and TypeMethodDescription<T> TBlueMindRestClient.call(BlueMindAccountSource source, Function<BlueMindSession, T> job) Runs one job inside a REST session opened as the account: the session kept for that account when there is one, a fresh login otherwise.