Package org.mycore.access
Class MCRAccessCacheEventHandler
java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.access.MCRAccessCacheEventHandler
- All Implemented Interfaces:
MCREventHandler
Clears the access cache when an object is updated or deleted.
It invalidates all cache entries for the object, it's derivates and all it's descendants
in all active MCRSessions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleDerivateDeleted
(MCREvent evt, MCRDerivate der) Handles derivate deleted events.protected void
handleDerivateUpdated
(MCREvent evt, MCRDerivate der) Handles derivate updated events.protected void
handleObjectDeleted
(MCREvent evt, MCRObject obj) Handles object deleted events.protected void
handleObjectUpdated
(MCREvent evt, MCRObject obj) Handles object updated events.Methods inherited from class org.mycore.common.events.MCREventHandlerBase
doHandleEvent, doNothing, handleClassificationCreated, handleClassificationDeleted, handleClassificationRepaired, handleClassificationUpdated, handleDerivateCreated, handleDerivateRepaired, handleObjectCreated, handleObjectIndex, handleObjectRepaired, handlePathCreated, handlePathDeleted, handlePathRepaired, handlePathUpdated, undoClassificationCreated, undoClassificationDeleted, undoClassificationRepaired, undoClassificationUpdated, undoDerivateCreated, undoDerivateDeleted, undoDerivateRepaired, undoDerivateUpdated, undoHandleEvent, undoObjectCreated, undoObjectDeleted, undoObjectRepaired, undoObjectUpdated, undoPathCreated, undoPathDeleted, undoPathRepaired, undoPathUpdated, updateDerivateFileIndex, updatePathIndex
-
Constructor Details
-
MCRAccessCacheEventHandler
public MCRAccessCacheEventHandler()
-
-
Method Details
-
handleObjectUpdated
Description copied from class:MCREventHandlerBase
Handles object updated events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleObjectUpdated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleDerivateUpdated
Description copied from class:MCREventHandlerBase
Handles derivate updated events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleDerivateUpdated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredder
- the MCRDerivate that caused the event
-
handleDerivateDeleted
Description copied from class:MCREventHandlerBase
Handles derivate deleted events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleDerivateDeleted
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredder
- the MCRDerivate that caused the event
-
handleObjectDeleted
Description copied from class:MCREventHandlerBase
Handles object deleted events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleObjectDeleted
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-