public class UnindexProgramObserver extends AbstractSolrODFObserver
Program deletion or unpublishing in order to synchronize the Solr index._odfPageResolver, _solrIndexer, _solrPageIndexer_cocoonContext, _context, _odfHelper, _resolverMAX_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, observegetLogger, setLoggerpublic UnindexProgramObserver()
public boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.public int getPriority(Event event)
ObservergetPriority in interface ObservergetPriority in class AbstractSolrODFObserverevent - 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 AbstractSolrODFObserverevent - 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.