Class SolrContentModifiedObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.userdirectory.observation.AbstractContentObserver
org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
org.ametys.plugins.userdirectory.observation.AbstractSolrContentAsyncObserver
org.ametys.plugins.userdirectory.observation.SolrContentModifiedObserver
- All Implemented Interfaces:
IndexingObserver,AsyncObserver,Observer,LogEnabled,Prioritizable,Supporter<Event>,Contextualizable,Serviceable
Observes user directory content deletion in order to synchronize the solr index.
-
Field Summary
Fields inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
_oCPageResolver, _solrPageIndexer, _uDPageResolverFields inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _organisationChartPageResolver, _resolver, _userDirectoryPageResolver, _zoneItemCacheFields 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
Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentAsyncObserver
_getTargetMethods inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
_getContentPage, getPriority, serviceMethods inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_getOrgUnitRootPages, _getUserRootPages, _isOrgUnitContent, _isUserContent, _removeZoneItemCache, contextualize, observeMethods 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.core.observation.AsyncObserver
parallelizableMethods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraitsMethods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
-
Constructor Details
-
SolrContentModifiedObserver
public SolrContentModifiedObserver()
-
-
Method Details
-
supports
Description copied from interface:SupporterCheck if an element is supported- Parameters:
event- The element- Returns:
trueif the element is supported,falseotherwise
-
_internalObserve
Description copied from class:AbstractContentObserverDo the actual work.- Specified by:
_internalObservein classAbstractContentObserver- Parameters:
event- the observation event.rootUserPage- the page holding the virtual user pagesuserContent- a list containing all impacted user contents.
-