Class UpdateThumbnailListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener
-
- All Implemented Interfaces:
PostCommitEventListener
public class UpdateThumbnailListener extends Object implements PostCommitEventListener
Thumbnail listener handling creation and update of thumbnail preview on main blob update, for documents holding the schema "file".- Since:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description static String
THUMBNAIL_UPDATED
-
Constructor Summary
Constructors Constructor Description UpdateThumbnailListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.protected void
processDoc(CoreSession session, DocumentModel doc)
-
-
-
Field Detail
-
THUMBNAIL_UPDATED
public static final String THUMBNAIL_UPDATED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UpdateThumbnailListener
public UpdateThumbnailListener()
-
-
Method Detail
-
processDoc
protected void processDoc(CoreSession session, DocumentModel doc)
-
handleEvent
public void handleEvent(EventBundle events)
Description copied from interface:PostCommitEventListener
Handles the set of events that were raised during the life of an user operation.The events are fired as a
BundleEvent
after the transaction is committed.- Specified by:
handleEvent
in interfacePostCommitEventListener
- Parameters:
events
- the events to handle
-
-