public class UnindexProgramObserver extends AbstractSolrODFObserver
Program
deletion or unpublishing in order to synchronize the Solr index._odfPageResolver, _solrIndexer, _solrPageIndexer
_cocoonContext, _context, _odfHelper, _resolver
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
UnindexProgramObserver() |
Modifier and Type | Method and Description |
---|---|
protected void |
_updateIndex(Event event,
Map<String,Object> transientVars,
Page odfRootPage,
Program program,
SubProgram subProgram,
Course course)
Update the index from the observed event.
|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
boolean |
supports(Event event)
Checks if the event is supported.
|
_internalObserve, service
_getContentArgument, _getCourse, _getODFRootPages, _getPrograms, _getSubProgram, _workspaceToUse, contextualize, observe
getLogger, setLogger
public UnindexProgramObserver()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public int getPriority(Event event)
Observer
getPriority
in interface Observer
getPriority
in class AbstractSolrODFObserver
event
- the event.protected void _updateIndex(Event event, Map<String,Object> transientVars, Page odfRootPage, Program program, SubProgram subProgram, Course course) throws Exception
AbstractSolrODFObserver
_updateIndex
in class AbstractSolrODFObserver
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 pageprogram
- the target programsubProgram
- The subprogram. Can be nullcourse
- the course. Can be null.Exception
- if an error occurs.