Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-15971

Optimize nxu:userFullName function

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF05, 7.2
    • Component/s: Seam / JSF UI

      Description

      Currently nxu:userFullName function does the login/display name resolution using directly UserManager.

      the problem

      Unfortunately, calling UserManager.getPrincipal(username) can be too costly :

      • In case of LDAP groups + Slow LDAP fetching the references will be slow (and not cachable)
      • Computed Groups can take time

      There is a small cache directly inside the JSF Context but it is on a per user session basis.

      Solutions

      In parallele of the patch implementation that is here for backport reasons, we may provide 2 news API in UserManager :

      • getUserFullName();
      • getGroupLabel();

      This way we can hide the caching/invalidation logic directly inside the UserManager and avoid doing complex code inside the JSF functions !

        Attachments

        1. NXP-15971-5.9.5.diff
          5 kB
          Thierry Delprat

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: