Class UnindexProgramObserver

All Implemented Interfaces:
IndexingObserver, Observer, LogEnabled, Prioritizable, Supporter<Event>, Contextualizable, Serviceable

Observes ODF Program deletion or unpublishing in order to synchronize the Solr index.
  • 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.
      Specified by:
      getPriority in interface Prioritizable
      Overrides:
      getPriority in class AbstractSolrODFObserver
      Returns:
      the priority
    • _updateIndex

      protected void _updateIndex(Event event, Map<String,Object> transientVars, Page odfRootPage, Program program, SubProgram subProgram, Course course) throws Exception
      Description copied from class: AbstractSolrODFObserver
      Update the index from the observed event.
      Specified by:
      _updateIndex in class AbstractSolrODFObserver
      Parameters:
      event - the event.
      transientVars - transientVars passed from one Observer to another when processing a single Event. This may allow optimizations between observers.
      odfRootPage - the odf root page
      program - the target program
      subProgram - The subprogram. Can be null
      course - the course. Can be null.
      Throws:
      Exception - if an error occurs.