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

Allow save without auto-checkout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF09, 5.7.1
    • Component/s: Core
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      To disable auto-checkout before a document save, do:

      doc.putContextData(VersioningService.DISABLE_AUTO_CHECKOUT, Boolean.TRUE);
      doc = session.saveDocument(doc);

      Make sure that this is done only for changes that do not correspond to things that the user would like to see versioned.

      Show
      To disable auto-checkout before a document save, do: doc.putContextData(VersioningService.DISABLE_AUTO_CHECKOUT, Boolean.TRUE); doc = session.saveDocument(doc); Make sure that this is done only for changes that do not correspond to things that the user would like to see versioned.

      Description

      For modules that store metadata about documents in facet and update it asynchronously, we need a way to save this metadata on a checked-in document without making an auto-checkout occur.

      For instance the quotas need to update the computed total size even on a checked in document.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: