Class SolrContentModifiedObserver
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.AbstractSolrContentAsyncObserver
org.ametys.plugins.ugc.observation.SolrContentModifiedObserver
- All Implemented Interfaces:
AsyncObserver
,Observer
,LogEnabled
,Contextualizable
,Serviceable
Observes UGC content modified in order to synchronize the solr index.
-
Field Summary
Fields inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_solrPageIndexer
Fields inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _resolver, _ugcPageHandler, _zoneItemCache
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentAsyncObserver
_getTarget
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_getContentPage, getPriority, service
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_getUGCRootPages, _isUGCContent, _removeZoneItemCache, contextualize, observe
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
Methods inherited from interface org.ametys.core.observation.Observer
getPriority, observe
-
Constructor Details
-
SolrContentModifiedObserver
public SolrContentModifiedObserver()
-
-
Method Details
-
supports
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
_internalObserve
Description copied from class:AbstractContentObserver
Do the actual work.- Specified by:
_internalObserve
in classAbstractContentObserver
- Parameters:
event
- the observation event.rootContentPage
- the page holding the UGC content pagescontent
- the UGC content.
-