Class SolrContentDeletedObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.ugc.observation.AbstractContentObserver
org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
org.ametys.plugins.ugc.observation.SolrContentDeletedObserver
- All Implemented Interfaces:
Observer,LogEnabled,Contextualizable,Serviceable
Observes UGC content deletion in order to synchronize the solr index.
-
Field Summary
Fields inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_solrPageIndexerFields inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _resolver, _ugcPageHandler, _zoneItemCacheFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_getContentPage, getPriority, serviceMethods inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_getTarget, _getUGCRootPages, _isUGCContent, _removeZoneItemCache, contextualize, observeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SolrContentDeletedObserver
public SolrContentDeletedObserver()
-
-
Method Details
-
supports
Description copied from interface:ObserverChecks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event- the event.- Returns:
truefor observing this event,falseotherwise.
-
_internalObserve
Description copied from class:AbstractContentObserverDo the actual work.- Specified by:
_internalObservein classAbstractContentObserver- Parameters:
event- the observation event.rootContentPage- the page holding the UGC content pagescontent- the UGC content.
-