Class AbstractSolrContentAsyncObserver
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
- All Implemented Interfaces:
AsyncObserver
,Observer
,LogEnabled
,Contextualizable
,Serviceable
- Direct Known Subclasses:
SolrContentModifiedObserver
public abstract class AbstractSolrContentAsyncObserver
extends AbstractSolrContentObserver
implements AsyncObserver
Abstract
AsyncObserver
for synchronizing the Solr indexes.-
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
Modifier and TypeMethodDescriptionprotected Content
_getTarget
(Event event) Retrieve the target of the observerMethods inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_getContentPage, getPriority, service
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_getUGCRootPages, _internalObserve, _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, supports
-
Constructor Details
-
AbstractSolrContentAsyncObserver
public AbstractSolrContentAsyncObserver()
-
-
Method Details
-
_getTarget
Description copied from class:AbstractContentObserver
Retrieve the target of the observer- Overrides:
_getTarget
in classAbstractContentObserver
- Parameters:
event
- The event- Returns:
- The target
- Throws:
Exception
- if failed to get content
-