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 StringTHUMBNAIL_UPDATED
-
Constructor Summary
Constructors Constructor Description UpdateThumbnailListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(EventBundle events)Handles the set of events that were raised during the life of an user operation.protected voidprocessDoc(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:PostCommitEventListenerHandles the set of events that were raised during the life of an user operation.The events are fired as a
BundleEventafter the transaction is committed.- Specified by:
handleEventin interfacePostCommitEventListener- Parameters:
events- the events to handle
-
-