Class SolrOrgUnitChangedPart1Observer
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.indexing.observation.AbstractSolrObserver
org.ametys.plugins.odfweb.observation.solr.AbstractSolrOrgUnitObserver
org.ametys.plugins.odfweb.observation.solr.SolrOrgUnitChangedPart1Observer
- All Implemented Interfaces:
IndexingObserver,Observer,LogEnabled,Contextualizable,Serviceable
-
Field Summary
Fields inherited from class org.ametys.plugins.odfweb.observation.solr.AbstractSolrOrgUnitObserver
_odfPageHandler, _odfProgramRestrictionManager, _siteConf, _siteManagerFields inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_resolver, _siteIndexer, _solrIndexer, _solrPageIndexerFields inherited from interface org.ametys.cms.indexing.IndexingObserver
INDEXING_OBSERVERFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Gets the supported event ids for this Observer to look for theOrgUnitsprotected void_updateIndex(Page odfRootPage) Update the index from the observed event.intgetPriority(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.AbstractSolrOrgUnitObserver
contextualize, observe, service, supportsMethods inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_updateIndexReferencingPages, _updateIndexReferencingPagesMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraits
-
Constructor Details
-
SolrOrgUnitChangedPart1Observer
public SolrOrgUnitChangedPart1Observer()
-
-
Method Details
-
_supportedEventIds
Description copied from class:AbstractSolrOrgUnitObserverGets the supported event ids for this Observer to look for theOrgUnits- Specified by:
_supportedEventIdsin classAbstractSolrOrgUnitObserver- Returns:
- the supported event ids for this Observer
-
getPriority
Description copied from interface:ObserverRetrieves the priority to observe this event.
This can be used to process a supported event before others observers.- Specified by:
getPriorityin interfaceObserver- Overrides:
getPriorityin classAbstractSolrObserver- Parameters:
event- the event.- Returns:
- the priority where 0 the max priority and Integer.MAX_VALUE the min priority.
-
_updateIndex
Description copied from class:AbstractSolrOrgUnitObserverUpdate the index from the observed event.- Specified by:
_updateIndexin classAbstractSolrOrgUnitObserver- Parameters:
odfRootPage- the odf root page- Throws:
Exception- if an error occurs.
-