Class AbstractSolrContentObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.ugc.observation.AbstractContentObserver
org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
- All Implemented Interfaces:
IndexingObserver
,Observer
,LogEnabled
,Prioritizable
,Supporter<Event>
,Contextualizable
,Serviceable
- Direct Known Subclasses:
AbstractSolrContentAsyncObserver
,SolrContentDeletedObserver
,SolrContentUnpublishedObserver
,SolrContentValidatedObserver
public abstract class AbstractSolrContentObserver
extends AbstractContentObserver
implements IndexingObserver
Abstract
Observer
for synchronizing the Solr indexes.-
Field Summary
FieldsFields inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _resolver, _ugcPageHandler, _zoneItemCache
Fields inherited from interface org.ametys.cms.indexing.IndexingObserver
INDEXING_OBSERVER
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_getContentPage
(Page rootContentPage, Content content) Get content pageint
Get the priority for the component.void
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_getTarget, _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.cms.indexing.IndexingObserver
getTraits
-
Field Details
-
_solrPageIndexer
The Solr page indexer.
-
-
Constructor Details
-
AbstractSolrContentObserver
public AbstractSolrContentObserver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractContentObserver
- Throws:
ServiceException
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-
_getContentPage
Get content page- Parameters:
rootContentPage
- the root content pagecontent
- the content- Returns:
- the content page
-