Package org.ametys.plugins.blog.observer
Class SolrBlogContentValidatedObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.blog.observer.AbstractBlogObserver
-
- org.ametys.plugins.blog.observer.SolrBlogContentValidatedObserver
-
- All Implemented Interfaces:
Observer,LogEnabled,Contextualizable,Serviceable
public class SolrBlogContentValidatedObserver extends AbstractBlogObserver
Observerfor observing post validation in order to synchronize lucene index associated.
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.blog.observer.AbstractBlogObserver
_blogRootPageHandler, _context, _resolver, _solrIndexer, _solrPageIndexer
-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description SolrBlogContentValidatedObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_internalObserve(Event event, Page postPage, WebContent postContent)Do the actual work.booleansupports(Event event)Checks if the event is supported.-
Methods inherited from class org.ametys.plugins.blog.observer.AbstractBlogObserver
contextualize, getPriority, observe, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SolrBlogContentValidatedObserver
public SolrBlogContentValidatedObserver()
-
-
Method Detail
-
supports
public boolean supports(Event event)
Description copied from interface:ObserverChecks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event- the event.- Returns:
truefor observing this event,falseotherwise.
-
_internalObserve
protected void _internalObserve(Event event, Page postPage, WebContent postContent)
Description copied from class:AbstractBlogObserverDo the actual work.- Specified by:
_internalObservein classAbstractBlogObserver- Parameters:
event- the observation event.postPage- the Page holding the virtual factory.postContent- the post content
-
-