Class PictureChangedListener
java.lang.Object
org.nuxeo.ecm.platform.picture.listener.PictureChangedListener
- All Implemented Interfaces:
EventListener
Listener updating pre-filling the views of a Picture if the main Blob has changed.
- Since:
- 5.5
- Author:
- Thomas Roger
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected DocumentModel
getParentDocument
(CoreSession session, DocumentModel doc) void
handleEvent
(Event event) Handle the given event.protected void
preFillPictureViews
(CoreSession session, DocumentModel doc) protected boolean
triggersPictureViewsGeneration
(Event event, DocumentModel doc)
-
Field Details
-
EMPTY_PICTURE_PATH
Deprecated.since 2021.27, usePictureViewsHelper.DEFAULT_PICTURE_VIEW_PATH
instead- See Also:
-
pvh
-
-
Constructor Details
-
PictureChangedListener
public PictureChangedListener()
-
-
Method Details
-
handleEvent
Description copied from interface:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in interfaceEventListener
- Parameters:
event
- the event
-
triggersPictureViewsGeneration
-
preFillPictureViews
-
getEmptyPicturePath
-
getParentDocument
-
PictureViewsHelper.DEFAULT_PICTURE_VIEW_PATH
instead