public abstract class AbstractSolrOnSiteConfModifiedObserver extends AbstractSolrObserver
Observer for observing site configuration modifications
in order to synchronize Solr index.| Modifier and Type | Field and Description |
|---|---|
private OdfPageHandler |
_odfPageHandler |
_resolver, _siteIndexer, _solrIndexer, _solrPageIndexerMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
AbstractSolrOnSiteConfModifiedObserver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
_updateIndex(Page odfRootPage)
Update the index from the observed event.
|
private void |
_updateOdfRootIndex(Site site) |
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
_updateIndexReferencingPages, getPrioritygetLogger, setLoggerprivate OdfPageHandler _odfPageHandler
public AbstractSolrOnSiteConfModifiedObserver()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractSolrObserverServiceExceptionpublic boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observerevent - the event.transientVars - transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.Exception - if an error occurs.
All exceptions will be logged but not propagated, as the observation mechanism should never fail.private void _updateOdfRootIndex(Site site) throws Exception
Exceptionprotected abstract void _updateIndex(Page odfRootPage) throws Exception
odfRootPage - the odf root pageException - if an error occurs.