Class SolrOnSiteConfModifiedPart1Observer
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.indexing.observation.AbstractSolrObserver
-
- org.ametys.plugins.odfweb.observation.solr.AbstractSolrOnSiteConfModifiedObserver
-
- org.ametys.plugins.odfweb.observation.solr.SolrOnSiteConfModifiedPart1Observer
-
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
public class SolrOnSiteConfModifiedPart1Observer extends AbstractSolrOnSiteConfModifiedObserver
Observer
for observing site configuration modification in order to unindex the given Solr pages
-
-
Field Summary
-
Fields inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_resolver, _siteIndexer, _solrIndexer, _solrPageIndexer
-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description SolrOnSiteConfModifiedPart1Observer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_updateIndex(Page odfRootPage)
Update the index from the observed event.int
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.-
Methods inherited from class org.ametys.plugins.odfweb.observation.solr.AbstractSolrOnSiteConfModifiedObserver
observe, service, supports
-
Methods inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_updateIndexReferencingPages
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SolrOnSiteConfModifiedPart1Observer
public SolrOnSiteConfModifiedPart1Observer()
-
-
Method Detail
-
getPriority
public int getPriority(Event event)
Description copied from interface:Observer
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.- Specified by:
getPriority
in interfaceObserver
- Overrides:
getPriority
in classAbstractSolrObserver
- Parameters:
event
- the event.- Returns:
- the priority where 0 the max priority and Integer.MAX_VALUE the min priority.
-
_updateIndex
protected void _updateIndex(Page odfRootPage) throws Exception
Description copied from class:AbstractSolrOnSiteConfModifiedObserver
Update the index from the observed event.- Specified by:
_updateIndex
in classAbstractSolrOnSiteConfModifiedObserver
- Parameters:
odfRootPage
- the odf root page- Throws:
Exception
- if an error occurs.
-
-