Class BlueMindAcls

java.lang.Object
org.exoplatform.bluemind.mail.util.BlueMindAcls

public final class BlueMindAcls extends Object
BlueMind's mailbox sharing vocabulary read as eXo reads a share: verbs, not letters, and a list of (subject, verb) rows, not an entry per subject.

Verbs expand on read-back. Observed on BlueMind 5.6.4 (2026-09-30): a Read written reads back as Freebusy, Invitation, Read, Visible; a Write as the same plus Write; a SendAs brings SendOnBehalf; the owner's own row carries All and every other verb. A verb set is therefore read in its compact form: every verb another held verb implies is dropped (IMPLIED), so a share made in BlueMind's interface and one made from eXo compare equal, and a verb BlueMind adds by implication in a later version does not turn every share into a custom one. A verb this code does not know is kept.

Letters. The rights a verb stands for on BlueMind's mailstore, from BlueMind's Acl.java (RO = lrp, RW = lrswipkxte, ALL = lrswipkxtea): reasoning, not observed on this engine's deployment. They drive the owner-side display only; what a delegate may do is read from the delegate's own MYRIGHTS.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Everything, the owner's own verb.
    static final org.exoplatform.emailConnector.model.MailboxRights
    The letters of All: ALL in BlueMind's Acl.java.
    static final String
    Seeing the owner's free/busy.
    static final String
    Answering the owner's invitations.
    static final String
    Managing the container: its sharing.
    static final String
    Reading the mail: eXo's Reader.
    static final String
    Reading beyond the mail.
    static final org.exoplatform.emailConnector.model.MailboxRights
    The letters of Read: RO in BlueMind's Acl.java.
    static final String
    Sending as the owner.
    static final String
    Sending on the owner's behalf.
    static final Set<String>
    The verbs that write in the owner's name: not part of a preset.
    static final String
    Seeing the mailbox in the directory.
    static final String
    Reading and organising the mail: eXo's Editor.
    static final org.exoplatform.emailConnector.model.MailboxRights
    The letters of Write: RW in BlueMind's Acl.java.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<String>
    The verbs of a compact set that give access to the mailbox: every verb but those that write in the owner's name.
    static Map<String,Set<String>>
    bySubject(Collection<org.exoplatform.bluemind.client.model.BlueMindAclEntry> entries)
    The rows grouped by subject, each subject's verbs in the order read.
    static Set<String>
    A verb set in its compact form: every verb another held verb implies dropped.
    static Set<String>
    heldBy(Collection<org.exoplatform.bluemind.client.model.BlueMindAclEntry> entries, String subject)
    One subject's verbs on a list, in their compact form.
    static boolean
    Whether access verbs carry writing in the owner's name by implication, as All carries SendAs.
    static org.exoplatform.emailConnector.model.MailboxRights
    lettersOf(Set<String> compact)
    The letters a compact verb set stands for on BlueMind's mailstore: All everything, Write lrswipkxte, Read lrp, Manage the right to administer; the other verbs none.
    static String
    nativeOf(Set<String> compact)
    The native form eXo shows and stores: the compact verbs, comma-separated, cut to what the column holds.
    static org.exoplatform.emailConnector.model.DelegationPreset
    presetOf(Set<String> compact)
    The preset a compact verb set is, the verbs of sending in the owner's name aside: Read alone a Reader, Write alone an Editor, anything else custom.
    static List<org.exoplatform.bluemind.client.model.BlueMindAclEntry>
    replace(List<org.exoplatform.bluemind.client.model.BlueMindAclEntry> entries, String subject, Collection<String> verbs)
    The list with one subject's rows replaced: every other row kept as it was read, in its place, and the subject's new rows appended.
    static String
    sendVerbOf(org.exoplatform.emailConnector.model.SendMode mode)
    The verb a way of writing in the owner's name is written as.
    static Set<String>
    The send verbs among a subject's verbs, compact.
    static Set<String>
    The mailbox share a subject's verbs make, in their compact form; none when they are a folder share's footprint alone.
    static Set<String>
    union(Set<String> first, Set<String> second)
    Two verb sets as one, in its compact form.
    static String
    verbOf(org.exoplatform.emailConnector.model.DelegationPreset preset)
    The verb a preset is written as.
    static Set<String>
    The access a subject's rows on a mailbox's list give to the whole mailbox: the compact access verbs, send verbs left out, and none when they are Visible alone -- the footprint folder shares leave there, which a consent to writing in the owner's name may sit beside without making it a whole-mailbox share (EXO-90816).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALL

      public static final String ALL
      Everything, the owner's own verb.
      See Also:
    • MANAGE

      public static final String MANAGE
      Managing the container: its sharing.
      See Also:
    • READ_EXTENDED

      public static final String READ_EXTENDED
      Reading beyond the mail.
      See Also:
    • WRITE

      public static final String WRITE
      Reading and organising the mail: eXo's Editor.
      See Also:
    • READ

      public static final String READ
      Reading the mail: eXo's Reader.
      See Also:
    • SEND_AS

      public static final String SEND_AS
      Sending as the owner.
      See Also:
    • SEND_ON_BEHALF

      public static final String SEND_ON_BEHALF
      Sending on the owner's behalf.
      See Also:
    • FREEBUSY

      public static final String FREEBUSY
      Seeing the owner's free/busy.
      See Also:
    • INVITATION

      public static final String INVITATION
      Answering the owner's invitations.
      See Also:
    • VISIBLE

      public static final String VISIBLE
      Seeing the mailbox in the directory.
      See Also:
    • READ_LETTERS

      public static final org.exoplatform.emailConnector.model.MailboxRights READ_LETTERS
      The letters of Read: RO in BlueMind's Acl.java.
    • WRITE_LETTERS

      public static final org.exoplatform.emailConnector.model.MailboxRights WRITE_LETTERS
      The letters of Write: RW in BlueMind's Acl.java.
    • ALL_LETTERS

      public static final org.exoplatform.emailConnector.model.MailboxRights ALL_LETTERS
      The letters of All: ALL in BlueMind's Acl.java.
    • SEND_VERBS

      public static final Set<String> SEND_VERBS
      The verbs that write in the owner's name: not part of a preset.
  • Method Details

    • bySubject

      public static Map<String,Set<String>> bySubject(Collection<org.exoplatform.bluemind.client.model.BlueMindAclEntry> entries)
      The rows grouped by subject, each subject's verbs in the order read.
      Parameters:
      entries - the rows
      Returns:
      the verbs of each subject, in the order subjects first appear
    • replace

      public static List<org.exoplatform.bluemind.client.model.BlueMindAclEntry> replace(List<org.exoplatform.bluemind.client.model.BlueMindAclEntry> entries, String subject, Collection<String> verbs)
      The list with one subject's rows replaced: every other row kept as it was read, in its place, and the subject's new rows appended.
      Parameters:
      entries - the rows as read
      subject - the subject whose rows change
      verbs - the subject's new verbs, empty to remove the subject
      Returns:
      the rows to write
    • heldBy

      public static Set<String> heldBy(Collection<org.exoplatform.bluemind.client.model.BlueMindAclEntry> entries, String subject)
      One subject's verbs on a list, in their compact form.
      Parameters:
      entries - the rows as read
      subject - the subject
      Returns:
      the subject's compact verbs, empty when the list names it nowhere
    • compact

      public static Set<String> compact(Collection<String> verbs)
      A verb set in its compact form: every verb another held verb implies dropped.
      Parameters:
      verbs - the verbs as read
      Returns:
      the compact set, in the native order
    • wholeShareOf

      public static Set<String> wholeShareOf(Collection<String> verbs)
      The access a subject's rows on a mailbox's list give to the whole mailbox: the compact access verbs, send verbs left out, and none when they are Visible alone -- the footprint folder shares leave there, which a consent to writing in the owner's name may sit beside without making it a whole-mailbox share (EXO-90816).
      Parameters:
      verbs - the subject's verbs on the mailbox's list
      Returns:
      the whole-mailbox access, empty when the subject holds none
    • sendVerbsOf

      public static Set<String> sendVerbsOf(Collection<String> verbs)
      The send verbs among a subject's verbs, compact.
      Parameters:
      verbs - the verbs
      Returns:
      SendAs, SendOnBehalf or neither
    • shareOf

      public static Set<String> shareOf(Collection<String> verbs)
      The mailbox share a subject's verbs make, in their compact form; none when they are a folder share's footprint alone. BlueMind gives a subject Visible on the owner's mailbox for as long as one of the owner's folders is shared with them, and takes it away with the last such share (VisibleOnHierarchyAclHook): Visible alone shares no mail. Beside any other verb it stays, where Read already holds it.
      Parameters:
      verbs - the subject's verbs as read
      Returns:
      the compact verbs, empty when they share nothing of the mailbox
    • lettersOf

      public static org.exoplatform.emailConnector.model.MailboxRights lettersOf(Set<String> compact)
      The letters a compact verb set stands for on BlueMind's mailstore: All everything, Write lrswipkxte, Read lrp, Manage the right to administer; the other verbs none.
      Parameters:
      compact - the compact verb set
      Returns:
      the letters
    • presetOf

      public static org.exoplatform.emailConnector.model.DelegationPreset presetOf(Set<String> compact)
      The preset a compact verb set is, the verbs of sending in the owner's name aside: Read alone a Reader, Write alone an Editor, anything else custom.
      Parameters:
      compact - the compact verb set
      Returns:
      the preset
    • verbOf

      public static String verbOf(org.exoplatform.emailConnector.model.DelegationPreset preset)
      The verb a preset is written as.
      Parameters:
      preset - READER or EDITOR
      Returns:
      "Read" or "Write"; null for any other
    • accessVerbsOf

      public static Set<String> accessVerbsOf(Set<String> compact)
      The verbs of a compact set that give access to the mailbox: every verb but those that write in the owner's name.
      Parameters:
      compact - the compact verb set
      Returns:
      the access verbs, in the native order
    • impliesSending

      public static boolean impliesSending(Set<String> access)
      Whether access verbs carry writing in the owner's name by implication, as All carries SendAs.
      Parameters:
      access - the access verbs
      Returns:
      true when one of them implies a send verb
    • sendVerbOf

      public static String sendVerbOf(org.exoplatform.emailConnector.model.SendMode mode)
      The verb a way of writing in the owner's name is written as. SendAs alone stands for sending as the owner: BlueMind reads it back with SendOnBehalf, which it implies.
      Parameters:
      mode - ON_BEHALF or AS
      Returns:
      "SendOnBehalf" or "SendAs"; null for any other
    • union

      public static Set<String> union(Set<String> first, Set<String> second)
      Two verb sets as one, in its compact form.
      Parameters:
      first - the first set
      second - the second set
      Returns:
      the compact union
    • nativeOf

      public static String nativeOf(Set<String> compact)
      The native form eXo shows and stores: the compact verbs, comma-separated, cut to what the column holds.
      Parameters:
      compact - the compact verb set
      Returns:
      the native form