public class SolrContentValidatedPart1Observer extends AbstractSolrODFObserver
| Modifier and Type | Field and Description |
|---|---|
protected OdfPageHandler |
_odfPageHandler
The ODF page handler
|
protected Repository |
_repository
The JCR repository
|
protected SiteConfigurationExtensionPoint |
_siteConf
The site configuration extension point.
|
_odfPageResolver, _solrIndexer, _solrPageIndexer_cocoonContext, _context, _odfHelper, _resolverMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
SolrContentValidatedPart1Observer() |
| 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.
|
protected String |
_workspaceToUse()
The workspace to use.
|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
_internalObserve_getContentArgument, _getCourse, _getODFRootPages, _getPrograms, _getSubProgram, contextualize, observegetLogger, setLoggerprotected SiteConfigurationExtensionPoint _siteConf
protected Repository _repository
protected OdfPageHandler _odfPageHandler
public SolrContentValidatedPart1Observer()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractSolrODFObserverServiceExceptionpublic 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 String _workspaceToUse()
AbstractODFObserverdefault,
override this method to work on a different workspace_workspaceToUse in class AbstractODFObserverprotected 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.