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, _solrPageIndexer
MAX_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, getPriority
getLogger, setLogger
private OdfPageHandler _odfPageHandler
public AbstractSolrOnSiteConfModifiedObserver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSolrObserver
ServiceException
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observer
event
- 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
Exception
protected abstract void _updateIndex(Page odfRootPage) throws Exception
odfRootPage
- the odf root pageException
- if an error occurs.