Class AbstractSolrContentObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.userdirectory.observation.AbstractContentObserver
org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
- All Implemented Interfaces:
IndexingObserver,Observer,LogEnabled,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
FieldsModifier and TypeFieldDescriptionprotected OrganisationChartPageResolverThe organisation chart page resolverprotected SolrPageIndexerThe Solr page indexer.protected UserDirectoryPageResolverThe user directory page resolverFields inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _organisationChartPageResolver, _resolver, _userDirectoryPageResolver, _zoneItemCacheFields inherited from interface org.ametys.cms.indexing.IndexingObserver
INDEXING_OBSERVERFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Page_getContentPage(Page rootContentPage, Content content) Get content pageintgetPriority(Event event) Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.voidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_getOrgUnitRootPages, _getTarget, _getUserRootPages, _internalObserve, _isOrgUnitContent, _isUserContent, _removeZoneItemCache, contextualize, observeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraits
-
Field Details
-
_solrPageIndexer
The Solr page indexer. -
_uDPageResolver
The user directory page resolver -
_oCPageResolver
The organisation chart page resolver
-
-
Constructor Details
-
AbstractSolrContentObserver
public AbstractSolrContentObserver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractContentObserver- Throws:
ServiceException
-
getPriority
Description copied from interface:ObserverRetrieves the priority to observe this event.
This can be used to process a supported event before others observers.- Specified by:
getPriorityin interfaceObserver- Parameters:
event- the event.- Returns:
- the priority where 0 the max priority and Integer.MAX_VALUE the min priority.
-
_getContentPage
Get content page- Parameters:
rootContentPage- the root content pagecontent- the content- Returns:
- the content page
-