Class SolrContentModifiedObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.userdirectory.observation.AbstractContentObserver
-
- org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
-
- org.ametys.plugins.userdirectory.observation.AbstractSolrContentAsyncObserver
-
- org.ametys.plugins.userdirectory.observation.SolrContentModifiedObserver
-
- All Implemented Interfaces:
AsyncObserver
,Observer
,LogEnabled
,Contextualizable
,Serviceable
public class SolrContentModifiedObserver extends AbstractSolrContentAsyncObserver
Observes user directory content deletion in order to synchronize the solr index.
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
_oCPageResolver, _solrPageIndexer, _uDPageResolver
-
Fields 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
Constructors Constructor Description SolrContentModifiedObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_internalObserve(Event event, Page rootUserPage, Content userContent)
Do the actual work.boolean
supports(Event event)
Checks if the event is supported.-
Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentAsyncObserver
_getTarget
-
Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
_getContentPage, getPriority, service
-
Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_getOrgUnitRootPages, _getUserRootPages, _isOrgUnitContent, _isUserContent, _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
-
-
-
-
Constructor Detail
-
SolrContentModifiedObserver
public SolrContentModifiedObserver()
-
-
Method Detail
-
supports
public boolean supports(Event event)
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
_internalObserve
protected void _internalObserve(Event event, Page rootUserPage, Content userContent)
Description copied from class:AbstractContentObserver
Do the actual work.- Specified by:
_internalObserve
in classAbstractContentObserver
- Parameters:
event
- the observation event.rootUserPage
- the page holding the virtual user pagesuserContent
- a list containing all impacted user contents.
-
-