Class SolrContentUnpublishedObserver
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.SolrContentUnpublishedObserver
- All Implemented Interfaces:
Observer
,LogEnabled
,Contextualizable
,Serviceable
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
-
Method Summary
Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractSolrContentObserver
_getContentPage, getPriority, service
Methods inherited from class org.ametys.plugins.userdirectory.observation.AbstractContentObserver
_getOrgUnitRootPages, _getTarget, _getUserRootPages, _isOrgUnitContent, _isUserContent, _removeZoneItemCache, contextualize, observe
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SolrContentUnpublishedObserver
public SolrContentUnpublishedObserver()
-
-
Method Details
-
supports
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
Description copied from class:AbstractContentObserver
Do the actual work.- Specified by:
_internalObserve
in classAbstractContentObserver
- Parameters:
event
- the observation event.rootContentPage
- the page holding the virtual user pagescontent
- a list containing all impacted user contents.
-