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
-
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)
-
-
-
Field Detail
-
EMPTY_PICTURE_PATH
public static final String EMPTY_PICTURE_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PictureChangedListener
public PictureChangedListener()
-
-
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
-
preFillPictureViews
protected void preFillPictureViews(CoreSession session, DocumentModel doc)
-
getEmptyPicturePath
protected String getEmptyPicturePath()
-
getParentDocument
protected DocumentModel getParentDocument(CoreSession session, DocumentModel doc)
-
-