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
Observer
for 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.boolean
supports(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: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 postPage, WebContent postContent)
Description copied from class:AbstractBlogObserver
Do the actual work.- Specified by:
_internalObserve
in classAbstractBlogObserver
- Parameters:
event
- the observation event.postPage
- the Page holding the virtual factory.postContent
- the post content
-
-