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:
Observer
,LogEnabled
,Contextualizable
,Serviceable
- Direct Known Subclasses:
AbstractSolrContentAsyncObserver
,SolrContentDeletedObserver
,SolrContentUnpublishedObserver
,SolrContentValidatedObserver
Abstract
Observer
for synchronizing the Solr indexes.-
Field Summary
Modifier and TypeFieldDescriptionprotected OrganisationChartPageResolver
The organisation chart page resolverprotected SolrPageIndexer
The Solr page indexer.protected UserDirectoryPageResolver
The user directory page resolverFields inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _organisationChartPageResolver, _resolver, _userDirectoryPageResolver, _zoneItemCache
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Page
_getContentPage
(Page rootContentPage, Content content) Get content pageint
getPriority
(Event event) Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.void
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_getOrgUnitRootPages, _getTarget, _getUserRootPages, _internalObserve, _isOrgUnitContent, _isUserContent, _removeZoneItemCache, contextualize, observe
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
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:
service
in interfaceServiceable
- Overrides:
service
in classAbstractContentObserver
- Throws:
ServiceException
-
getPriority
Description copied from interface:Observer
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.- 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
-