public class SolrContentValidatedPart2Observer extends AbstractSolrODFObserver implements AsyncObserver
Observer
for observing odf content validation in order to synchronize
lucene index associated.
_odfPageResolver, _solrIndexer, _solrPageIndexer
_cocoonContext, _context, _odfHelper, _resolver
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SolrContentValidatedPart2Observer() |
Modifier and Type | Method and Description |
---|---|
protected Content |
_getContentArgument(Event event)
Retrieve the target of the observer
|
protected void |
_updateIndex(Event event,
Map<String,Object> transientVars,
Page odfRootPage,
Program program,
SubProgram subProgram,
Course course)
Update the index from the observed event.
|
protected String |
_workspaceToUse()
The workspace to use.
|
boolean |
supports(Event event)
Checks if the event is supported.
|
_internalObserve, getPriority, service
_getCourse, _getODFRootPages, _getPrograms, _getSubProgram, contextualize, observe
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parallelizable
getPriority, observe
public SolrContentValidatedPart2Observer()
public boolean supports(Event event)
Observer
protected String _workspaceToUse()
AbstractODFObserver
default
,
override this method to work on a different workspace_workspaceToUse
in class AbstractODFObserver
protected Content _getContentArgument(Event event) throws Exception
AbstractODFObserver
_getContentArgument
in class AbstractODFObserver
event
- The eventException
- if failed to get contentprotected 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.