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

Make liveEditHelper cache calls to isDocumentLiveEditable at event level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.2 M1
    • Fix Version/s: 5.1.5, 5.2 M2
    • Component/s: None

      Description

      isDocumentLiveEditable are expensive since they include a call to documentManager.hasPermission (to check WRITE_PROPERTIES). Since liveEditHelper.isDocumentLiveEditable is to be called 6 times for each occurence in a single "rendered" JSF attribute it makes sence memoizing the result of the first call in the Event Seam context (e.g. as a field of the Event scoped liveEditHelper seam component).

        Attachments

          Activity

            People

            • Assignee:
              ogrisel Olivier Grisel
              Reporter:
              ogrisel Olivier Grisel
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified