Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2616

Rework events so that they do not include the MailboxSession

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: mailbox
    • Labels:
      None

      Description

      We do not want to send a `session` related to a single node context, other a message queue.

      Modify the Event API and implementation to just be exposing a `User`.

      Rework MailboxListeners so that they either:

      • Directly reuse the User where possible
      • Reopen system sessions for that given user if needed.

       

      You have to replace getSession() by a new getUser() in Event class. In some listeners, they requires to retrieve Session, let's use MailboxManager to create mailbox session of the user from getUser()

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              trantienduchn Trần Tiến Đức
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: