public abstract class AbstractSolrObserver extends AbstractLogEnabled implements Observer, Serviceable
Observer
for synchronizing the Solr index for Web componentsModifier 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, setLogger
protected SiteIndexer _siteIndexer
protected SolrIndexer _solrIndexer
protected SolrPageIndexer _solrPageIndexer
protected AmetysObjectResolver _resolver
public AbstractSolrObserver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public int getPriority(Event event)
Observer
getPriority
in interface Observer
event
- 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