Package org.mycore.iview2.events
Class MCRImageTileEventHandler
java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.iview2.events.MCRImageTileEventHandler
- All Implemented Interfaces:
MCREventHandler
Handles
MCRFile
events to keep image tiles up-to-date.- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handlePathCreated
(MCREvent evt, Path file, BasicFileAttributes attrs) creates image tiles iffile
is an image file.void
handlePathDeleted
(MCREvent evt, Path file, BasicFileAttributes attrs) deletes image tiles forfile
.void
handlePathUpdated
(MCREvent evt, Path file, BasicFileAttributes attrs) updates image times iffile
is an image file.Methods inherited from class org.mycore.common.events.MCREventHandlerBase
doHandleEvent, doNothing, handleClassificationCreated, handleClassificationDeleted, handleClassificationRepaired, handleClassificationUpdated, handleDerivateCreated, handleDerivateDeleted, handleDerivateRepaired, handleDerivateUpdated, handleObjectCreated, handleObjectDeleted, handleObjectIndex, handleObjectRepaired, handleObjectUpdated, handlePathRepaired, undoClassificationCreated, undoClassificationDeleted, undoClassificationRepaired, undoClassificationUpdated, undoDerivateCreated, undoDerivateDeleted, undoDerivateRepaired, undoDerivateUpdated, undoHandleEvent, undoObjectCreated, undoObjectDeleted, undoObjectRepaired, undoObjectUpdated, undoPathCreated, undoPathDeleted, undoPathRepaired, undoPathUpdated, updateDerivateFileIndex, updatePathIndex
-
Constructor Details
-
MCRImageTileEventHandler
public MCRImageTileEventHandler()
-
-
Method Details
-
handlePathCreated
creates image tiles iffile
is an image file.- Overrides:
handlePathCreated
in classMCREventHandlerBase
-
handlePathDeleted
deletes image tiles forfile
.- Overrides:
handlePathDeleted
in classMCREventHandlerBase
-
handlePathUpdated
updates image times iffile
is an image file.- Overrides:
handlePathUpdated
in classMCREventHandlerBase
-