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

New method Framework.doPrivileged

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0-HF31, 7.10-HF14, 8.10
    • Component/s: Runtime
    • Tags:
    • Sprint:
      nxFG 8.4.2

      Description

      It's often useful to be able to run code as the system user (for instance when calling methods that do access checks like directories).

      Create Framework.doPrivileged taking a Runnable to do that.

      For Nuxeo versions supporting only Java 8 (so, not for 6.0), another signature taking a Supplier is also available, in order to return values.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: