Class SolrOdfContentModifiedObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.indexing.observation.AbstractSolrObserver
org.ametys.web.indexing.observation.SolrPageContentModifiedObserver
org.ametys.plugins.odfweb.observation.solr.SolrOdfContentModifiedObserver
- All Implemented Interfaces:
AsyncObserver
,Observer
,LogEnabled
,Contextualizable
,Serviceable
public class SolrOdfContentModifiedObserver
extends SolrPageContentModifiedObserver
implements Contextualizable
This
Observer
observes ODF content modification
in order to synchronize the solr index of referencing pages-
Field Summary
Fields inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_resolver, _siteIndexer, _solrIndexer, _solrPageIndexer
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_updateIndexReferencingPages
(String contentId, boolean recursively) Update index of all pages referencing the content for all workspaces if existsvoid
contextualize
(Context context) void
service
(ServiceManager manager) Methods inherited from class org.ametys.web.indexing.observation.SolrPageContentModifiedObserver
observe, supports
Methods inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_updateIndexReferencingPages, getPriority
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
Methods inherited from interface org.ametys.core.observation.Observer
getPriority
-
Constructor Details
-
SolrOdfContentModifiedObserver
public SolrOdfContentModifiedObserver()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSolrObserver
- Throws:
ServiceException
-
_updateIndexReferencingPages
Description copied from class:AbstractSolrObserver
Update index of all pages referencing the content for all workspaces if exists- Overrides:
_updateIndexReferencingPages
in classAbstractSolrObserver
- Parameters:
contentId
- The id of contentrecursively
- true to index recursively the subpages- Throws:
AmetysRepositoryException
- If an error occurredException
- if an error occurred during indexing
-