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
AbstractAsyncObserver
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
Constructors Constructor Description AbstractSolrContentAsyncObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Content
_getTarget(Event event)
Retrieve the target of the observer-
Methods 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 Detail
-
AbstractSolrContentAsyncObserver
public AbstractSolrContentAsyncObserver()
-
-
Method Detail
-
_getTarget
protected Content _getTarget(Event event) throws Exception
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
-
-