Class SolrContentValidatedObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.ugc.observation.AbstractContentObserver
-
- org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
-
- org.ametys.plugins.ugc.observation.SolrContentValidatedObserver
-
- All Implemented Interfaces:
Observer
,LogEnabled
,Contextualizable
,Serviceable
public class SolrContentValidatedObserver extends AbstractSolrContentObserver
Observes UGC content deletion in order to synchronize the solr index.
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_solrPageIndexer
-
Fields inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_cocoonContext, _contentTypeHelper, _context, _resolver, _ugcPageHandler, _zoneItemCache
-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description SolrContentValidatedObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_internalObserve(Event event, Page rootContentPage, Content content)
Do the actual work.boolean
supports(Event event)
Checks if the event is supported.-
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractSolrContentObserver
_getContentPage, getPriority, service
-
Methods inherited from class org.ametys.plugins.ugc.observation.AbstractContentObserver
_getTarget, _getUGCRootPages, _isUGCContent, _removeZoneItemCache, contextualize, observe
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SolrContentValidatedObserver
public SolrContentValidatedObserver()
-
-
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 rootContentPage, Content content)
Description copied from class:AbstractContentObserver
Do the actual work.- Specified by:
_internalObserve
in classAbstractContentObserver
- Parameters:
event
- the observation event.rootContentPage
- the page holding the UGC content pagescontent
- the UGC content.
-
-