Class InvalidateZoneItemCacheOnContentModificationObserver

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.userdirectory.observation.AbstractContentObserver
org.ametys.plugins.userdirectory.observation.InvalidateZoneItemCacheOnContentModificationObserver
All Implemented Interfaces:
Observer, LogEnabled, Prioritizable, Supporter<Event>, Contextualizable, Serviceable

Invalidates the ZoneItem containing a Content which has just been modified or synchronized.
  • Constructor Details

  • Method Details

    • supports

      public boolean supports(Event event)
      Description copied from interface: Supporter
      Check if an element is supported
      Parameters:
      event - The element
      Returns:
      true if the element is supported, false otherwise
    • getPriority

      public int getPriority()
      Description copied from interface: Prioritizable
      Get the priority for the component. On components using Prioritizable interface, each implementation define the order. In most cases, less is the number, more prior is the component.
      Returns:
      the priority
    • _internalObserve

      protected void _internalObserve(Event event, Page rootPage, Content content)
      Description copied from class: AbstractContentObserver
      Do the actual work.
      Specified by:
      _internalObserve in class AbstractContentObserver
      Parameters:
      event - the observation event.
      rootPage - the page holding the virtual user pages
      content - a list containing all impacted user contents.