Class MCRAccessCacheEventHandler

java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.access.MCRAccessCacheEventHandler
All Implemented Interfaces:
MCREventHandler

public class MCRAccessCacheEventHandler extends MCREventHandlerBase
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 Details

    • MCRAccessCacheEventHandler

      public MCRAccessCacheEventHandler()
  • Method Details

    • handleObjectUpdated

      protected void handleObjectUpdated(MCREvent evt, MCRObject obj)
      Description copied from class: MCREventHandlerBase
      Handles object updated events. This implementation does nothing and should be overwritted by subclasses.
      Overrides:
      handleObjectUpdated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      obj - the MCRObject that caused the event
    • handleDerivateUpdated

      protected void handleDerivateUpdated(MCREvent evt, MCRDerivate der)
      Description copied from class: MCREventHandlerBase
      Handles derivate updated events. This implementation does nothing and should be overwritted by subclasses.
      Overrides:
      handleDerivateUpdated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      der - the MCRDerivate that caused the event
    • handleDerivateDeleted

      protected void handleDerivateDeleted(MCREvent evt, MCRDerivate der)
      Description copied from class: MCREventHandlerBase
      Handles derivate deleted events. This implementation does nothing and should be overwritted by subclasses.
      Overrides:
      handleDerivateDeleted in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      der - the MCRDerivate that caused the event
    • handleObjectDeleted

      protected void handleObjectDeleted(MCREvent evt, MCRObject obj)
      Description copied from class: MCREventHandlerBase
      Handles object deleted events. This implementation does nothing and should be overwritted by subclasses.
      Overrides:
      handleObjectDeleted in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      obj - the MCRObject that caused the event