public abstract class AbstractSolrObserver extends AbstractLogEnabled implements Observer, Serviceable
Observer for synchronizing the Solr index for Web components| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected SiteIndexer |
_siteIndexer
The site indexer helper
|
protected SolrIndexer |
_solrIndexer
The Solr indexer
|
protected SolrPageIndexer |
_solrPageIndexer
The Solr page indexer.
|
MAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
AbstractSolrObserver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_updateIndexReferencingPages(String contentId,
boolean recursively)
Update index of all pages referencing the content for all workspaces if exists
|
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) |
getLogger, setLoggerprotected SiteIndexer _siteIndexer
protected SolrIndexer _solrIndexer
protected SolrPageIndexer _solrPageIndexer
protected AmetysObjectResolver _resolver
public AbstractSolrObserver()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic int getPriority(Event event)
ObservergetPriority in interface Observerevent - the event.protected void _updateIndexReferencingPages(String contentId, boolean recursively) throws Exception
contentId - The id of contentrecursively - true to index recursively the subpagesAmetysRepositoryException - If an error occurredException - if an error occurred during indexing