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
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, _solrPageIndexer
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_internalObserve
(Event event, Page postPage, WebContent postContent) Do the actual work.boolean
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 Details
-
SolrBlogContentValidatedObserver
public SolrBlogContentValidatedObserver()
-
-
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: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
-