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

Enhance PictureViewsGenerationWork to be able to disable listeners before save

    XMLWordPrintable

    Details

      Description

      PictureViewsGenerationWork is explicitely disabling some listeners before saving the document

              workingDocument.putContextData("disableNotificationService", Boolean.TRUE);
              workingDocument.putContextData("disableAuditLogger", Boolean.TRUE);
              workingDocument.putContextData(VersioningService.DISABLE_AUTO_CHECKOUT, Boolean.TRUE);
              workingDocument.putContextData(DISABLE_PICTURE_VIEWS_GENERATION_LISTENER, Boolean.TRUE);
              session.saveDocument(workingDocument);
      

      When a project defines custom listeners, it would be interesting to have a hook, like a beforeSave method, in this class to disable them. And a custom project could only overwrite this method instead of overwriting the complete class.

      PS: what do we want to do with the BAF action RecomputeViewsAction which replaces PictureViewsGenerationWork since 11.x ?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: