-
Type: Question
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.10
-
Fix Version/s: HOTFIX_10.10, 2021.x, 11.x
-
Component/s: DAM, Events / Works
-
Tags:
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 ?