Class PictureChangedListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.picture.listener.PictureChangedListener
-
- All Implemented Interfaces:
EventListener
public class PictureChangedListener extends Object implements EventListener
Listener updating pre-filling the views of a Picture if the main Blob has changed.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description static String
EMPTY_PICTURE_PATH
Deprecated.since 2021.27, usePictureViewsHelper.DEFAULT_PICTURE_VIEW_PATH
insteadprotected PictureViewsHelper
pvh
-
Constructor Summary
Constructors Constructor Description PictureChangedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEmptyPicturePath()
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 Detail
-
EMPTY_PICTURE_PATH
@Deprecated public static final String EMPTY_PICTURE_PATH
Deprecated.since 2021.27, usePictureViewsHelper.DEFAULT_PICTURE_VIEW_PATH
instead- See Also:
- Constant Field Values
-
pvh
protected PictureViewsHelper pvh
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
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
protected boolean triggersPictureViewsGeneration(Event event, DocumentModel doc)
-
preFillPictureViews
protected void preFillPictureViews(CoreSession session, DocumentModel doc)
-
getEmptyPicturePath
protected String getEmptyPicturePath()
-
getParentDocument
protected DocumentModel getParentDocument(CoreSession session, DocumentModel doc)
-
-